Add maven POM

This commit is contained in:
Mikolaj Izdebski 2012-11-01 16:09:53 +01:00
parent 16184ebd4c
commit 2674bc4379
2 changed files with 13 additions and 1 deletions

View File

@ -32,13 +32,14 @@
Name: jakarta-oro Name: jakarta-oro
Version: 2.0.8 Version: 2.0.8
Release: 11%{?dist} Release: 12%{?dist}
Epoch: 0 Epoch: 0
Summary: Full regular expressions API Summary: Full regular expressions API
License: ASL 1.1 License: ASL 1.1
Group: Development/Libraries Group: Development/Libraries
Source0: http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz Source0: http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz
Source1: MANIFEST.MF Source1: MANIFEST.MF
Source2: http://repo1.maven.org/maven2/%{base_name}/%{base_name}/%{version}/%{base_name}-%{version}.pom
Patch1: %{name}-build-xml.patch Patch1: %{name}-build-xml.patch
URL: http://jakarta.apache.org/oro URL: http://jakarta.apache.org/oro
BuildRequires: jpackage-utils > 1.6 BuildRequires: jpackage-utils > 1.6
@ -86,6 +87,11 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
rm -rf docs/api rm -rf docs/api
# POM and depmap
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap
%pre javadoc %pre javadoc
# workaround for rpm bug, can be removed in F-18 # workaround for rpm bug, can be removed in F-18
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \ [ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
@ -95,6 +101,8 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%defattr(-,root,root) %defattr(-,root,root)
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE %doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE
%{_javadir}/*.jar %{_javadir}/*.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%files javadoc %files javadoc
%defattr(-,root,root) %defattr(-,root,root)
@ -102,6 +110,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %changelog
* Thu Nov 1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0.8-12
- Add maven POM
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-11 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

View File

@ -1 +1,2 @@
6f7690c6ba9750e3cbb8ebd10078a79a jakarta-oro-2.0.8.tar.gz 6f7690c6ba9750e3cbb8ebd10078a79a jakarta-oro-2.0.8.tar.gz
e0a58537b20f61e4535827a764c1bddc oro-2.0.8.pom