Accepting request 108729 from devel:languages:python
- Simplify macro usage OBS-URL: https://build.opensuse.org/request/show/108729 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-coverage?expand=0&rev=7
This commit is contained in:
commit
b739209ccf
@ -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
|
||||
|
||||
|
@ -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,-)
|
||||
|
Loading…
x
Reference in New Issue
Block a user