Reduce Python 2 build time dependencies
This commit is contained in:
parent
339c8fff1b
commit
892043745d
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 1.4.3
|
Version: 1.4.3
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Summary: Python module for determining platform-specific directories
|
Summary: Python module for determining platform-specific directories
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -22,10 +22,6 @@ Summary: %{summary}
|
|||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
%if %{with wheel}
|
|
||||||
BuildRequires: python2-pip
|
|
||||||
BuildRequires: python2-wheel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description -n python2-%{srcname}
|
%description -n python2-%{srcname}
|
||||||
A small Python 2 module for determining appropriate " + " platform-specific
|
A small Python 2 module for determining appropriate " + " platform-specific
|
||||||
@ -50,20 +46,18 @@ directories, e.g. a "user data dir".
|
|||||||
rm -vrf %{srcname}.egg-info
|
rm -vrf %{srcname}.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%py2_build
|
||||||
%if %{with wheel}
|
%if %{with wheel}
|
||||||
%py2_build_wheel
|
|
||||||
%py3_build_wheel
|
%py3_build_wheel
|
||||||
%else
|
%else
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%py2_install
|
||||||
%if %{with wheel}
|
%if %{with wheel}
|
||||||
%py2_install_wheel %{wheelname}
|
|
||||||
%py3_install_wheel %{wheelname}
|
%py3_install_wheel %{wheelname}
|
||||||
%else
|
%else
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -85,6 +79,9 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}{%{python2_sitelib},%{pyth
|
|||||||
%{python3_sitelib}/__pycache__/%{srcname}.*
|
%{python3_sitelib}/__pycache__/%{srcname}.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-11
|
||||||
|
- Reduce Python 2 build time dependencies
|
||||||
|
|
||||||
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-10
|
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-10
|
||||||
- Rebuilt for Python 3.8
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user