From 28b73047f7d6ea190c84536d8184d8a74e1254e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 10 Sep 2019 00:29:19 +0200 Subject: [PATCH] Subpackage python2-appdirs has been removed --- python-appdirs.spec | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/python-appdirs.spec b/python-appdirs.spec index 27740ed..e0dbfdc 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -4,7 +4,7 @@ Name: python-%{srcname} Version: 1.4.3 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Python module for determining platform-specific directories License: MIT @@ -17,16 +17,6 @@ BuildArch: noarch A small Python module for determining appropriate " + " platform-specific directories, e.g. a "user data dir". -%package -n python2-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{srcname}} -BuildRequires: python2-devel -BuildRequires: python2-setuptools - -%description -n python2-%{srcname} -A small Python 2 module for determining appropriate " + " platform-specific -directories, e.g. a "user data dir". - %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} @@ -46,7 +36,6 @@ directories, e.g. a "user data dir". rm -vrf %{srcname}.egg-info %build -%py2_build %if %{with wheel} %py3_build_wheel %else @@ -54,24 +43,17 @@ rm -vrf %{srcname}.egg-info %endif %install -%py2_install %if %{with wheel} %py3_install_wheel %{wheelname} %else %py3_install %endif -sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}{%{python2_sitelib},%{python3_sitelib}}/%{srcname}.py +sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{srcname}.py %check -%{__python2} setup.py test %{__python3} setup.py test -%files -n python2-%{srcname} -%license LICENSE.txt -%doc README.rst CHANGES.rst -%{python2_sitelib}/%{srcname}* - %files -n python3-%{srcname} %license LICENSE.txt %doc README.rst CHANGES.rst @@ -79,6 +61,10 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}{%{python2_sitelib},%{pyth %{python3_sitelib}/__pycache__/%{srcname}.* %changelog +* Mon Sep 09 2019 Miro Hrončok - 1.4.3-12 +- Subpackage python2-appdirs has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Sep 02 2019 Miro Hrončok - 1.4.3-11 - Reduce Python 2 build time dependencies