[eclipse-moreunit] Build with xmvn.

Alexander Kurtakov akurtakov at fedoraproject.org
Wed Dec 3 17:09:05 UTC 2014


commit ea732db632536e006ae74e555bb32bba29e30266
Author: Alexander Kurtakov <akurtako at redhat.com>
Date:   Wed Dec 3 19:09:07 2014 +0200

    Build with xmvn.

 eclipse-moreunit.spec |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/eclipse-moreunit.spec b/eclipse-moreunit.spec
index b444349..4cf9f7d 100644
--- a/eclipse-moreunit.spec
+++ b/eclipse-moreunit.spec
@@ -1,9 +1,8 @@
 %global git_tag   ca746c6842a8d046f925e432602129e65459f42f
-%global install_loc    %{_datadir}/eclipse/dropins/moreunit
 
 Name:           eclipse-moreunit
 Version:        3.0.4
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        An Eclipse plugin that assists with writing more unit tests
 
 Group:          Development/Tools
@@ -31,8 +30,6 @@ also possible.
 
 find -name '*.class' -exec rm -f '{}' \;
 find -name '*.jar' -exec rm -f '{}' \;
-
-%build
 pushd org.moreunit.build
 %pom_disable_module ../org.moreunit.test.dependencies
 %pom_disable_module ../org.moreunit.core.test
@@ -40,21 +37,22 @@ pushd org.moreunit.build
 %pom_disable_module ../org.moreunit.mock.test
 %pom_disable_module ../org.moreunit.swtbot.test
 %pom_disable_module ../org.moreunit.mock.it
-xmvn -o -DskipTychoVersionCheck=true clean install
+%pom_disable_module ../org.moreunit.updatesite
 popd
+%mvn_package "::jar:sources:"
 
-%install
-install -d -m 755 %{buildroot}%{install_loc}
+%build
+%mvn_build -j -f -- -f org.moreunit.build/pom.xml
 
-pushd org.moreunit.build
-xmvn -o org.fedoraproject:feclipse-maven-plugin:install -DsourceRepo=../org.moreunit.updatesite/target/org.moreunit.updatesite-%{version}.zip -DtargetLocation=%{buildroot}%{install_loc}
-popd
+%install
+%mvn_install
 
-%files
-%{install_loc}
-%doc org.moreunit.plugin/help/documentation.html
+%files -f .mfiles
 
 %changelog
+* Wed Dec 3 2014 Alexander Kurtakov <akurtako at redhat.com> 3.0.4-3
+- Build with xmvn.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list