From e181ee4890b3f793931c7d8799a326d816dfb001d2b0f84d220cdee0089979fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 11 Dec 2017 08:23:47 +0000 Subject: [PATCH] Accepting request 555757 from home:sebix:branches:devel:languages:python - singlespec'ing this package OBS-URL: https://build.opensuse.org/request/show/555757 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ez_setup?expand=0&rev=3 --- python-ez_setup.changes | 5 +++++ python-ez_setup.spec | 28 +++++++++++----------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/python-ez_setup.changes b/python-ez_setup.changes index 0337602..5ee9f4a 100644 --- a/python-ez_setup.changes +++ b/python-ez_setup.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 7 13:35:52 UTC 2017 - sebix+novell.com@sebix.at + +- singlespec'ing this package + ------------------------------------------------------------------- Thu Oct 24 11:05:33 UTC 2013 - speilicke@suse.com diff --git a/python-ez_setup.spec b/python-ez_setup.spec index eecd7e1..8d13334 100644 --- a/python-ez_setup.spec +++ b/python-ez_setup.spec @@ -1,7 +1,7 @@ # # spec file for package python-ez_setup # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,25 +16,20 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ez_setup Version: 0.9 Release: 0 -Url: http://github.com/ActiveState/ez_setup Summary: Contains ez_setup.py and distribute_setup.py License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/e/ez_setup/ez_setup-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -Requires: python-setuptools -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +Url: http://github.com/ActiveState/ez_setup +Source: https://files.pythonhosted.org/packages/source/e/ez_setup/ez_setup-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildArch: noarch -%endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%python_subpackages %description setup.py of several Python projects blindly import the setuptools bootstrap @@ -47,13 +42,12 @@ easy_install ez_setup troublesome_package as a workaround. %setup -q -n ez_setup-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files -%defattr(-,root,root,-) +%files %{python_files} %doc NEWS.txt README.rst %{python_sitelib}/*