forked from pool/python-setuptools
- update to 34.2.0
* dependencies are no longer vendored and setuptools can't bootstrap without them * drop support for python 2.6 and 3.2 * declarative config option for setup.cfg * nspkg.pth files for development * switch to zip format for source dist * ensure extras are honored when building the working set * add support for reading dist-info metadata * support for PEP440 version specifiers - added build-time and run-time dependencies to appdirs and packaging, ensured these packages build without setuptools - drop upstreamed setuptools-certpath.patch - drop unneeded setuptools-5.4.1-create-sitedir.patch - add fdupes - change source file to zip, add unzip dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=108
This commit is contained in:
committed by
Git OBS Bridge
parent
8aa0a97d1a
commit
329b3604a1
@@ -17,25 +17,30 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%1 python3-%1}
|
||||
%define oldpython python
|
||||
Name: python-setuptools
|
||||
Version: 28.3.0
|
||||
Version: 34.2.0
|
||||
Release: 0
|
||||
Summary: Easily download, build, install, upgrade, and uninstall Python packages
|
||||
License: Python-2.0 or ZPL-2.0
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/s/setuptools/setuptools-%{version}.tar.gz
|
||||
Source: https://pypi.io/packages/source/s/setuptools/setuptools-%{version}.zip
|
||||
Source1: psfl.txt
|
||||
Source2: zpl.txt
|
||||
Patch1: setuptools-5.4.1-create-sitedir.patch
|
||||
# NOTE(toabctl): Fix for SLE11SP3 test failures
|
||||
Patch3: fix-sle11-test-failure.patch
|
||||
# PATCH-FIX-UPSTREAM better handling of certificate store in SUSE
|
||||
Patch4: setuptools-certpath.patch
|
||||
BuildRequires: %{python_module appdirs}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module packaging}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module xml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
# needed for SLE
|
||||
Requires: python
|
||||
Requires: python-appdirs
|
||||
Requires: python-packaging
|
||||
Requires: python-six
|
||||
Requires: python-xml
|
||||
Recommends: ca-certificates-mozilla
|
||||
@@ -43,8 +48,10 @@ Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
# NOTE(saschpe): Distribute was merged into 0.7.x, so even though distribute
|
||||
# obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again
|
||||
Provides: python-distribute = %{version}
|
||||
Obsoletes: python-distribute < %{version}
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-distribute = %{version}
|
||||
Obsoletes: %{oldpython}-distribute < %{version}
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
@@ -59,11 +66,9 @@ especially ones that have dependencies on other packages.
|
||||
|
||||
%prep
|
||||
%setup -q -n setuptools-%{version}
|
||||
%patch1 -p1
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1220
|
||||
%patch3 -p1
|
||||
%endif
|
||||
%patch4 -p1
|
||||
find . -type f -name "*.orig" -delete
|
||||
|
||||
# fix rpmlint spurious-executable-perm
|
||||
@@ -75,7 +80,7 @@ chmod -x README.rst
|
||||
# s@...@...@ = same as s/.../.../ except with @ instead of /
|
||||
# ^ = start; #!/ = shebang leading characters; .* = rest of line; $ = end
|
||||
# replace with nothing
|
||||
sed -r -i '1s@^#!/.*$@@' pkg_resources/_vendor/appdirs.py setuptools/command/easy_install.py
|
||||
sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -83,6 +88,7 @@ sed -r -i '1s@^#!/.*$@@' pkg_resources/_vendor/appdirs.py setuptools/command/eas
|
||||
%install
|
||||
%python_install
|
||||
%prepare_alternative easy_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
# Can not run testsuite as this introduces build cycle
|
||||
#%check
|
||||
|
Reference in New Issue
Block a user