diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c48d492 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/maven-shade-plugin-2.0-source-release.zip diff --git a/.rh-maven33-maven-shade-plugin.metadata b/.rh-maven33-maven-shade-plugin.metadata new file mode 100644 index 0000000..38926ee --- /dev/null +++ b/.rh-maven33-maven-shade-plugin.metadata @@ -0,0 +1 @@ +6c02a8bcb27e67bf7a04b3c0e59a79eb3960dd5c SOURCES/maven-shade-plugin-2.0-source-release.zip diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/maven-shade-plugin.spec b/SPECS/maven-shade-plugin.spec new file mode 100644 index 0000000..f9ba6bb --- /dev/null +++ b/SPECS/maven-shade-plugin.spec @@ -0,0 +1,181 @@ +%global pkg_name maven-shade-plugin +%{?scl:%scl_package %{pkg_name}} +%{?maven_find_provides_and_requires} + +Name: %{?scl_prefix}%{pkg_name} +Version: 2.0 +Release: 6.12%{?dist} +Summary: This plugin provides the capability to package the artifact in an uber-jar +License: ASL 2.0 +URL: http://maven.apache.org/plugins/%{pkg_name} +Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.zip +BuildArch: noarch + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix_java_common}mvn(asm:asm) +BuildRequires: %{?scl_prefix_java_common}mvn(asm:asm-commons) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugins:maven-plugins:pom:) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.shared:maven-dependency-tree) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-artifact) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-compat) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-core) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-model) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-plugin-api) +BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-component-annotations) +BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-container-default) +BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-utils) +BuildRequires: %{?scl_prefix_java_common}mvn(org.jdom:jdom) +BuildRequires: %{?scl_prefix}mvn(org.vafer:jdependency) + + +%description +This plugin provides the capability to package the artifact in an +uber-jar, including its dependencies and to shade - i.e. rename - the +packages of some of the dependencies. + + +%package javadoc +Summary: API documentation for %{pkg_name} + +%description javadoc +%{summary}. + +%prep +%setup -q -n %{pkg_name}-%{version} +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +rm src/test/jars/plexus-utils-1.4.1.jar +ln -s $(build-classpath plexus/utils) src/test/jars/plexus-utils-1.4.1.jar +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +# A class from aopalliance is not found. Simply adding BR does not solve it +%mvn_build -f +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +%mvn_install +%{?scl:EOF} + +%files -f .mfiles +%dir %{_mavenpomdir}/%{pkg_name} +%dir %{_javadir}/%{pkg_name} +%doc LICENSE NOTICE + +%files javadoc -f .mfiles-javadoc +%doc LICENSE NOTICE + +%changelog +* Mon Feb 08 2016 Michal Srb - 2.0-6.12 +- Fix BR on maven-local & co. + +* Mon Jan 11 2016 Michal Srb - 2.0-6.11 +- maven33 rebuild #2 + +* Sat Jan 09 2016 Michal Srb - 2.0-6.10 +- maven33 rebuild + +* Thu Jan 15 2015 Mikolaj Izdebski - 2.0-6.9 +- Add directory ownership on %%{_mavenpomdir} subdir + +* Wed Jan 14 2015 Mikolaj Izdebski - 2.0-6.8 +- Fix BR on maven-plugins parent POM + +* Tue Jan 13 2015 Michael Simacek - 2.0-6.8 +- Mass rebuild 2015-01-13 + +* Tue Jan 06 2015 Michael Simacek - 2.0-6.7 +- Mass rebuild 2015-01-06 + +* Mon May 26 2014 Mikolaj Izdebski - 2.0-6.6 +- Mass rebuild 2014-05-26 + +* Wed Feb 19 2014 Mikolaj Izdebski - 2.0-6.5 +- Mass rebuild 2014-02-19 + +* Tue Feb 18 2014 Mikolaj Izdebski - 2.0-6.4 +- Mass rebuild 2014-02-18 + +* Fri Feb 14 2014 Mikolaj Izdebski - 2.0-6.3 +- SCL-ize requires and build-requires + +* Thu Feb 13 2014 Mikolaj Izdebski - 2.0-6.2 +- Rebuild to regenerate auto-requires + +* Tue Feb 11 2014 Mikolaj Izdebski - 2.0-6.1 +- First maven30 software collection build + +* Fri Dec 27 2013 Daniel Mach - 2.0-6 +- Mass rebuild 2013-12-27 + +* Fri Jun 28 2013 Mikolaj Izdebski - 2.0-5 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Wed Apr 10 2013 Mikolaj Izdebski - 2.0-4 +- Build with xmvn + +* Thu Feb 14 2013 Fedora Release Engineering - 2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 2.0-2 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Thu Dec 13 2012 Tomas Radej - 2.0-1 +- Update to upstream 2.0 + +* Wed Nov 14 2012 Mikolaj Izdebski - 1.7.1-3 +- Install NOTICE file with javadoc package + +* Thu Jul 19 2012 Fedora Release Engineering - 1.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jul 5 2012 Alexander Kurtakov 1.7.1-1 +- Update to upstream 1.7.1. + +* Wed Jun 20 2012 Mikolaj Izdebski - 1.7-1 +- Update to upstream 1.7 + +* Fri Apr 6 2012 Alexander Kurtakov 1.6-1 +- Update to latest upstream release. + +* Mon Mar 05 2012 Jaromir Capik - 1.5-4 +- Migration to plexus-containers-component-metadata + +* Fri Jan 13 2012 Fedora Release Engineering - 1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Nov 23 2011 Stanislav Ochotnicky - 1.5-2 +- Fix depmap macro call + +* Tue Nov 1 2011 Alexander Kurtakov 1.5-1 +- Update to upstream 1.5 release. + +* Thu Jun 9 2011 Alexander Kurtakov 1.4-4 +- Build with maven 3.x. +- Use upstream source. +- Guidelines fixes. + +* Tue Feb 08 2011 Fedora Release Engineering - 1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jan 26 2011 Stanislav Ochotnicky - 1.4-2 +- Add jdependency also to Requires + +* Thu Oct 14 2010 Pierre-Yves Chibon - 1.4-1 +- Update to 1.4 +- Add BR on jdependency >= 0.6 +- Add patch to add dependency on maven-artifact-manager + +* Thu Jul 8 2010 Stanislav Ochotnicky - 1.3.3-2 +- Replace plexus utils jar with symlink +- Create MAVEN_REPO_LOCAL dir before calling maven + +* Tue Jun 22 2010 Stanislav Ochotnicky - 1.3.3-1 +- Initial package