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
Version: 2.0.8
Release: 11%{?dist}
Release: 12%{?dist}
Epoch: 0
Summary: Full regular expressions API
License: ASL 1.1
Group: Development/Libraries
Source0: http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz
Source1: MANIFEST.MF
Source2: http://repo1.maven.org/maven2/%{base_name}/%{base_name}/%{version}/%{base_name}-%{version}.pom
Patch1: %{name}-build-xml.patch
URL: http://jakarta.apache.org/oro
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}
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
# workaround for rpm bug, can be removed in F-18
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
@ -95,6 +101,8 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%defattr(-,root,root)
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE
%{_javadir}/*.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%files javadoc
%defattr(-,root,root)
@ -102,6 +110,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%{_javadocdir}/%{name}
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

View File

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