From 6161b87f81a611550ff984510d50dad196166ef8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:37:44 +0100 Subject: [PATCH] update to 53.0.0 [release 53.0.0-1mamba;Mon Feb 01 2021] --- python-setuptools.spec | 94 +++++++++++++----------------------------- 1 file changed, 28 insertions(+), 66 deletions(-) diff --git a/python-setuptools.spec b/python-setuptools.spec index 75c1c58..2a1065a 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -1,5 +1,5 @@ Name: python-setuptools -Version: 51.0.0 +Version: 53.0.0 Release: 1mamba Summary: Download, build, install, upgrade and uninstall Python packages Group: System/Libraries/Python @@ -7,61 +7,30 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://pypi.python.org/pypi/setuptools -Source: http://pypi.debian.net/setuptools/setuptools-%{version}.zip +Source: http://pypi.debian.net/setuptools/setuptools-%{version}.tar.gz Source1: psfl.txt Source2: zpl.txt License: PSF, ZPL -Requires: python >= %python_version ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython-devel >= %python_version +BuildRequires: libpython3-devel +BuildRequires: python3 ## AUTOBUILDREQ-END -BuildRequires: libpython3-devel >= 3.7.4 -Provides: python-distribute -Obsoletes: python-distribute -BuildRoot: %{_tmppath}/%{name}-%{version}-root +#Provides: python-distribute +#Obsoletes: python-distribute BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root %description setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages. This package contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources.py. -%package devel -Summary: Download, build, install, upgrade and uninstall Python packages -Group: Development/Languages -Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} - -%description devel -setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages. -This package contains the components necessary to build and install software requiring setuptools. - -%if "%?with_pyver" -%define pyver %{with_pyver} -%define __python %(rpm --eval %{__python%{with_pyver}}) -%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) -%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) -%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) -%define python_version %(rpm --eval %{python%{with_pyver}_version}) -%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) -%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) -%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) - -%package py%{pyver} -Group: System/Libraries/Python -Summary: %{summary} -%py_requires - -%description py%{pyver} -setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages. -This package contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources.py. - -%package py%{pyver}-devel -Group: System/Libraries/Python -Summary: %{summary} -Requires: %{name}-py%{pyver} = %{?epoch:%epoch:}%{version}-%{release} - -%description py%{pyver}-devel -setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages. -This package contains the components necessary to build and install software requiring setuptools. +%if 0%{?with_pyver} +%define py_requires_append \ +Provides: python-setuptools-devel \ +Obsoletes: python-setuptools-devel <= 51.0.0-1mamba \ +Provides: python-setuptools%{?pyappend:-%pyappend}-devel \ +Obsoletes: python-setuptools%{?pyappend:-%pyappend}-devel <= 51.0.0-1mamba +%pyver_package %endif %prep @@ -81,7 +50,7 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -sed -i '\,\.egg-info/,d' %{name}.filelist +#sed -i '\,\.egg-info/,d' %{name}.filelist install -p -m 0644 %{S:1} %{S:2} . @@ -91,18 +60,22 @@ sed -i '\,\.exe$,d;\,/tests/,d' %{name}.filelist chmod +x %{buildroot}%{python_sitearch}/setuptools/command/easy_install.py +%if "%{?pyappend}" != "py3" +rm -f %{buildroot}%{_bindir}/easy_install +%endif + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%if "%?with_pyver" -%files py%{pyver} -%else -%files -%endif +%files %{?pyappend} %defattr(-,root,root,-) +#%{_bindir}/easy_install* +#%{python_sitearch}/easy_install* +#%if 0%{?with_pyver} +#%{python_sitearch}/__pycache__/easy_install.cpython-*.pyc +#%endif %dir %{python_sitearch}/setuptools %{python_sitearch}/setuptools/* -#%{python_sitearch}/_markerlib/* %dir %{python_sitearch}/pkg_resources %{python_sitearch}/pkg_resources/* %dir %{python_sitearch}/_distutils_hack @@ -111,21 +84,10 @@ chmod +x %{buildroot}%{python_sitearch}/setuptools/command/easy_install.py %dir %{python_sitearch}/setuptools-%{version}-py%{python_version}.egg-info %{python_sitearch}/setuptools-%{version}-py%{python_version}.egg-info/* -%if "%?with_pyver" -%files py%{pyver}-devel -%else -%files devel -%endif -%defattr(-,root,root,-) -%{_bindir}/easy_install* -%{python_sitearch}/easy_install* -%if "%?with_pyver" -%{python_sitearch}/__pycache__/easy_install.cpython-*.pyc -%endif -#%doc README.txt -#%doc psfl.txt zpl.txt - %changelog +* Mon Feb 01 2021 Silvan Calarco 53.0.0-1mamba +- update to 53.0.0 + * Wed Dec 16 2020 Automatic Build System 51.0.0-1mamba - automatic version update by autodist