- Remove INSTALL.txt (fix BZ#661626)
- add python subpackage (fix BZ#505312)
This commit is contained in:
parent
8128011330
commit
a8dcefaee5
28
antlr.spec
28
antlr.spec
@ -4,7 +4,7 @@
|
|||||||
Summary: ANother Tool for Language Recognition
|
Summary: ANother Tool for Language Recognition
|
||||||
Name: antlr
|
Name: antlr
|
||||||
Version: 2.7.7
|
Version: 2.7.7
|
||||||
Release: 14%{?dist}
|
Release: 13%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.antlr.org/
|
URL: http://www.antlr.org/
|
||||||
@ -84,6 +84,16 @@ BuildArch: noarch
|
|||||||
This package contains the documentation for the C++ bindings for parsers
|
This package contains the documentation for the C++ bindings for parsers
|
||||||
generated by ANTLR2.
|
generated by ANTLR2.
|
||||||
|
|
||||||
|
%package python
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Python runtime support for ANTLR-generated parsers
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python-setuptools-devel
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description python
|
||||||
|
Python runtime support for ANTLR-generated parsers
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
# remove all binary libs
|
# remove all binary libs
|
||||||
@ -111,6 +121,11 @@ pushd lib/cpp
|
|||||||
find gen_doc -type f -exec chmod 0644 {} \;
|
find gen_doc -type f -exec chmod 0644 {} \;
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# build python
|
||||||
|
cd lib/python
|
||||||
|
%{__python} setup.py build
|
||||||
|
cd ../../
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir},%{_bindir}}
|
mkdir -p $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir},%{_bindir}}
|
||||||
@ -134,6 +149,11 @@ mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|||||||
cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
# python
|
||||||
|
cd lib/python
|
||||||
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
|
cd ../..
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -165,9 +185,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc %{_javadocdir}/%{name}-%{version}
|
%doc %{_javadocdir}/%{name}-%{version}
|
||||||
%doc %{_javadocdir}/%{name}
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%files python
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{python_sitelib}/antlr/*
|
||||||
|
%{python_sitelib}/antlr-*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Feb 07 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 0:2.7.7-14
|
* Mon Feb 07 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 0:2.7.7-14
|
||||||
- Remove INSTALL.txt (fix BZ#661626)
|
- Remove INSTALL.txt (fix BZ#661626)
|
||||||
|
- add python subpackage (fix BZ#505312)
|
||||||
|
|
||||||
* Mon Feb 07 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 0:2.7.7-13
|
* Mon Feb 07 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 0:2.7.7-13
|
||||||
- Added missing Obsoletes: antlr on antlr-tool (fix BZ#603466)
|
- Added missing Obsoletes: antlr on antlr-tool (fix BZ#603466)
|
||||||
|
Loading…
Reference in New Issue
Block a user