From b21db4eef065abdd436dd19567c4f5bd2ad90c92 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Sep 08 2019 21:46:39 +0000 Subject: Subpackage python2-chameleon has been removed --- diff --git a/python-chameleon.spec b/python-chameleon.spec index 912ea0f..11b671e 100644 --- a/python-chameleon.spec +++ b/python-chameleon.spec @@ -1,12 +1,8 @@ -%if 0%{?fedora} || 0%{?rhel} >= 8 -%global with_python3 1 -%endif - %global srcname Chameleon Name: python-chameleon Version: 3.6.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: XML-based template compiler License: BSD @@ -15,22 +11,11 @@ Source0: %pypi_source %{srcname} BuildArch: noarch -BuildRequires: python2-devel -# For tests to run -BuildRequires: python2-setuptools -BuildRequires: python2-lxml -BuildRequires: python2-zope-interface - -%if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-lxml BuildRequires: python3-zope-interface -%endif -%if 0%{?rhel} && 0%{?rhel} <= 6 -BuildRequires: python-unittest2 -%endif %global _description\ Chameleon is an XML attribute language template compiler. It comes with\ @@ -43,16 +28,6 @@ use run-time interpretation. %description %_description -%package -n python2-chameleon -Summary: %summary -Requires: python2-setuptools -Requires: python2-zope-interface -Requires: python2-lxml -%{?python_provide:%python_provide python2-chameleon} - -%description -n python2-chameleon %_description - -%if 0%{?with_python3} %package -n python3-chameleon Summary: %summary @@ -62,52 +37,35 @@ Requires: python3-lxml %{?python_provide:%python_provide python3-chameleon} %description -n python3-chameleon %_description -%endif %prep %autosetup -n Chameleon-%{version} %build -%py2_build -%if 0%{?with_python3} %py3_build -%endif %install -%py2_install -%if 0%{?with_python3} %py3_install -%endif # No need to ship tests as part of the module -rm -rf %{buildroot}%{python2_sitelib}/chameleon/tests -# Data files for the tests -find %{buildroot}%{python2_sitelib}/chameleon -name '*.txt' -exec rm \{\} \; -%if 0%{?with_python3} rm -rf %{buildroot}%{python3_sitelib}/chameleon/tests +# Data files for the tests find %{buildroot}%{python3_sitelib}/chameleon -name '*.txt' -exec rm \{\} \; -%endif %check -%{__python2} setup.py test -%if 0%{?with_python3} %{__python3} setup.py test -%endif -%files -n python2-chameleon -%doc README.rst -%{python2_sitelib}/chameleon/ -%{python2_sitelib}/Chameleon-%{version}* - -%if 0%{?with_python3} %files -n python3-chameleon %doc README.rst %{python3_sitelib}/chameleon/ %{python3_sitelib}/Chameleon-%{version}* -%endif %changelog +* Sun Sep 08 2019 Miro Hrončok - 3.6.2-4 +- Subpackage python2-chameleon has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sun Aug 18 2019 Miro Hrončok - 3.6.2-3 - Rebuilt for Python 3.8