Add maven POM

This commit is contained in:
Mikolaj Izdebski 2012-11-01 15:29:16 +01:00
parent 38b672f6c9
commit 60c838aeaf
2 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Summary: ANother Tool for Language Recognition
Name: antlr
Version: 2.7.7
Release: 23%{?dist}
Release: 24%{?dist}
Epoch: 0
License: Public Domain
URL: http://www.antlr.org/
@ -12,6 +12,7 @@ Group: Development/Tools
Source0: http://www.antlr2.org/download/antlr-%{version}.tar.gz
Source1: %{name}-build.xml
Source2: %{name}-script
Source3: http://repo2.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Patch1: %{name}-%{version}-newgcc.patch
# see BZ#848662
Patch2: antlr-examples-license.patch
@ -159,6 +160,11 @@ cd lib/python
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
cd ../..
# POM and depmap
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap -a antlr:antlrall
%clean
rm -rf $RPM_BUILD_ROOT
@ -176,6 +182,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/%{name}
%{_libdir}/libantlr.a
%{_bindir}/antlr-config
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%files C++-doc
%defattr(-,root,root,-)
@ -196,6 +204,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/antlr-*
%changelog
* Thu Nov 1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.7.7-24
- Add maven POM
* Sat Aug 18 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 0:2.7.7-23
- Add patch updating license on ShowString.java and StreamConverter.java
examples (thanks to Tom Callaway, see BZ#848662)

View File

@ -1 +1,2 @@
01cc9a2a454dd33dcd8c856ec89af090 antlr-2.7.7.tar.gz
78af3de823003f6d8dded39c70bc30ae antlr-2.7.7.pom