diff --git a/python-chameleon.spec b/python-chameleon.spec index a2b4d06a4b..c02bc2c7a0 100644 --- a/python-chameleon.spec +++ b/python-chameleon.spec @@ -12,7 +12,7 @@ Name: python-chameleon Version: 3.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: XML-based template compiler Group: Development/Languages @@ -44,41 +44,43 @@ BuildRequires: python-unittest2 %if 0%{?rhel} && 0%{?rhel} < 6 BuildRequires: python-elementtree -Requires: python-elementtree BuildRequires: python-ordereddict -Requires: python-ordereddict %endif +%global _description\ +Chameleon is an XML attribute language template compiler. It comes with\ +implementations for the Zope Page Templates (ZPT) and Genshi templating\ +languages.\ +\ +The engine compiles templates into Python byte-code. This results in\ +performance which is on average 10-15 times better than implementations which\ +use run-time interpretation. + +%description %_description + +%package -n python2-chameleon +Summary: %summary +%if 0%{?rhel} && 0%{?rhel} < 6 +Requires: python-elementtree +Requires: python-ordereddict +%endif Requires: python-setuptools Requires: python-zope-interface Requires: python-lxml +%{?python_provide:%python_provide python2-chameleon} -%description -Chameleon is an XML attribute language template compiler. It comes with -implementations for the Zope Page Templates (ZPT) and Genshi templating -languages. - -The engine compiles templates into Python byte-code. This results in -performance which is on average 10-15 times better than implementations which -use run-time interpretation. +%description -n python2-chameleon %_description %if 0%{?with_python3} %package -n python3-chameleon -Summary: XML-based template compiler -Group: Development/Languages +Summary: %summary Requires: python3-setuptools Requires: python3-zope-interface Requires: python3-lxml +%{?python_provide:%python_provide python3-chameleon} -%description -n python3-chameleon -Chameleon is an XML attribute language template compiler. It comes with -implementations for the Zope Page Templates (ZPT) and Genshi templating -languages. - -The engine compiles templates into Python byte-code. This results in -performance which is on average 10-15 times better than implementations which -use run-time interpretation. +%description -n python3-chameleon %_description %endif %prep @@ -128,7 +130,7 @@ popd %{__python2} setup.py test -%files +%files -n python2-chameleon %doc *.rst *.txt docs html %{python2_sitelib}/chameleon/ %{python2_sitelib}/Chameleon-%{version}* @@ -141,6 +143,10 @@ popd %endif %changelog +* Wed Aug 09 2017 Zbigniew Jędrzejewski-Szmek - 3.1-3 +- Python 2 binary package renamed to python2-chameleon + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild