From 49a65b8fe2fbdb906fe19006c728907f36e507ae Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: May 05 2019 10:43:13 +0000 Subject: Subpackage python2-d2to1 has been removed --- diff --git a/python-d2to1.spec b/python-d2to1.spec index 2cc25c0..dff7c0b 100644 --- a/python-d2to1.spec +++ b/python-d2to1.spec @@ -1,21 +1,14 @@ -%if 0%{?fedora} > 12 || 0%{?rhel} > 7 -%global with_python3 1 -%else -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")} -%endif - %global srcname d2to1 Name: python-%{srcname} Version: 0.2.12 -Release: 11.post1%{?dist} +Release: 12.post1%{?dist} Summary: Allows using distutils2-like setup.cfg files with setup.py License: BSD URL: http://pypi.python.org/pypi/d2to1 #Source0: http://pypi.python.org/packages/source/d/d2to1/%{srcname}-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/d/d2to1/d2to1-0.2.12.post1.tar.gz -BuildRequires: python2-devel python2-setuptools BuildArch: noarch @@ -27,72 +20,38 @@ and a very minimal setup.py which will slurp its arguments from the setup.cfg. %description %_description -%package -n python2-d2to1 -Summary: %summary -Requires: python2-setuptools -Provides: python2-d2to1 -%{?python_provide:%python_provide python2-d2to1} - -%description -n python2-d2to1 %_description - -%if 0%{?with_python3} %package -n python3-d2to1 Summary: Allows using distutils2-like setup.cfg files with setup.py -BuildRequires: python3-devel python3-setuptools +%{?python_provide:%python_provide python3-d2to1} +BuildRequires: python3-devel +BuildRequires: python3-setuptools Requires: python3-setuptools -%description -n python3-d2to1 -d2to1 allows using distutils2-like setup.cfg files for a package's metadata -with a distribute/setuptools setup.py script. It works by providing a -distutils2-formatted setup.cfg file containing all of a package's metadata, -and a very minimal setup.py which will slurp its arguments from the setup.cfg. -%endif # with_python3 +%description -n python3-d2to1 %_description %prep #%setup -q -n %{srcname}-%{version} %setup -q -n %{srcname}-%{version}.post1 -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' -%endif # with_python3 - -find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|' +find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %build -%{__python2} setup.py build - -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif # with_python3 +%py3_build %install +%py3_install -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install --skip-build --root %{buildroot} -popd -%endif # with_python3 - -%{__python2} setup.py install --skip-build --root %{buildroot} - -%files -n python2-d2to1 -%doc CHANGES.rst README.rst -%license LICENSE -%{python2_sitelib}/* - -%if 0%{?with_python3} %files -n python3-d2to1 %doc CHANGES.rst README.rst %license LICENSE %{python3_sitelib}/* -%endif # with_python3 %changelog +* Sun May 05 2019 Miro Hrončok - 0.2.12-12.post1 +- Subpackage python2-d2to1 has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Feb 02 2019 Fedora Release Engineering - 0.2.12-11.post1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild