7abce1
%global jar_version 1.4
7abce1
%global lh_version 1.1
7abce1
%global id_version 1.1
7abce1
7abce1
Name:           apache-resource-bundles
7abce1
Version:        2
7abce1
Release:        20%{?dist}
7abce1
Summary:        Apache Resource Bundles
7abce1
License:        ASL 2.0
7abce1
URL:            http://repo1.maven.org/maven2/org/apache/apache-resource-bundles/
7abce1
BuildArch:      noarch
7abce1
7abce1
Source0:        http://repo1.maven.org/maven2/org/apache/%{name}/%{version}/%{name}-%{version}.pom
7abce1
Source1:        http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}-sources.jar
7abce1
Source2:        http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}.pom
7abce1
Source3:        http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}-sources.jar
7abce1
Source4:        http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}.pom
7abce1
Source5:        http://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}-sources.jar
7abce1
Source6:        http://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}.pom
7abce1
7abce1
BuildRequires:  maven-local
7abce1
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
7abce1
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
7abce1
7abce1
%description
7abce1
An archive which contains templates for generating the necessary license files
7abce1
and notices for all Apache releases.
7abce1
7abce1
%prep
7abce1
%setup -cT
7abce1
cp -p %{SOURCE0} ./pom.xml
7abce1
7abce1
# jar
7abce1
mkdir -p apache-jar-resource-bundle
7abce1
pushd apache-jar-resource-bundle
7abce1
jar xvf %{SOURCE1}
7abce1
cp -p %{SOURCE2} ./pom.xml
7abce1
mkdir -p src/main/resources
7abce1
mv META-INF src/main/resources
7abce1
popd
7abce1
7abce1
# license-header
7abce1
mkdir -p apache-license-header-resource-bundle
7abce1
pushd apache-license-header-resource-bundle
7abce1
jar xvf %{SOURCE3}
7abce1
cp -p %{SOURCE4} ./pom.xml
7abce1
mkdir -p src/main/resources
7abce1
mv META-INF src/main/resources
7abce1
popd
7abce1
7abce1
# incubator-disclaimer
7abce1
mkdir -p apache-incubator-disclaimer-resource-bundle
7abce1
pushd apache-incubator-disclaimer-resource-bundle
7abce1
jar xvf %{SOURCE5}
7abce1
cp -p %{SOURCE6} ./pom.xml
7abce1
mkdir -p src/main/resources
7abce1
mv META-INF src/main/resources
7abce1
popd
7abce1
7abce1
%mvn_file :apache-jar-resource-bundle apache-resource-bundles/jar
7abce1
%mvn_file :apache-license-header-resource-bundle apache-resource-bundles/license-header
7abce1
%mvn_file :apache-incubator-disclaimer-resource-bundle apache-resource-bundles/incubator-disclaimer
7abce1
7abce1
%build
7abce1
%mvn_build
7abce1
7abce1
%install
7abce1
%mvn_install
7abce1
7abce1
%files -f .mfiles
7abce1
7abce1
%changelog
7abce1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2-20
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7abce1
7abce1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-19
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7abce1
7abce1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-18
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7abce1
7abce1
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2-17
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7abce1
7abce1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-16
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7abce1
7abce1
* Tue Apr 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2-15
7abce1
- Cleanup spec file
7abce1
7abce1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-14
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7abce1
7abce1
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2-13
7abce1
- Use Requires: java-headless rebuild (#1067528)
7abce1
7abce1
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2-12
7abce1
- Fix unowned directory
7abce1
7abce1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-11
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7abce1
7abce1
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2-10
7abce1
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
7abce1
- Replace maven BuildRequires with maven-local
7abce1
7abce1
* Wed Jan 16 2013 Michal Srb <msrb@redhat.com> - 2-9
7abce1
- Build with xmvn
7abce1
7abce1
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-8
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7abce1
7abce1
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-7
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7abce1
7abce1
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-6
7abce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7abce1
7abce1
* Thu Nov 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2-5
7abce1
- Fix pom file names and add_to_maven_depmap calls (Resolves rhbz#655790)
7abce1
7abce1
* Wed Sep 8 2010 Alexander Kurtakov <akurtako@redhat.com> 2-4
7abce1
- Add maven-site-plugin BR.
7abce1
- Use newer names of maven plugins.
7abce1
7abce1
* Mon Feb  1 2010 Mary Ellen Foster <mefoster at gmail.com> 2-3
7abce1
- Fix license 
7abce1
7abce1
* Tue Jan 19 2010 Mary Ellen Foster <mefoster at gmail.com> 2-2
7abce1
- Add plugin dependencies from POMs
7abce1
- Fix description
7abce1
- Remove maven-release plugin (not on Fedora yet)
7abce1
7abce1
* Mon Jan 18 2010 Mary Ellen Foster <mefoster at gmail.com> 2-1
7abce1
- Initial package