2008-09-17 21:43:14 +02:00
|
|
|
#
|
2011-09-23 09:04:42 +02:00
|
|
|
# spec file for package python-setuptools
|
2008-09-17 21:43:14 +02:00
|
|
|
#
|
2016-02-01 13:01:25 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-09-17 21:43:14 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2013-07-18 12:09:01 +02:00
|
|
|
|
2008-09-17 21:43:14 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2009-07-30 18:02:49 +02:00
|
|
|
|
2013-06-25 11:01:42 +02:00
|
|
|
Name: python-setuptools
|
Accepting request 423762 from home:tbechtold:branches:devel:languages:python
- update to 26.1.1:
* Re-release of 26.1.0 with pytest pinned to allow for automated
deployement and thus proper packaging environment variables,
fixing issues with missing executable launchers.
* #763: ``pkg_resources.get_default_cache`` now defers to the
`appdirs project <https://pypi.org/project/appdirs>`_ to
resolve the cache directory. Adds a vendored dependency on
appdirs to pkg_resources.
* #748: By default, sdists are now produced in gzipped tarfile
format by default on all platforms, adding forward compatibility
for the same behavior in Python 3.6 (See Python #27819).
* #459 via #736: On Windows with script launchers,
sys.argv[0] now reflects
the name of the entry point, consistent with the behavior in
distlib and pip wrappers.
* #752 via #753: When indicating ``py_limited_api`` to Extension,
it must be passed as a keyword argument.
* Add Extension(py_limited_api=True). When set to a truthy value,
that extension gets a filename apropriate for code using Py_LIMITED_API.
When used correctly this allows a single compiled extension to work on
all future versions of CPython 3.
The py_limited_api argument only controls the filename. To be
compatible with multiple versions of Python 3, the C extension
will also need to set -DPy_LIMITED_API=... and be modified to use
only the functions in the limited API.
* #739 Fix unquoted libpaths by fixing compatibility between
`numpy.distutils` and `distutils._msvccompiler`
for numpy < 1.11.2 (Fix issue #728, error also fixed in Numpy).
* #731: Bump certifi.
* Style updates. See #740, #741, #743, #744, #742, #747.
OBS-URL: https://build.opensuse.org/request/show/423762
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=99
2016-08-31 08:43:55 +02:00
|
|
|
Version: 26.1.1
|
2011-09-23 09:04:42 +02:00
|
|
|
Release: 0
|
|
|
|
Url: http://pypi.python.org/pypi/setuptools
|
2013-06-25 11:01:42 +02:00
|
|
|
Summary: Easily download, build, install, upgrade, and uninstall Python packages
|
|
|
|
License: Python-2.0 or ZPL-2.0
|
2011-09-23 09:04:42 +02:00
|
|
|
Group: Development/Languages/Python
|
2016-07-05 10:33:05 +02:00
|
|
|
Source: https://pypi.io/packages/source/s/setuptools/setuptools-%{version}.tar.gz
|
2008-09-17 21:43:14 +02:00
|
|
|
Source1: psfl.txt
|
|
|
|
Source2: zpl.txt
|
2014-07-23 23:24:25 +02:00
|
|
|
Patch1: setuptools-5.4.1-create-sitedir.patch
|
2015-04-07 01:29:51 +02:00
|
|
|
# NOTE(toabctl): Fix for SLE11SP3 test failures
|
|
|
|
Patch3: fix-sle11-test-failure.patch
|
2016-08-31 17:37:24 +02:00
|
|
|
# PATCH-FIX-UPSTREAM better handling of certificate store in SUSE
|
|
|
|
Patch4: setuptools-certpath.patch
|
2008-09-17 21:43:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-23 09:04:42 +02:00
|
|
|
BuildRequires: python-devel
|
2014-02-10 15:53:17 +01:00
|
|
|
BuildRequires: python-xml
|
2013-08-18 15:12:27 +02:00
|
|
|
# needed for SLE
|
|
|
|
Requires: python
|
2016-02-01 13:01:25 +01:00
|
|
|
Requires: python-six
|
2016-03-09 17:22:46 +01:00
|
|
|
Requires: python-xml
|
2016-08-31 17:37:24 +02:00
|
|
|
Recommends: ca-certificates-mozilla
|
2013-07-18 12:09:01 +02:00
|
|
|
Requires(post): update-alternatives
|
2014-02-10 16:34:07 +01:00
|
|
|
Requires(postun): update-alternatives
|
2013-06-25 11:01:42 +02:00
|
|
|
# NOTE(saschpe): Distribute was merged into 0.7.x, so even though distribute
|
|
|
|
# obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again
|
2013-10-24 15:24:45 +02:00
|
|
|
Provides: python-distribute = %{version}
|
|
|
|
Obsoletes: python-distribute < %{version}
|
2013-06-25 11:01:42 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2011-09-23 09:04:42 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%description
|
2008-09-17 21:43:14 +02:00
|
|
|
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.
|
|
|
|
|
2006-10-27 14:17:57 +02:00
|
|
|
%prep
|
2013-06-25 11:01:42 +02:00
|
|
|
%setup -q -n setuptools-%{version}
|
2014-07-23 23:24:25 +02:00
|
|
|
%patch1 -p1
|
2015-04-11 18:57:39 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1220
|
2015-04-07 01:29:51 +02:00
|
|
|
%patch3 -p1
|
2016-08-31 17:37:24 +02:00
|
|
|
%patch4 -p1
|
2015-04-07 01:29:51 +02:00
|
|
|
%endif
|
2013-06-25 11:01:42 +02:00
|
|
|
find . -type f -name "*.orig" -delete
|
2006-10-27 14:17:57 +02:00
|
|
|
|
2016-08-31 17:37:24 +02:00
|
|
|
# fix rpmlint spurious-executable-perm
|
|
|
|
chmod -x README.rst
|
|
|
|
|
|
|
|
# strip shebangs to fix rpmlint warnings
|
|
|
|
# "explain the sed":
|
|
|
|
# 1 = first line only
|
|
|
|
# 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
|
|
|
|
|
2006-10-27 14:17:57 +02:00
|
|
|
%build
|
2013-06-25 11:01:42 +02:00
|
|
|
python setup.py build
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%install
|
2013-06-25 11:01:42 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-07-18 12:09:01 +02:00
|
|
|
rm %{buildroot}%{_bindir}/easy_install
|
2014-02-10 15:53:17 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/easy_install
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/easy_install %{buildroot}/%{_bindir}/easy_install
|
2007-06-13 10:31:39 +02:00
|
|
|
|
2015-04-27 09:26:50 +02:00
|
|
|
# Can not run testsuite as this introduces build cycle
|
2016-02-01 13:01:25 +01:00
|
|
|
#%check
|
2015-04-27 09:26:50 +02:00
|
|
|
#export LANG="en_US.UTF-8"
|
|
|
|
#python setup.py ptr --addopts='-rxs'
|
2015-04-07 01:29:51 +02:00
|
|
|
|
2013-07-18 12:09:01 +02:00
|
|
|
%post
|
|
|
|
update-alternatives \
|
|
|
|
--install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py_ver} 20
|
|
|
|
|
2014-02-10 16:34:07 +01:00
|
|
|
%postun
|
2013-07-18 12:09:01 +02:00
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
update-alternatives --remove easy_install %{_bindir}/easy_install-%{py_ver}
|
|
|
|
fi
|
|
|
|
|
2013-06-25 11:01:42 +02:00
|
|
|
%files
|
2008-09-17 21:43:14 +02:00
|
|
|
%defattr(-,root,root,-)
|
2016-07-04 10:17:56 +02:00
|
|
|
%doc CHANGES.rst README.rst
|
2014-02-10 15:53:17 +01:00
|
|
|
%{_bindir}/easy_install
|
2013-06-25 11:01:42 +02:00
|
|
|
%{_bindir}/easy_install-%{py_ver}
|
2014-02-10 15:53:17 +01:00
|
|
|
%ghost %{_sysconfdir}/alternatives/easy_install
|
2013-06-25 11:01:42 +02:00
|
|
|
%{python_sitelib}/setuptools
|
|
|
|
%{python_sitelib}/setuptools-%{version}-py%{py_ver}.egg-info
|
2014-02-10 15:53:17 +01:00
|
|
|
%{python_sitelib}/easy_install.py*
|
2016-02-01 13:01:25 +01:00
|
|
|
%dir %{python_sitelib}/pkg_resources
|
|
|
|
%{python_sitelib}/pkg_resources/*
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%changelog
|