Accepting request 458704 from devel:languages:python:singlespec
- update for multipython build OBS-URL: https://build.opensuse.org/request/show/458704 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=107
This commit is contained in:
parent
e5449f8440
commit
8aa0a97d1a
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 16 15:58:12 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- update for multipython build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 12 12:57:12 UTC 2016 - hpj@urpla.net
|
Mon Dec 12 12:57:12 UTC 2016 - hpj@urpla.net
|
||||||
|
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%1 python3-%1}
|
||||||
Name: python-setuptools
|
Name: python-setuptools
|
||||||
Version: 28.3.0
|
Version: 28.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://pypi.python.org/pypi/setuptools
|
|
||||||
Summary: Easily download, build, install, upgrade, and uninstall Python packages
|
Summary: Easily download, build, install, upgrade, and uninstall Python packages
|
||||||
License: Python-2.0 or ZPL-2.0
|
License: Python-2.0 or ZPL-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
@ -31,9 +31,9 @@ Patch1: setuptools-5.4.1-create-sitedir.patch
|
|||||||
Patch3: fix-sle11-test-failure.patch
|
Patch3: fix-sle11-test-failure.patch
|
||||||
# PATCH-FIX-UPSTREAM better handling of certificate store in SUSE
|
# PATCH-FIX-UPSTREAM better handling of certificate store in SUSE
|
||||||
Patch4: setuptools-certpath.patch
|
Patch4: setuptools-certpath.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module xml}
|
||||||
BuildRequires: python-xml
|
BuildRequires: python-rpm-macros
|
||||||
# needed for SLE
|
# needed for SLE
|
||||||
Requires: python
|
Requires: python
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
@ -45,17 +45,18 @@ Requires(postun): update-alternatives
|
|||||||
# obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again
|
# obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again
|
||||||
Provides: python-distribute = %{version}
|
Provides: python-distribute = %{version}
|
||||||
Obsoletes: python-distribute < %{version}
|
Obsoletes: python-distribute < %{version}
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} > 1110
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
setuptools is a collection of enhancements to the Python distutils that
|
setuptools is a collection of enhancements to the Python distutils that
|
||||||
allow you to more easily build and distribute Python packages,
|
allow you to more easily build and distribute Python packages,
|
||||||
especially ones that have dependencies on other packages.
|
especially ones that have dependencies on other packages.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n setuptools-%{version}
|
%setup -q -n setuptools-%{version}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
@ -77,14 +78,11 @@ chmod -x README.rst
|
|||||||
sed -r -i '1s@^#!/.*$@@' pkg_resources/_vendor/appdirs.py setuptools/command/easy_install.py
|
sed -r -i '1s@^#!/.*$@@' pkg_resources/_vendor/appdirs.py setuptools/command/easy_install.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
rm %{buildroot}%{_bindir}/easy_install
|
%prepare_alternative easy_install
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
||||||
touch %{buildroot}%{_sysconfdir}/alternatives/easy_install
|
|
||||||
ln -sf %{_sysconfdir}/alternatives/easy_install %{buildroot}/%{_bindir}/easy_install
|
|
||||||
|
|
||||||
# Can not run testsuite as this introduces build cycle
|
# Can not run testsuite as this introduces build cycle
|
||||||
#%check
|
#%check
|
||||||
@ -92,23 +90,19 @@ ln -sf %{_sysconfdir}/alternatives/easy_install %{buildroot}/%{_bindir}/easy_ins
|
|||||||
#python setup.py ptr --addopts='-rxs'
|
#python setup.py ptr --addopts='-rxs'
|
||||||
|
|
||||||
%post
|
%post
|
||||||
update-alternatives \
|
%python_install_alternative easy_install
|
||||||
--install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py_ver} 20
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
%python_uninstall_alternative easy_install
|
||||||
update-alternatives --remove easy_install %{_bindir}/easy_install-%{py_ver}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files %python_files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%{_bindir}/easy_install
|
%python_alternative %{_bindir}/easy_install
|
||||||
%{_bindir}/easy_install-%{py_ver}
|
|
||||||
%ghost %{_sysconfdir}/alternatives/easy_install
|
|
||||||
%{python_sitelib}/setuptools
|
%{python_sitelib}/setuptools
|
||||||
%{python_sitelib}/setuptools-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/setuptools-%{version}-py%{python_version}.egg-info
|
||||||
%{python_sitelib}/easy_install.py*
|
%{python_sitelib}/easy_install.py*
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/easy_install.*
|
||||||
%dir %{python_sitelib}/pkg_resources
|
%dir %{python_sitelib}/pkg_resources
|
||||||
%{python_sitelib}/pkg_resources/*
|
%{python_sitelib}/pkg_resources/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user