Hello community,

here is the log from the commit of package python-cov-core for openSUSE:Factory 
checked in at 2017-04-03 11:05:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cov-core (Old)
 and      /work/SRC/openSUSE:Factory/.python-cov-core.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cov-core"

Mon Apr  3 11:05:27 2017 rev:6 rq:484229 version:1.15.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cov-core/python-cov-core.changes  
2015-05-05 00:55:52.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-cov-core.new/python-cov-core.changes     
2017-04-03 11:06:06.815157943 +0200
@@ -1,0 +2,6 @@
+Fri Mar 31 14:57:23 UTC 2017 - aloi...@gmx.com
+
+- Converted to single-spec
+- Fixed source URL
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cov-core.spec ++++++
--- /var/tmp/diff_new_pack.M2ydZ4/_old  2017-04-03 11:06:07.399075445 +0200
+++ /var/tmp/diff_new_pack.M2ydZ4/_new  2017-04-03 11:06:07.399075445 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cov-core
 #
-# Copyright (c) 2015 SUSE LINUX 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-cov-core
 Version:        1.15.0
 Release:        0
@@ -23,17 +24,16 @@
 License:        MIT
 Group:          Development/Languages/Python
 Url:            https://github.com/schlamar/cov-core
-Source:         
https://pypi.python.org/packages/source/c/cov-core/cov-core-%{version}.tar.gz
-BuildRequires:  python-coverage
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Source:         
https://pypi.io/packages/source/c/cov-core/cov-core-%{version}.tar.gz
+BuildRequires:  %{python_module coverage}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:       python-coverage
 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
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 This is a lib package for use by pytest-cov, nose-cov and nose2-cov.  Unless 
your developing a
@@ -43,14 +43,18 @@
 %setup -q -n cov-core-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc LICENSE.txt README.rst
-%{python_sitelib}/*
+%pycache_only %{python_sitelib}/__pycache__
+%{python_sitelib}/cov_core.py*
+%{python_sitelib}/cov_core_init.py*
+%{python_sitelib}/cov_core-%{version}-py%{python_version}.egg-info
 
 %changelog


Reply via email to