diff --git a/python-distutils-extra.changes b/python-distutils-extra.changes index fd855c9..105f642 100644 --- a/python-distutils-extra.changes +++ b/python-distutils-extra.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:36:16 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Sun Sep 8 20:45:19 UTC 2013 - os-dev@jacraig.com @@ -156,3 +161,4 @@ Fri Aug 14 12:15:09 UTC 2009 - jfunk@funktronics.ca - Cleanup for Factory submission + diff --git a/python-distutils-extra.spec b/python-distutils-extra.spec index dfe9b5a..95f033a 100644 --- a/python-distutils-extra.spec +++ b/python-distutils-extra.spec @@ -1,7 +1,7 @@ # # spec file for package python-distutils-extra # -# 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-distutils-extra Version: 2.38 Release: 0 @@ -24,14 +25,11 @@ License: GPL-2.0 Group: Development/Libraries/Python Url: https://launchpad.net/python-distutils-extra Source: http://launchpad.net/python-distutils-extra/trunk/%{version}/+download/python-distutils-extra-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildArch: noarch -%endif +%python_subpackages %description This package adds support for common build additions to distutils. This @@ -42,15 +40,15 @@ includes the follwing: * program icons %prep -%setup -q -n "%{name}-%{version}" +%setup -q %build -python setup.py build +%python_build %install -python setup.py install --prefix="%{_prefix}" --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root) %doc LICENSE doc/* %{python_sitelib}/*