use python macros and re,ove unsuppoted python 3 package

This commit is contained in:
gil 2016-02-29 20:35:39 +01:00
parent cd314a72ca
commit ae41e8ee17

View File

@ -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 python3-devel BuildRequires: python2-devel
BuildRequires: python-setuptools python3-setuptools BuildRequires: python-setuptools
%description %description
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
@ -130,7 +130,6 @@ popd
# build python # build python
cd lib/python cd lib/python
%py2_build %py2_build
%py3_build
cd ../../ cd ../../
%install %install
@ -151,7 +150,6 @@ install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
# python # python
cd lib/python cd lib/python
%py2_install %py2_install
%py3_install
cd ../.. cd ../..
@ -191,7 +189,7 @@ cd ../..
%changelog %changelog
* Mon Feb 29 2016 gil cattaneo <puntogil@libero.it> 0:2.7.7-41 * Mon Feb 29 2016 gil cattaneo <puntogil@libero.it> 0:2.7.7-41
- add python 3 subpackage (rhbz#1313024) - use python macros
* 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