import python3x-setuptools-41.6.0-4.module+el8.3.0+7187+a27ec44b
This commit is contained in:
parent
30d291f1ea
commit
fb576bab21
@ -14,7 +14,7 @@
|
||||
Name: python3x-setuptools
|
||||
# When updating, update the bundled libraries versions bellow!
|
||||
Version: 41.6.0
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Easily build and distribute Python packages
|
||||
# setuptools is MIT
|
||||
# packaging is BSD or ASL 2.0
|
||||
@ -77,6 +77,11 @@ Summary: Easily build and distribute Python 3 packages
|
||||
Provides: python%{python3_version}dist(setuptools) = %{version}
|
||||
%endif
|
||||
|
||||
# python38 installs the alternatives master symlink to which we attach a slave
|
||||
Requires: python38
|
||||
Requires(post): python38
|
||||
Requires(postun): python38
|
||||
|
||||
|
||||
%description -n python%{python3_pkgversion}-setuptools
|
||||
Setuptools is a collection of enhancements to the Python 3 distutils that allow
|
||||
@ -147,6 +152,10 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
|
||||
# Remove unversioned easy_install
|
||||
rm %{buildroot}%{_bindir}/easy_install
|
||||
|
||||
# All ghost files controlled by alternatives need to exist for the files
|
||||
# section check to succeed
|
||||
touch %{buildroot}%{_bindir}/easy_install-3
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
@ -160,6 +169,20 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \
|
||||
%endif # with tests
|
||||
|
||||
|
||||
%post -n python%{python3_pkgversion}-setuptools
|
||||
alternatives --add-slave python3 %{_bindir}/python3.8 \
|
||||
%{_bindir}/easy_install-3 \
|
||||
easy_install-3 \
|
||||
%{_bindir}/easy_install-3.8 \
|
||||
|
||||
%postun -n python%{python3_pkgversion}-setuptools
|
||||
# Do this only during uninstall process (not during update)
|
||||
if [ $1 -eq 0 ]; then
|
||||
alternatives --remove-slave python3 %{_bindir}/python3.8 \
|
||||
easy_install-3
|
||||
fi
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-setuptools
|
||||
%license LICENSE
|
||||
%doc docs/* CHANGES.rst README.rst
|
||||
@ -168,6 +191,7 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \
|
||||
%{python3_sitelib}/setuptools*/
|
||||
%{python3_sitelib}/__pycache__/*
|
||||
%{_bindir}/easy_install-3.*
|
||||
%ghost %{_bindir}/easy_install-3
|
||||
|
||||
%if %{without bootstrap}
|
||||
%files -n python%{python3_pkgversion}-setuptools-wheel
|
||||
@ -179,6 +203,10 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Mar 09 2020 Tomas Orsava <torsava@redhat.com> - 41.6.0-4
|
||||
- Implement the alternatives system for the executables
|
||||
- Resolves: rhbz#1807041
|
||||
|
||||
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 41.6.0-3
|
||||
- Exclude unsupported i686 arch
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user