diff --git a/python-asciitree.spec b/python-asciitree.spec index 23b94b4..dde32f9 100644 --- a/python-asciitree.spec +++ b/python-asciitree.spec @@ -1,20 +1,15 @@ -%if 0%{?fedora} -%global with_python3 1 -%endif %{!?_licensedir: %global license %%doc} %if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %global modname asciitree Name: python-asciitree Version: 0.3.3 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Draws ASCII trees License: MIT @@ -27,24 +22,6 @@ Sometimes you just want to draw ascii trees in your terminal. Read the documentation at http://pythonhosted.org/asciitree -%package -n python2-%{modname} -Summary: Draws ASCII trees -%{?python_provide:%python_provide python2-%{modname}} - -%if 0%{?rhel} && 0%{?rhel} <= 7 -BuildRequires: python-devel -BuildRequires: python-setuptools -%else -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%endif - -%description -n python2-%{modname} -Sometimes you just want to draw ascii trees in your terminal. - -Read the documentation at http://pythonhosted.org/asciitree - -%if 0%{?with_python3} %package -n python3-%{modname} Summary: Draws ASCII trees %{?python_provide:%python_provide python3-%{modname}} @@ -55,46 +32,31 @@ BuildRequires: python3-setuptools Sometimes you just want to draw ascii trees in your terminal. Read the documentation at http://pythonhosted.org/asciitree -%endif %prep %autosetup -n %{modname}-%{version} %build -%py2_build -%if 0%{?with_python3} %py3_build -%endif %install -%py2_install -%if 0%{?with_python3} %py3_install -%endif -# Tests are not packaged. -# https://github.com/mbr/asciitree/pull/9 -#%%check -#%%{__python2} setup.py test #%%if 0%{?with_python3} #%%{__python3} setup.py test #%%endif -%files -n python2-%{modname} -%doc README.rst -%license LICENSE -%{python2_sitelib}/%{modname}/ -%{python2_sitelib}/%{modname}-%{version}* - -%if 0%{?with_python3} %files -n python3-%{modname} %doc README.rst %license LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}* -%endif %changelog +* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 0.3.3-10 +- Subpackage python2-asciitree has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Fri Jul 13 2018 Fedora Release Engineering - 0.3.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild