[mojo-parent] Build with xmvn

Michal Srb msrb at fedoraproject.org
Mon Jan 21 14:07:49 UTC 2013


commit 709f9cf0582b226bb118ad2641d5473cd34e38ab
Author: Michal Srb <msrb at redhat.com>
Date:   Thu Jan 17 12:35:56 2013 +0100

    Build with xmvn

 mojo-parent.spec |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/mojo-parent.spec b/mojo-parent.spec
index fd60e65..a61428f 100644
--- a/mojo-parent.spec
+++ b/mojo-parent.spec
@@ -1,6 +1,6 @@
 Name:           mojo-parent
 Version:        30
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Codehaus MOJO parent project pom file
 
 Group:          Development/Libraries
@@ -11,14 +11,9 @@ BuildArch:      noarch
 
 BuildRequires:  jpackage-utils
 BuildRequires:  codehaus-parent
-BuildRequires:  maven
+BuildRequires:  xmvn
 BuildRequires:  maven-enforcer-plugin
 
-Requires:       plexus-containers-component-javadoc
-Requires:       maven-plugin-plugin
-Requires:       junit
-Requires:       codehaus-parent
-Requires:       jpackage-utils
 
 %description
 Codehaus MOJO parent project pom file
@@ -29,21 +24,18 @@ Codehaus MOJO parent project pom file
 %pom_remove_plugin :cobertura-maven-plugin
 
 %build
-mvn-rpmbuild install
+%mvn_alias : org.codehaus.mojo:mojo
+%mvn_build
 
 %install
-# poms
-install -d -m 755 %{buildroot}%{_mavenpomdir}
-install -pm 644 pom.xml \
-    %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%mvn_install
 
-%add_maven_depmap JPP-%{name}.pom -a org.codehaus.mojo:mojo
-
-%files
-%{_mavenpomdir}/*
-%{_mavendepmapfragdir}/*
+%files -f .mfiles
 
 %changelog
+* Thu Jan 17 2013 Michal Srb <msrb at redhat.com> - 30-4
+- Build with xmvn
+
 * Fri Jan  4 2013 Mikolaj Izdebski <mizdebsk at redhat.com> - 30-3
 - Disable maven-plugin-cobertura
 


More information about the scm-commits mailing list