diff --git a/python-distutils-extra.changes b/python-distutils-extra.changes index e8835d1..876e507 100644 --- a/python-distutils-extra.changes +++ b/python-distutils-extra.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Jan 12 11:31:12 UTC 2012 - saschpe@suse.de + +- Specfile cleanup: + * SPDX-style license (GPL-2.0) + * Remove %clean section (sane default) + * Simpler macro usage + * No authors in description + ------------------------------------------------------------------- Sat Dec 11 16:51:38 UTC 2010 - rwobben@hotmail.com diff --git a/python-distutils-extra.spec b/python-distutils-extra.spec index bc5ae77..2428050 100644 --- a/python-distutils-extra.spec +++ b/python-distutils-extra.spec @@ -1,7 +1,7 @@ # -# spec file for package python-distutils-extra (Version 2.22) +# spec file for package python-distutils-extra # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,21 +15,21 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: python-distutils-extra Version: 2.23 -Release: 1 +Release: 0 Summary: Distutils/Setuptools Adapter -Source: http://launchpad.net/python-distutils-extra/trunk/%{version}/+download/python-distutils-extra-%{version}.tar.gz -Url: https://launchpad.net/python-distutils-extra +License: GPL-2.0 Group: Development/Libraries/Python -License: GNU General Public License version 2 (GPL v2) +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-distribute BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel python-setuptools -%py_requires -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +%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 BuildArch: noarch %endif @@ -41,32 +41,18 @@ includes the follwing: * documentation * program icons -Authors: --------- - Sebastian Heinlein - %prep %setup -q -n "%{name}-%{version}" -#%__rm -rf debian/debian -#%__mv debian/* . %build -%__python ./setup.py build +python setup.py build %install -%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" \ - --record-rpm=files.lst +python setup.py install --prefix="%{_prefix}" --root=%{buildroot} -%clean -%__rm -rf "%{buildroot}" - -%files -f files.lst +%files %defattr(-,root,root) %doc LICENSE doc/* - -# Local Variables: -# mode: rpm-spec -# tab-width: 3 -# End: +%{python_sitelib}/* %changelog