diff --git a/apache-commons-parent.spec b/apache-commons-parent.spec index b33ed6b..9ff6ee9 100644 --- a/apache-commons-parent.spec +++ b/apache-commons-parent.spec @@ -2,9 +2,8 @@ Name: apache-%{short_name} Version: 42 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Apache Commons Parent Pom -Group: Development/Libraries License: ASL 2.0 URL: http://svn.apache.org/repos/asf/commons/proper/%{short_name}/tags/%{short_name}-%{version}/ @@ -23,6 +22,7 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.rat:apache-rat-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin) + Requires: mvn(org.codehaus.mojo:build-helper-maven-plugin) Requires: mvn(org.codehaus.mojo:buildnumber-maven-plugin) @@ -38,7 +38,10 @@ The Project Object Model files for the apache-commons packages. %pom_remove_plugin :maven-site-plugin -%pom_xpath_remove "pom:profile[pom:id='animal-sniffer']" +# Remove profiles for plugins that are useless in package builds +for profile in animal-sniffer japicmp jacoco cobertura clirr; do + %pom_xpath_remove "pom:profile[pom:id='$profile']" +done %build %mvn_build @@ -50,6 +53,9 @@ The Project Object Model files for the apache-commons packages. %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt %changelog +* Thu Jan 05 2017 Michael Simacek - 42-2 +- Remove profiles for plugins that are useless in package builds + * Mon Jan 02 2017 Michael Simacek - 42-1 - Update to upstream version 42