Blame SPECS/maven-shared-jar.spec

13c97e
%global pkg_name maven-shared-jar
13c97e
%{?scl:%scl_package %{pkg_name}}
13c97e
%{?maven_find_provides_and_requires}
13c97e
13c97e
Name:           %{?scl_prefix}%{pkg_name}
13c97e
Version:        1.1
13c97e
Release:        7.11%{?dist}
13c97e
# Maven-shared defines maven-shared-jar version as 1.1
13c97e
Epoch:          1
13c97e
Summary:        Maven JAR Utilities
13c97e
License:        ASL 2.0
13c97e
URL:            http://maven.apache.org/shared/maven-shared-jar
13c97e
Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.zip
13c97e
13c97e
BuildArch:      noarch
13c97e
13c97e
BuildRequires:  %{?scl_prefix}maven-local
13c97e
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-component-metadata)
13c97e
BuildRequires:  %{?scl_prefix_java_common}mvn(org.apache.bcel:bcel)
13c97e
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-model)
13c97e
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.shared:maven-shared-components:pom:)
13c97e
BuildRequires:  %{?scl_prefix_java_common}mvn(commons-collections:commons-collections)
13c97e
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-container-default)
13c97e
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-artifact)
13c97e
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-digest)
13c97e
13c97e
13c97e
%description
13c97e
Utilities that help identify the contents of a JAR, including Java class
13c97e
analysis and Maven metadata analysis.
13c97e
13c97e
This is a replacement package for maven-shared-jar
13c97e
13c97e
%package javadoc
13c97e
Summary:        Javadoc for %{pkg_name}
13c97e
    
13c97e
%description javadoc
13c97e
API documentation for %{pkg_name}.
13c97e
13c97e
13c97e
%prep
13c97e
%setup -q -n %{pkg_name}-%{version}
13c97e
%{?scl:scl enable %{scl} - <<"EOF"}
13c97e
set -e -x
13c97e
13c97e
%pom_add_dep org.codehaus.plexus:plexus-container-default
13c97e
13c97e
find -type f -iname '*.jar' -delete
13c97e
13c97e
# Replace plexus-maven-plugin with plexus-component-metadata
13c97e
find -name 'pom.xml' -exec sed \
13c97e
    -i 's/<artifactId>plexus-maven-plugin<\/artifactId>/<artifactId>plexus-component-metadata<\/artifactId>/' '{}' ';'
13c97e
find -name 'pom.xml' -exec sed \
13c97e
    -i 's/<goal>descriptor<\/goal>/<goal>generate-metadata<\/goal>/' '{}' ';'
13c97e
13c97e
%mvn_file : %{pkg_name}
13c97e
%{?scl:EOF}
13c97e
13c97e
%build
13c97e
%{?scl:scl enable %{scl} - <<"EOF"}
13c97e
set -e -x
13c97e
# Tests require the jars that were removed
13c97e
%mvn_build -f
13c97e
%{?scl:EOF}
13c97e
13c97e
%install
13c97e
%{?scl:scl enable %{scl} - <<"EOF"}
13c97e
set -e -x
13c97e
%mvn_install
13c97e
%{?scl:EOF}
13c97e
13c97e
%files -f .mfiles
13c97e
%doc LICENSE NOTICE
13c97e
13c97e
%files javadoc -f .mfiles-javadoc
13c97e
%doc LICENSE NOTICE
13c97e
13c97e
13c97e
%changelog
13c97e
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1:1.1-7.11
13c97e
- Fix BR on maven-local & co.
13c97e
13c97e
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 1:1.1-7.10
13c97e
- maven33 rebuild #2
13c97e
13c97e
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 1:1.1-7.9
13c97e
- maven33 rebuild
13c97e
13c97e
* Wed Jan 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-7.8
13c97e
- Fix BR on maven-shared POM
13c97e
13c97e
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1:1.1-7.8
13c97e
- Mass rebuild 2015-01-13
13c97e
13c97e
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 1:1.1-7.7
13c97e
- Mass rebuild 2015-01-06
13c97e
13c97e
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-7.6
13c97e
- Mass rebuild 2014-05-26
13c97e
13c97e
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-7.5
13c97e
- Mass rebuild 2014-02-19
13c97e
13c97e
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-7.4
13c97e
- Mass rebuild 2014-02-18
13c97e
- Add missing BR: maven-shared
13c97e
13c97e
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-7.3
13c97e
- SCL-ize build-requires
13c97e
13c97e
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-7.2
13c97e
- Rebuild to regenerate auto-requires
13c97e
13c97e
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-7.1
13c97e
- First maven30 software collection build
13c97e
13c97e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:1.1-7
13c97e
- Mass rebuild 2013-12-27
13c97e
13c97e
* Thu Sep 19 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-6
13c97e
- Fix BuildRequires
13c97e
13c97e
* Fri Aug 23 2013 Michal Srb <msrb@redhat.com> - 1:1.1-5
13c97e
- Migrate away from mvn-rpmbuild (Resolves: #997500)
13c97e
13c97e
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1-4
13c97e
- Rebuild to regenerate API documentation
13c97e
- Resolves: CVE-2013-1571
13c97e
13c97e
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1:1.1-3
13c97e
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
13c97e
- Replace maven BuildRequires with maven-local
13c97e
13c97e
* Wed Jan 23 2013 Tomas Radej <tradej@redhat.com> - 1:1.1-2
13c97e
- Removed jars and skipped tests
13c97e
13c97e
* Tue Jan 15 2013 Tomas Radej <tradej@redhat.com> - 1:1.1-1
13c97e
- Initial version
13c97e