Blame SPECS/maven-shade-plugin.spec

2334f9
%global pkg_name maven-shade-plugin
2334f9
%{?scl:%scl_package %{pkg_name}}
2334f9
%{?maven_find_provides_and_requires}
2334f9
2334f9
Name:           %{?scl_prefix}%{pkg_name}
2334f9
Version:        2.0
2334f9
Release:        6.12%{?dist}
2334f9
Summary:        This plugin provides the capability to package the artifact in an uber-jar
2334f9
License:        ASL 2.0
2334f9
URL:            http://maven.apache.org/plugins/%{pkg_name}
2334f9
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.zip
2334f9
BuildArch:      noarch
2334f9
2334f9
BuildRequires:  %{?scl_prefix}maven-local
2334f9
BuildRequires:  %{?scl_prefix_java_common}mvn(asm:asm)
2334f9
BuildRequires:  %{?scl_prefix_java_common}mvn(asm:asm-commons)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-plugins:pom:)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.shared:maven-dependency-tree)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-artifact)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-compat)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-core)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-model)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-plugin-api)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-component-annotations)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-container-default)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-utils)
2334f9
BuildRequires:  %{?scl_prefix_java_common}mvn(org.jdom:jdom)
2334f9
BuildRequires:  %{?scl_prefix}mvn(org.vafer:jdependency)
2334f9
2334f9
2334f9
%description
2334f9
This plugin provides the capability to package the artifact in an
2334f9
uber-jar, including its dependencies and to shade - i.e. rename - the
2334f9
packages of some of the dependencies.
2334f9
2334f9
2334f9
%package javadoc
2334f9
Summary:        API documentation for %{pkg_name}
2334f9
2334f9
%description javadoc
2334f9
%{summary}.
2334f9
2334f9
%prep
2334f9
%setup -q -n %{pkg_name}-%{version}
2334f9
%{?scl:scl enable %{scl} - <<"EOF"}
2334f9
set -e -x
2334f9
rm src/test/jars/plexus-utils-1.4.1.jar
2334f9
ln -s $(build-classpath plexus/utils) src/test/jars/plexus-utils-1.4.1.jar
2334f9
%{?scl:EOF}
2334f9
2334f9
%build
2334f9
%{?scl:scl enable %{scl} - <<"EOF"}
2334f9
set -e -x
2334f9
# A class from aopalliance is not found. Simply adding BR does not solve it
2334f9
%mvn_build -f
2334f9
%{?scl:EOF}
2334f9
2334f9
%install
2334f9
%{?scl:scl enable %{scl} - <<"EOF"}
2334f9
set -e -x
2334f9
%mvn_install
2334f9
%{?scl:EOF}
2334f9
2334f9
%files -f .mfiles
2334f9
%dir %{_mavenpomdir}/%{pkg_name}
2334f9
%dir %{_javadir}/%{pkg_name}
2334f9
%doc LICENSE NOTICE
2334f9
2334f9
%files javadoc -f .mfiles-javadoc
2334f9
%doc LICENSE NOTICE
2334f9
2334f9
%changelog
2334f9
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 2.0-6.12
2334f9
- Fix BR on maven-local & co.
2334f9
2334f9
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 2.0-6.11
2334f9
- maven33 rebuild #2
2334f9
2334f9
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 2.0-6.10
2334f9
- maven33 rebuild
2334f9
2334f9
* Thu Jan 15 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.9
2334f9
- Add directory ownership on %%{_mavenpomdir} subdir
2334f9
2334f9
* Wed Jan 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.8
2334f9
- Fix BR on maven-plugins parent POM
2334f9
2334f9
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 2.0-6.8
2334f9
- Mass rebuild 2015-01-13
2334f9
2334f9
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 2.0-6.7
2334f9
- Mass rebuild 2015-01-06
2334f9
2334f9
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.6
2334f9
- Mass rebuild 2014-05-26
2334f9
2334f9
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.5
2334f9
- Mass rebuild 2014-02-19
2334f9
2334f9
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.4
2334f9
- Mass rebuild 2014-02-18
2334f9
2334f9
* Fri Feb 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.3
2334f9
- SCL-ize requires and build-requires
2334f9
2334f9
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.2
2334f9
- Rebuild to regenerate auto-requires
2334f9
2334f9
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-6.1
2334f9
- First maven30 software collection build
2334f9
2334f9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0-6
2334f9
- Mass rebuild 2013-12-27
2334f9
2334f9
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-5
2334f9
- Rebuild to regenerate API documentation
2334f9
- Resolves: CVE-2013-1571
2334f9
2334f9
* Wed Apr 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-4
2334f9
- Build with xmvn
2334f9
2334f9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
2334f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2334f9
2334f9
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.0-2
2334f9
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
2334f9
- Replace maven BuildRequires with maven-local
2334f9
2334f9
* Thu Dec 13 2012 Tomas Radej <tradej@redhat.com> - 2.0-1
2334f9
- Update to upstream 2.0
2334f9
2334f9
* Wed Nov 14 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.1-3
2334f9
- Install NOTICE file with javadoc package
2334f9
2334f9
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-2
2334f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2334f9
2334f9
* Thu Jul 5 2012 Alexander Kurtakov <akurtako@redhat.com> 1.7.1-1
2334f9
- Update to upstream 1.7.1.
2334f9
2334f9
* Wed Jun 20 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7-1
2334f9
- Update to upstream 1.7
2334f9
2334f9
* Fri Apr 6 2012 Alexander Kurtakov <akurtako@redhat.com> 1.6-1
2334f9
- Update to latest upstream release.
2334f9
2334f9
* Mon Mar 05 2012 Jaromir Capik <jcapik@redhat.com> - 1.5-4
2334f9
- Migration to plexus-containers-component-metadata
2334f9
2334f9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
2334f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2334f9
2334f9
* Wed Nov 23 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-2
2334f9
- Fix depmap macro call
2334f9
2334f9
* Tue Nov 1 2011 Alexander Kurtakov <akurtako@redhat.com> 1.5-1
2334f9
- Update to upstream 1.5 release.
2334f9
2334f9
* Thu Jun 9 2011 Alexander Kurtakov <akurtako@redhat.com> 1.4-4
2334f9
- Build with maven 3.x.
2334f9
- Use upstream source.
2334f9
- Guidelines fixes.
2334f9
2334f9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
2334f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2334f9
2334f9
* Wed Jan 26 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-2
2334f9
- Add jdependency also to Requires
2334f9
2334f9
* Thu Oct 14 2010 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.4-1
2334f9
- Update to 1.4
2334f9
- Add BR on jdependency >= 0.6
2334f9
- Add patch to add dependency on maven-artifact-manager
2334f9
2334f9
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3.3-2
2334f9
- Replace plexus utils jar with symlink
2334f9
- Create MAVEN_REPO_LOCAL dir before calling maven
2334f9
2334f9
* Tue Jun 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3.3-1
2334f9
- Initial package