Name: curve25519-java
Version: 0.1.0
Release: 1%{?dist}
Summary: Implementation of Curve25519 in Java
# Fork of https://code.google.com/p/curve25519-java/
# Public domain: ./src/main/java/djb/Bench.java
# ./src/main/java/djb/Curve25519.java
# Licensed under ASL 2.0
License: ASL 2.0 and Public Domain
URL: https://github.com/trevorbernard/curve25519-java
Source0: https://github.com/trevorbernard/curve25519-java/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/trevorbernard/curve25519-java/issues/1
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
Java port of Matthijs van Duin's implementation
of Daniel J Bernstein's Curve25519.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -print -delete
cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
# Add OSGi support
%pom_xpath_inject "pom:project" "bundle"
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "
true
\${project.name}
\${project.version}
bundle-manifest
process-classes
manifest
"
%mvn_file org.zeromq:%{name} %{name}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
* Sat Dec 05 2015 gil cattaneo 0.1.0-1
- initial rpm