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