Hello community,

here is the log from the commit of package python-apipkg for openSUSE:Factory 
checked in at 2017-05-06 18:29:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-apipkg (Old)
 and      /work/SRC/openSUSE:Factory/.python-apipkg.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-apipkg"

Sat May  6 18:29:29 2017 rev:3 rq:491607 version:1.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-apipkg/python-apipkg.changes      
2016-03-26 18:12:20.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-apipkg.new/python-apipkg.changes 
2017-05-06 18:29:30.884384793 +0200
@@ -1,0 +2,11 @@
+Thu Apr 27 10:37:20 UTC 2017 - [email protected]
+
+- Fixed source URL
+
+-------------------------------------------------------------------
+Fri Apr 21 19:39:38 UTC 2017 - [email protected]
+
+- Converted to single-spec 
+- Enabled tests
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-apipkg.spec ++++++
--- /var/tmp/diff_new_pack.bVwAzl/_old  2017-05-06 18:29:31.580286598 +0200
+++ /var/tmp/diff_new_pack.bVwAzl/_new  2017-05-06 18:29:31.584286033 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-apipkg
 #
-# Copyright (c) 2016 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-apipkg
 Version:        1.4
 Release:        0
@@ -23,20 +24,19 @@
 License:        MIT
 Group:          Development/Languages/Python
 Url:            http://bitbucket.org/hpk42/apipkg
-Source:         
http://pypi.python.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Source:         
https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
 # Testsuite BuildRequires:
-#BuildRequires:  python-nose
-#BuildRequires:  python-py
-#BuildRequires:  python-pytest
+BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module py}
 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
 With apipkg you can control the exported namespace of a
@@ -53,18 +53,20 @@
 %setup -q -n apipkg-%{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}
 
-#TODO: Fix:
-#%%check
-#nosetests
+%check
+%python_expand py.test-%{$python_version}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc README.txt LICENSE
-%{python_sitelib}/*
+%doc README.txt LICENSE CHANGELOG
+%pycache_only %{python_sitelib}/__pycache__
+%{python_sitelib}/apipkg.py*
+%{python_sitelib}/apipkg-%{version}-py%{python_version}.egg-info
 
 %changelog


Reply via email to