From ee5127def618e5d09e778b5113cb24a91a1ae441 Mon Sep 17 00:00:00 2001 From: kymayl Date: Fri, 9 Jul 2021 16:02:43 +0800 Subject: [PATCH] upgrade package --- ed25519-java.spec | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/ed25519-java.spec b/ed25519-java.spec index b2ec2d7..a0541b1 100644 --- a/ed25519-java.spec +++ b/ed25519-java.spec @@ -1,18 +1,26 @@ -Name: ed25519-java -Version: 0.3.0 -Release: 4 -Summary: Implementation of EdDSA (Ed25519) in Java -License: CC0 -URL: https://github.com/str4d/ed25519-java -Source0: https://github.com/str4d/ed25519-java/archive/v%{version}/ed25519-java-%{version}.tar.gz -BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) -BuildRequires: mvn(org.hamcrest:hamcrest-all) -BuildArch: noarch +Name: ed25519-java +Version: 0.3.0 +Release: 9 +Summary: Implementation of EdDSA (Ed25519) in Java +License: CC0 +URL: https://github.com/str4d/ed25519-java +#From https://github.com/str4d/ed25519-java/archive/v%{version}/%{name}-%{version}.tar.gz +Source0: %{name}-%{version}.tar.gz + +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.hamcrest:hamcrest-all) + +BuildArch: noarch + %description This is an implementation of EdDSA in Java. Structurally, it is based on the ref10 implementation in SUPERCOP (see http://ed25519.cr.yp.to/software.html). + There are two internal implementations: + * A port of the radix-2^51 operations in ref10 - fast and constant-time, but only useful for Ed25519. * A generic version using BigIntegers for calculation @@ -20,22 +28,28 @@ There are two internal implementations: with any EdDSA parameter specification. %package javadoc -Summary: Javadoc for %{name} +Summary: Javadoc for %{name} + %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{version} + +# Unwanted tasks %pom_remove_plugin :maven-gpg-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin +# Unavailable plugin %pom_remove_plugin :nexus-staging-maven-plugin +# Make dep on sun.security.x509 optional, inject an Import-Package directive %pom_xpath_inject "pom:configuration/pom:instructions" \ "sun.security.x509;resolution:=optional,*" + %mvn_file net.i2p.crypto:eddsa %{name} eddsa %build -%mvn_build +%mvn_build -- -Dsource=1.8 %install %mvn_install @@ -48,5 +62,7 @@ This package contains javadoc for %{name}. %license LICENSE.txt %changelog +* Fri Jul 9 2021 kymayl - 0.3.0-9 +- Package upgrade * Mon Jul 27 2020 Anan Fu - 0.3.0-4 - package init -- Gitee