diff --git a/python-coverage.changes b/python-coverage.changes index 556888f..247b9f2 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 10 16:54:01 UTC 2012 - saschpe@gmx.de + +- Simplify macro usage + ------------------------------------------------------------------- Thu Nov 10 11:11:58 UTC 2011 - saschpe@suse.de diff --git a/python-coverage.spec b/python-coverage.spec index 314abc8..45ef84f 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -1,7 +1,7 @@ # # spec file for package python-coverage # -# Copyright (c) 2011 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 @@ -16,7 +16,6 @@ # - Name: python-coverage Version: 3.5.1 Release: 0 @@ -31,13 +30,9 @@ BuildRequires: python-distribute BuildRequires: python-xml Requires: python-distribute Requires: python-xml -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1010 -BuildRequires: fdupes +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif -%endif -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description Coverage.py measures code coverage, typically during test execution. It uses @@ -52,9 +47,6 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%if 0%{?suse_version} > 1010 -%fdupes %{buildroot}%{_prefix} -%endif %files %defattr(-,root,root,-)