[maven-jarsigner-plugin] fix rhbz#992192
Mikolaj Izdebski
mizdebsk at fedoraproject.org
Mon Aug 12 15:35:45 UTC 2013
commit eb1614c6e066db78ba6f624271d0af807b84dfbf
Author: gil <puntogil at libero.it>
Date: Mon Aug 12 17:10:07 2013 +0200
fix rhbz#992192
Signed-off-by: Mikolaj Izdebski <mizdebsk at redhat.com>
maven-jarsigner-plugin.spec | 40 +++++++++++-----------------------------
1 files changed, 11 insertions(+), 29 deletions(-)
---
diff --git a/maven-jarsigner-plugin.spec b/maven-jarsigner-plugin.spec
index 6997990..d5c456d 100644
--- a/maven-jarsigner-plugin.spec
+++ b/maven-jarsigner-plugin.spec
@@ -3,10 +3,9 @@
Name: maven-jarsigner-plugin
Version: 1.2
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Signs or verifies a project artifact and attachments using jarsigner
License: ASL 2.0
-Group: Development/Libraries
URL: http://maven.apache.org/plugins/%{name}/
# http://search.maven.org/remotecontent?filepath=org/apache/maven/plugins/maven-jarsigner-plugin/1.2/maven-jarsigner-plugin-1.2-source-release.zip
Source0: http://search.maven.org/remotecontent?filepath=org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
@@ -16,11 +15,6 @@ BuildArch: noarch
BuildRequires: java-devel
BuildRequires: maven-local
-Requires: java
-Requires: maven
-Requires: plexus-utils
-
-
%description
This plugin provides the capability to sign or verify
a project artifact and attachments using jarsigner.
@@ -34,11 +28,8 @@ and all attached artifacts, just configure the verify goal
appropriately in your pom.xml for the verification to occur
automatically during the verify phase.
-
%package javadoc
Summary: API documentation for %{name}
-Group: Documentation
-Requires: jpackage-utils
%description javadoc
This package contains the API documentation for %{name}.
@@ -47,33 +38,24 @@ This package contains the API documentation for %{name}.
%setup -q
%build
-mvn-rpmbuild install javadoc:aggregate
-%install
-# jars
-install -d -m 755 %{buildroot}%{_javadir}
-install -p -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+%mvn_file :%{name} %{name}
+%mvn_build
-# pom
-install -d -m 755 %{buildroot}%{_mavenpomdir}
-install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
-%add_maven_depmap JPP-%{name}.pom %{name}.jar
-
-# javadoc
-install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
-cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+%install
+%mvn_install
-%files
+%files -f .mfiles
%doc LICENSE NOTICE DEPENDENCIES
-%{_javadir}/%{name}.jar
-%{_mavenpomdir}/JPP-%{name}.pom
-%{_mavendepmapfragdir}/%{name}
-%files javadoc
+%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE
-%doc %{_javadocdir}/%{name}
%changelog
+* Mon Aug 12 2013 gil cattaneo <puntogil at libero.it> 1.2-8
+- fix rhbz#992192
+- update to current packaging guidelines
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list