From 0f684f8622d7effd632f1b38a239533d8a4a815c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 20 2019 09:41:10 +0000 Subject: import maven-gpg-plugin-1.4-11.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1dfe76b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/maven-gpg-plugin-1.4-source-release.zip diff --git a/.maven-gpg-plugin.metadata b/.maven-gpg-plugin.metadata new file mode 100644 index 0000000..dddd1bc --- /dev/null +++ b/.maven-gpg-plugin.metadata @@ -0,0 +1 @@ +cd82f68a6cb299ce7ff6440c5a4be8c640c1a4e3 SOURCES/maven-gpg-plugin-1.4-source-release.zip diff --git a/SOURCES/0001-Add-support-for-maven-3.patch b/SOURCES/0001-Add-support-for-maven-3.patch new file mode 100644 index 0000000..823430e --- /dev/null +++ b/SOURCES/0001-Add-support-for-maven-3.patch @@ -0,0 +1,63 @@ +From 900d254a483b8d751456afc444f9e67d85d03c0c Mon Sep 17 00:00:00 2001 +From: Stanislav Ochotnicky +Date: Wed, 20 Jul 2011 14:57:00 +0200 +Subject: [PATCH] Add support for maven 3 + +--- + pom.xml | 5 +++++ + .../maven/plugin/gpg/AscArtifactMetadata.java | 9 +++++++++ + .../maven/plugin/gpg/AttachedSignedArtifact.java | 2 +- + 3 files changed, 15 insertions(+), 1 deletions(-) + +diff --git a/pom.xml b/pom.xml +index d68cf39..d2f97b9 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -57,6 +57,11 @@ under the License. + + + org.apache.maven ++ maven-compat ++ ${mavenVersion} ++ ++ ++ org.apache.maven + maven-plugin-api + ${mavenVersion} + +diff --git a/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java b/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java +index b348c87..98bb5d8 100644 +--- a/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java ++++ b/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java +@@ -85,6 +85,15 @@ public class AscArtifactMetadata + { + return getFilename(); + } ++ public void merge( org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata ) ++ { ++ AscArtifactMetadata m = (AscArtifactMetadata) metadata; ++ if ( !m.file.equals( file ) ) ++ { ++ throw new IllegalStateException( "Cannot add two different pieces of metadata for: " + getKey() ); ++ } ++ } ++ + + public void merge( ArtifactMetadata metadata ) + { +diff --git a/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java b/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java +index a4baf8e..cc8e508 100644 +--- a/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java ++++ b/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java +@@ -192,7 +192,7 @@ public class AttachedSignedArtifact + return delegate.equals( o ); + } + +- public int compareTo( Object o ) ++ public int compareTo( Artifact o ) + { + return delegate.compareTo( o ); + } +-- +1.7.6 + diff --git a/SPECS/maven-gpg-plugin.spec b/SPECS/maven-gpg-plugin.spec new file mode 100644 index 0000000..5341c36 --- /dev/null +++ b/SPECS/maven-gpg-plugin.spec @@ -0,0 +1,116 @@ +Name: maven-gpg-plugin +Version: 1.4 +Release: 11%{?dist} +Summary: Maven GPG Plugin + +Group: Development/Libraries +License: ASL 2.0 +URL: http://maven.apache.org/plugins/maven-gpg-plugin/ +Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip +Patch0: 0001-Add-support-for-maven-3.patch + +BuildArch: noarch + +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: plexus-utils +BuildRequires: ant +BuildRequires: maven-local +BuildRequires: maven-install-plugin +BuildRequires: maven-compiler-plugin +BuildRequires: maven-plugin-plugin +BuildRequires: maven-resources-plugin +BuildRequires: maven-surefire-maven-plugin +BuildRequires: maven-surefire-provider-junit +BuildRequires: maven-jar-plugin +BuildRequires: maven-javadoc-plugin + +# Uses system gpg binary for actual signing +Requires: gnupg + +Obsoletes: maven2-plugin-gpg <= 0:2.0.8 +Provides: maven2-plugin-gpg = 1:%{version}-%{release} + +%description +This plugin signs all of the project's attached artifacts with +GnuPG. It adds goals gpg:sign and gpg:sign-and-deploy-file. + + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q + +# migrate to maven 3.x +%patch0 -p1 +sed -i 's/${mavenVersion}/3.0.4/' pom.xml + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%dir %{_javadir}/%{name} +%doc LICENSE NOTICE + +%files javadoc -f .mfiles-javadoc +%doc LICENSE NOTICE + +%changelog +* Fri Dec 27 2013 Daniel Mach - 1.4-11 +- Mass rebuild 2013-12-27 + +* Wed Jul 17 2013 Tomas Radej - 1.4-10 +- Added R on gnupg (used for actual singing) + +* Fri Jun 28 2013 Mikolaj Izdebski - 1.4-9 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Tue Jun 25 2013 Tomas Radej - 1.4-8 +- Removed BR on ant-nodeps (no longer available) + +* Tue Feb 12 2013 Mikolaj Izdebski - 1.4-7 +- Use default packaging layout + +* Tue Feb 12 2013 Michal Srb - 1.4-6 +- Build with xmvn + +* Wed Feb 06 2013 Java SIG - 1.4-5 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Mon Nov 26 2012 Stanislav Ochotnicky - 1.4-4 +- Install LICENSE and NOTICE files (#879367) + +* Thu Jul 19 2012 Fedora Release Engineering - 1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Sep 6 2011 Alexander Kurtakov 1.4-1 +- Update to latest upstream version. + +* Mon Jun 13 2011 Stanislav Ochotnicky - 1.3-1 +- Update to latest upstream version + +* Fri Mar 25 2011 Alexander Kurtakov 1.2-1 +- Update to new upstream release. +- Adapt to current guidelines. + +* Tue Feb 08 2011 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jun 2 2010 Stanislav Ochotnicky - 1.1-2 +- Fix depmap call +- Add gnupg2 to Requires + +* Tue Jun 1 2010 Stanislav Ochotnicky - 1.1-1 +- Initial package