Remove profiles for plugins that are useless in package builds

This commit is contained in:
Michael Simacek 2017-01-05 17:53:08 +01:00
parent c72349b466
commit f0fe2cf75a

View File

@ -2,9 +2,8 @@
Name: apache-%{short_name} Name: apache-%{short_name}
Version: 42 Version: 42
Release: 1%{?dist} Release: 2%{?dist}
Summary: Apache Commons Parent Pom Summary: Apache Commons Parent Pom
Group: Development/Libraries
License: ASL 2.0 License: ASL 2.0
URL: http://svn.apache.org/repos/asf/commons/proper/%{short_name}/tags/%{short_name}-%{version}/ 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.apache.rat:apache-rat-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
Requires: mvn(org.codehaus.mojo:build-helper-maven-plugin) Requires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
Requires: mvn(org.codehaus.mojo:buildnumber-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_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 %build
%mvn_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 %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
%changelog %changelog
* Thu Jan 05 2017 Michael Simacek <msimacek@redhat.com> - 42-2
- Remove profiles for plugins that are useless in package builds
* Mon Jan 02 2017 Michael Simacek <msimacek@redhat.com> - 42-1 * Mon Jan 02 2017 Michael Simacek <msimacek@redhat.com> - 42-1
- Update to upstream version 42 - Update to upstream version 42