[sonatype-oss-parent] Build with xmvn

Michal Srb msrb at fedoraproject.org
Mon Jan 21 13:57:48 UTC 2013


commit 803cfc7ec185b42cc96c2b2b4fdb3cb65d661c57
Author: Michal Srb <msrb at redhat.com>
Date:   Fri Jan 18 14:51:51 2013 +0100

    Build with xmvn

 sonatype-oss-parent.spec |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/sonatype-oss-parent.spec b/sonatype-oss-parent.spec
index 32bc853..e91f0b6 100644
--- a/sonatype-oss-parent.spec
+++ b/sonatype-oss-parent.spec
@@ -1,6 +1,6 @@
 Name:           sonatype-oss-parent
 Version:        7
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Sonatype OSS Parent
 
 Group:          Development/Libraries
@@ -13,10 +13,9 @@ Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
 
 BuildArch: noarch
 
+BuildRequires:  xmvn
 BuildRequires:  jpackage-utils >= 0:1.7.2
 
-Requires:       jpackage-utils
-Requires:       maven-release-plugin
 
 %description
 Sonatype OSS parent pom used by other sonatype packages
@@ -27,22 +26,18 @@ cp -p %{SOURCE1} LICENSE
 %pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin
 
 %build
-#nothing to do for the pom
+%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
-
-%files
+%files -f .mfiles
 %doc LICENSE
-%{_mavenpomdir}/JPP-%{name}.pom
-%{_mavendepmapfragdir}/%{name}
 
 %changelog
+* Thu Jan 17 2013 Michal Srb <msrb at redhat.com> - 7-3
+- Build with xmvn
+
 * Wed Nov 21 2012 Mikolaj Izdebski <mizdebsk at redhat.com> - 7-2
 - Install LICENSE file
 - Resolves: rhbz#879013


More information about the scm-commits mailing list