forked from pool/python-coverage
Fixed link conflict
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
0f0d746e7c
commit
6977a54265
@@ -16,19 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%define mod_name coverage
|
||||
|
||||
Name: python-%{mod_name}
|
||||
Version: 3.4
|
||||
Release: 1
|
||||
Url: http://nedbatchelder.com/code/coverage
|
||||
Name: python-coverage
|
||||
Version: 3.5.1b1
|
||||
Release: 0
|
||||
Url: http://nedbatchelder.com/code/coverage/3.5.1b1
|
||||
Summary: Code coverage measurement for Python
|
||||
License: BSD
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.gz
|
||||
Source: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-distribute
|
||||
BuildRequires: python-xml
|
||||
Requires: python-xml
|
||||
%if 0%{?suse_version}
|
||||
@@ -37,7 +36,6 @@ Requires: python-xml
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%description
|
||||
@@ -46,25 +44,21 @@ the code analysis tools and tracing hooks provided in the Python standard
|
||||
library to determine which lines are executable, and which have been executed.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
%setup -q -n coverage-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%if 0%{?suse_version} > 1010
|
||||
%fdupes %{buildroot}
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS.txt CHANGES.txt README.txt
|
||||
%{_bindir}/%{mod_name}
|
||||
%{_bindir}/coverage
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user