From 9c9684d3f79dfad5d09750d8866f5d404053494c Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Aug 30 2019 09:37:59 +0000 Subject: Subpackage python2-transaction has been removed --- diff --git a/python-transaction.spec b/python-transaction.spec index 767963a..a108d4b 100644 --- a/python-transaction.spec +++ b/python-transaction.spec @@ -1,10 +1,6 @@ -%if 0%{?fedora} || 0%{?rhel} >= 8 -%global with_python3 1 -%endif - Name: python-transaction Version: 2.4.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Transaction management for Python License: ZPLv2.1 @@ -13,19 +9,11 @@ Source0: %pypi_source transaction BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-zope-interface -BuildRequires: python2-nose -BuildRequires: python2-setuptools -BuildRequires: python2-mock - -%if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-nose BuildRequires: python3-zope-interface BuildRequires: python3-mock -%endif %global _description\ @@ -34,23 +22,15 @@ mainly used by the ZODB, though. %description %_description -%package -n python2-transaction -Summary: %summary -Requires: python2-zope-interface -%{?python_provide:%python_provide python2-transaction} - -%description -n python2-transaction %_description - -%if 0%{?with_python3} %package -n python3-transaction Summary: Transaction management for Python 3 Requires: python3-zope-interface +%{?python_provide:%python_provide python3-transaction} %description -n python3-transaction This package contains a generic transaction implementation for Python. It is mainly used by the ZODB, though. -%endif %prep @@ -58,54 +38,31 @@ mainly used by the ZODB, though. # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif %build -%{__python2} setup.py build -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif +%py3_build %install -%{__python2} setup.py install --skip-build --root=%{buildroot} -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} -popd -%endif +%py3_install %check -PYTHONPATH=$(pwd) %{__python2} setup.py test -%if 0%{?with_python3} -pushd %{py3dir} PYTHONPATH=$(pwd) %{__python3} setup.py test -popd -%endif -%files -n python2-transaction -%doc README.rst LICENSE.txt COPYRIGHT.txt -%{python2_sitelib}/transaction/ -%{python2_sitelib}/*.egg-info - - -%if 0%{?with_python3} %files -n python3-transaction %doc README.rst LICENSE.txt COPYRIGHT.txt %{python3_sitelib}/transaction/ %{python3_sitelib}/*.egg-info -%endif %changelog +* Fri Aug 30 2019 Miro Hrončok - 2.4.0-5 +- Subpackage python2-transaction has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Aug 17 2019 Miro Hrončok - 2.4.0-4 - Rebuilt for Python 3.8