4340f5
%global jar_version 1.4
4340f5
%global lh_version 1.1
4340f5
%global id_version 1.1
4340f5
4340f5
Name:		apache-resource-bundles
4340f5
Version:	2
2abf23
Release:	11%{?dist}
4340f5
Summary:	Apache Resource Bundles
4340f5
4340f5
Group:		Development/Libraries
4340f5
License:	ASL 2.0
4340f5
URL:		http://repo1.maven.org/maven2/org/apache/apache-resource-bundles/
4340f5
Source0:	http://repo1.maven.org/maven2/org/apache/%{name}/%{version}/%{name}-%{version}.pom
4340f5
Source1:	http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}-sources.jar
4340f5
Source2:	http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}.pom
4340f5
Source3:	http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}-sources.jar
4340f5
Source4:	http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}.pom
4340f5
Source5:	http://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}-sources.jar
4340f5
Source6:	http://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}.pom
4340f5
4340f5
BuildRequires:	maven-local
4340f5
BuildRequires:	maven-compiler-plugin
4340f5
BuildRequires:	maven-install-plugin
4340f5
BuildRequires:	maven-jar-plugin
4340f5
BuildRequires:	maven-remote-resources-plugin
4340f5
BuildRequires:	maven-resources-plugin
4340f5
BuildRequires:	maven-surefire-plugin
4340f5
BuildRequires:  maven-site-plugin
4340f5
4340f5
BuildArch:	noarch
4340f5
4340f5
%description
4340f5
An archive which contains templates for generating the necessary license files
4340f5
and notices for all Apache releases.
4340f5
4340f5
%prep
4340f5
%setup -c -T
4340f5
cp %SOURCE0 ./pom.xml
4340f5
4340f5
# jar
4340f5
mkdir -p apache-jar-resource-bundle
4340f5
pushd apache-jar-resource-bundle
4340f5
jar xvf %SOURCE1
4340f5
cp %SOURCE2 ./pom.xml
4340f5
mkdir -p src/main/resources
4340f5
mv META-INF src/main/resources
4340f5
popd
4340f5
4340f5
# license-header
4340f5
mkdir -p apache-license-header-resource-bundle
4340f5
pushd apache-license-header-resource-bundle
4340f5
jar xvf %SOURCE3
4340f5
cp %SOURCE4 ./pom.xml
4340f5
mkdir -p src/main/resources
4340f5
mv META-INF src/main/resources
4340f5
popd
4340f5
4340f5
# incubator-disclaimer
4340f5
mkdir -p apache-incubator-disclaimer-resource-bundle
4340f5
pushd apache-incubator-disclaimer-resource-bundle
4340f5
jar xvf %SOURCE5
4340f5
cp %SOURCE6 ./pom.xml
4340f5
mkdir -p src/main/resources
4340f5
mv META-INF src/main/resources
4340f5
popd
4340f5
4340f5
4340f5
%build
4340f5
%mvn_file :apache-jar-resource-bundle apache-resource-bundles/jar
4340f5
%mvn_file :apache-license-header-resource-bundle apache-resource-bundles/license-header
4340f5
%mvn_file :apache-incubator-disclaimer-resource-bundle apache-resource-bundles/incubator-disclaimer
4340f5
%mvn_build
4340f5
4340f5
%install
4340f5
%mvn_install
4340f5
4340f5
%files -f .mfiles
4340f5
4340f5
%changelog
2abf23
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2-11
2abf23
- Mass rebuild 2013-12-27
2abf23
4340f5
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2-10
4340f5
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
4340f5
- Replace maven BuildRequires with maven-local
4340f5
4340f5
* Wed Jan 16 2013 Michal Srb <msrb@redhat.com> - 2-9
4340f5
- Build with xmvn
4340f5
4340f5
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-8
4340f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4340f5
4340f5
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-7
4340f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4340f5
4340f5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-6
4340f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4340f5
4340f5
* Thu Nov 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2-5
4340f5
- Fix pom file names and add_to_maven_depmap calls (Resolves rhbz#655790)
4340f5
4340f5
* Wed Sep 8 2010 Alexander Kurtakov <akurtako@redhat.com> 2-4
4340f5
- Add maven-site-plugin BR.
4340f5
- Use newer names of maven plugins.
4340f5
4340f5
* Mon Feb  1 2010 Mary Ellen Foster <mefoster at gmail.com> 2-3
4340f5
- Fix license 
4340f5
4340f5
* Tue Jan 19 2010 Mary Ellen Foster <mefoster at gmail.com> 2-2
4340f5
- Add plugin dependencies from POMs
4340f5
- Fix description
4340f5
- Remove maven-release plugin (not on Fedora yet)
4340f5
4340f5
* Mon Jan 18 2010 Mary Ellen Foster <mefoster at gmail.com> 2-1
4340f5
- Initial package