From 15243e96b771997e2a62f6b89000a2919338904e Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Feb 25 2019 16:44:27 +0000 Subject: Subpackage python2-unicodecsv has been removed --- diff --git a/python-unicodecsv.spec b/python-unicodecsv.spec index 6d83a01..3a08197 100644 --- a/python-unicodecsv.spec +++ b/python-unicodecsv.spec @@ -1,24 +1,17 @@ %global pypi_name unicodecsv -%if 0%{?fedora} -%global with_python3 1 -%endif %{!?upstream_version: %global upstream_version %{version}%{?milestone}} Name: python-%{pypi_name} Version: 0.14.1 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Drop-in replacement for Python 2.7's csv module which supports unicode strings License: BSD URL: https://github.com/jdunck/python-unicodecsv Source0: https://pypi.python.org/packages/source/u/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-unittest2 >= 0.5.1 - %global _description\ The unicodecsv is a drop-in replacement for Python 2.7's\ csv module which supports unicode strings without a hassle.\ @@ -27,13 +20,6 @@ see https://github.com/jdunck/python-unicodecsv/issues/65 %description %_description -%package -n python2-%{pypi_name} -Summary: %summary -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} %_description - -%if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: Drop-in replacement for Python 2.7's csv module which supports unicode strings BuildArch: noarch @@ -48,68 +34,31 @@ csv module which supports unicode strings without a hassle. It is NOT a drop-in replacement for Python 3's csv module, see https://github.com/jdunck/python-unicodecsv/issues/65 -%endif %prep -%setup -qc -n %{pypi_name}-%{upstream_version} -mv %{pypi_name}-%{upstream_version} python2 - -pushd python2 -#TODO ask upstream to add LICENSE file -cp -p README.rst .. -popd - -%if 0%{?with_python3} -cp -a python2 python3 -%endif - +%setup -q -n %{pypi_name}-%{upstream_version} %build -pushd python2 -%{__python2} setup.py build -popd -%if 0%{?with_python3} -pushd python3 -%{__python3} setup.py build -popd -%endif +%py3_build %install -%if 0%{?with_python3} -pushd python3 -%{__python3} setup.py install --skip-build --root %{buildroot} -popd -%endif - -pushd python2 -%{__python2} setup.py install --skip-build --root %{buildroot} -popd +%py3_install %check -pushd python2 -unit2 discover -popd -%if 0%{?with_python3} -pushd python3 python3-unit2 discover -popd -%endif - - -%files -n python2-%{pypi_name} -%doc README.rst -%{python2_sitelib}/%{pypi_name} -%{python2_sitelib}/%{pypi_name}-*.egg-info -%if 0%{?with_python3} %files -n python3-%{pypi_name} %doc README.rst -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-*.egg-info -%endif +#TODO ask upstream to add LICENSE file +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog +* Mon Feb 25 2019 Miro Hrončok - 0.14.1-15 +- Subpackage python2-unicodecsv has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Feb 02 2019 Fedora Release Engineering - 0.14.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild