Subpackage python2-appdirs has been removed
This commit is contained in:
parent
892043745d
commit
28b73047f7
@ -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 <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 1.4.3-11
|
||||
- Reduce Python 2 build time dependencies
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user