add python 3 subpackage
This commit is contained in:
parent
1eaeb099ee
commit
cd314a72ca
32
antlr.spec
32
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: 40%{?dist}
|
Release: 41%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.antlr.org/
|
URL: http://www.antlr.org/
|
||||||
@ -27,8 +27,8 @@ BuildRequires: java-devel >= 1:1.7.0
|
|||||||
BuildRequires: java-javadoc
|
BuildRequires: java-javadoc
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel python3-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools python3-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
|
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
|
||||||
@ -86,6 +86,14 @@ BuildArch: noarch
|
|||||||
%description python
|
%description python
|
||||||
Python runtime support for ANTLR-generated parsers
|
Python runtime support for ANTLR-generated parsers
|
||||||
|
|
||||||
|
%package python3
|
||||||
|
Summary: Python runtime support for ANTLR-generated parsers
|
||||||
|
BuildArch: noarch
|
||||||
|
#%%{?python_provide:%%python_provide antlr-python3}
|
||||||
|
|
||||||
|
%description python3
|
||||||
|
Python runtime support for ANTLR-generated parsers
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
# remove all binary libs
|
# remove all binary libs
|
||||||
@ -121,7 +129,8 @@ popd
|
|||||||
|
|
||||||
# build python
|
# build python
|
||||||
cd lib/python
|
cd lib/python
|
||||||
%{__python} setup.py build
|
%py2_build
|
||||||
|
%py3_build
|
||||||
cd ../../
|
cd ../../
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -141,7 +150,8 @@ install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
|
|||||||
|
|
||||||
# python
|
# python
|
||||||
cd lib/python
|
cd lib/python
|
||||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
%py2_install
|
||||||
|
%py3_install
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
|
|
||||||
@ -171,10 +181,18 @@ cd ../..
|
|||||||
|
|
||||||
%files python
|
%files python
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python_sitelib}/antlr/*
|
%{python2_sitelib}/antlr/*
|
||||||
%{python_sitelib}/antlr-*
|
%{python2_sitelib}/antlr-*
|
||||||
|
|
||||||
|
%files python3
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{python3_sitelib}/antlr/*
|
||||||
|
%{python3_sitelib}/antlr-*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 29 2016 gil cattaneo <puntogil@libero.it> 0:2.7.7-41
|
||||||
|
- add python 3 subpackage (rhbz#1313024)
|
||||||
|
|
||||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7.7-40
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7.7-40
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user