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