[maven-gpg-plugin] Build with xmvn

Michal Srb msrb at fedoraproject.org
Tue Feb 12 09:48:50 UTC 2013


commit 309fdbd3b84a45143e3cf6045ab6a0393637db0b
Author: Michal Srb <msrb at redhat.com>
Date:   Tue Jan 22 13:44:21 2013 +0100

    Build with xmvn

 maven-gpg-plugin.spec |   27 ++++++++-------------------
 1 files changed, 8 insertions(+), 19 deletions(-)
---
diff --git a/maven-gpg-plugin.spec b/maven-gpg-plugin.spec
index acd5905..c01b0d8 100644
--- a/maven-gpg-plugin.spec
+++ b/maven-gpg-plugin.spec
@@ -1,6 +1,6 @@
 Name:           maven-gpg-plugin
 Version:        1.4
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Maven GPG Plugin
 
 Group:          Development/Libraries
@@ -23,10 +23,6 @@ BuildRequires: maven-surefire-maven-plugin
 BuildRequires: maven-surefire-provider-junit
 BuildRequires: maven-jar-plugin
 BuildRequires: maven-javadoc-plugin
-Requires: maven
-Requires: jpackage-utils
-Requires: java
-Requires: gnupg2
 
 Obsoletes: maven2-plugin-gpg <= 0:2.0.8
 Provides: maven2-plugin-gpg = 1:%{version}-%{release}
@@ -39,7 +35,6 @@ GnuPG. It adds goals gpg:sign and gpg:sign-and-deploy-file.
 %package javadoc
 Group:          Documentation
 Summary:        Javadoc for %{name}
-Requires: jpackage-utils
 
 %description javadoc
 API documentation for %{name}.
@@ -52,28 +47,22 @@ API documentation for %{name}.
 sed -i 's/${mavenVersion}/3.0.4/' pom.xml
 
 %build
-mvn-rpmbuild install javadoc:javadoc
+%mvn_file  : %{name}
+%mvn_build
 
 %install
-# jars
-install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
-
-# poms
-install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
-
-%add_maven_depmap JPP-%{name}.pom %{name}.jar
-
-# javadoc
-install -dm 755 %{buildroot}%{_javadocdir}/%{name}
+%mvn_install
 
 %files -f .mfiles
 %doc LICENSE NOTICE
 
-%files javadoc
+%files javadoc -f .mfiles-javadoc
 %doc LICENSE NOTICE
-%{_javadocdir}/%{name}
 
 %changelog
+* Tue Feb 12 2013 Michal Srb <msrb at redhat.com> - 1.4-6
+- Build with xmvn
+
 * Wed Feb 06 2013 Java SIG <java-devel at lists.fedoraproject.org> - 1.4-5
 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
 - Replace maven BuildRequires with maven-local


More information about the scm-commits mailing list