forked from pool/python2-setuptools
Matej Cepl
a70f3204a8
presence for legacy reasons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python2-setuptools?expand=0&rev=3
74 lines
2.4 KiB
RPMSpec
74 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python2-setuptools
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python2-setuptools
|
|
Version: 44.0.0
|
|
Release: 0
|
|
Summary: Enhancements to distutils for building and distributing Python packages
|
|
License: Python-2.0 OR ZPL-2.0
|
|
URL: https://github.com/pypa/setuptools
|
|
Source: https://files.pythonhosted.org/packages/source/s/setuptools/setuptools-%{version}.zip
|
|
Patch0: sort-for-reproducibility.patch
|
|
Patch1: importlib.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: python2-base
|
|
BuildRequires: unzip
|
|
Requires: python2-base
|
|
BuildArch: noarch
|
|
# The dependency download feature may require SSL, which is in python3-base and python(2)
|
|
Requires: python
|
|
Recommends: ca-certificates-mozilla
|
|
Provides: python-distribute = %{version}
|
|
Obsoletes: python-distribute < %{version}
|
|
|
|
%description
|
|
setuptools is a collection of enhancements to the Python distutils that
|
|
allow you to build and distribute Python packages,
|
|
especially ones that have dependencies on other packages.
|
|
|
|
%prep
|
|
%setup -q -n setuptools-%{version}
|
|
%autopatch -p1
|
|
|
|
# find . -type f -name "*.orig" -delete
|
|
|
|
# # fix rpmlint spurious-executable-perm
|
|
# chmod -x README.rst
|
|
|
|
# # strip shebangs to fix rpmlint warnings
|
|
sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py \
|
|
pkg_resources/_vendor/appdirs.py
|
|
|
|
%build
|
|
python2 setup.py build '--executable=%{_bindir}/python2 -s'
|
|
|
|
%install
|
|
python2 setup.py install -O1 --skip-build --force --root %{buildroot} --prefix %{_prefix}
|
|
%fdupes %{buildroot}%{python2_sitelib}
|
|
|
|
%files
|
|
%doc CHANGES.rst README.rst
|
|
%{_bindir}/easy_install*
|
|
%{python2_sitelib}/setuptools
|
|
%{python2_sitelib}/setuptools-%{version}-py*.egg-info
|
|
%{python2_sitelib}/easy_install.py*
|
|
%dir %{python2_sitelib}/pkg_resources
|
|
%{python2_sitelib}/pkg_resources/*
|
|
|
|
%changelog
|