diff --git a/antlr.spec b/antlr.spec index e8498d8..80785d6 100644 --- a/antlr.spec +++ b/antlr.spec @@ -4,7 +4,7 @@ Summary: ANother Tool for Language Recognition Name: antlr Version: 2.7.7 -Release: 40%{?dist} +Release: 41%{?dist} Epoch: 0 License: Public Domain URL: http://www.antlr.org/ @@ -27,8 +27,8 @@ BuildRequires: java-devel >= 1:1.7.0 BuildRequires: java-javadoc BuildRequires: javapackages-local BuildRequires: doxygen -BuildRequires: python2-devel -BuildRequires: python-setuptools +BuildRequires: python2-devel python3-devel +BuildRequires: python-setuptools python3-setuptools %description ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a @@ -86,6 +86,14 @@ BuildArch: noarch %description python 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 %setup -q # remove all binary libs @@ -121,7 +129,8 @@ popd # build python cd lib/python -%{__python} setup.py build +%py2_build +%py3_build cd ../../ %install @@ -141,7 +150,8 @@ install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir} # python cd lib/python -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%py2_install +%py3_install cd ../.. @@ -171,10 +181,18 @@ cd ../.. %files python %license LICENSE.txt -%{python_sitelib}/antlr/* -%{python_sitelib}/antlr-* +%{python2_sitelib}/antlr/* +%{python2_sitelib}/antlr-* + +%files python3 +%license LICENSE.txt +%{python3_sitelib}/antlr/* +%{python3_sitelib}/antlr-* %changelog +* Mon Feb 29 2016 gil cattaneo 0:2.7.7-41 +- add python 3 subpackage (rhbz#1313024) + * Wed Feb 03 2016 Fedora Release Engineering - 0:2.7.7-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild