Name: snaptree
Version: 0.1
Release: 1%{?dist}
Summary: Concurrent TreeMap w/ efficient support for clone() and consistent iteration
License: SNAPTREE LICENSE
URL: https://github.com/nbronson/snaptree
Source0: https://github.com/nbronson/snaptree/archive/%{version}.tar.gz
BuildRequires: java-devel
BuildRequires: mvn(org.sonatype.oss:oss-parent)
# test deps
BuildRequires: mvn(junit:junit)
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-source-plugin
BuildRequires: maven-surefire-provider-junit4
BuildArch: noarch
%description
The reference implementation of SnapTree,
a concurrent AVL tree with fast cloning,
snapshots, and consistent iteration.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
find . -name "*.class" -print -delete
find . -name "*.jar" -type f -print -delete
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']" '
%{name} ${project.version} API
%{name} ${project.version} API
'
%build
%mvn_file :%{name} %{name}
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc LICENSE README
%files javadoc -f .mfiles-javadoc
%doc LICENSE
%changelog
* Wed Aug 14 2013 gil cattaneo 0.1-1
- initial rpm