Hello community,

here is the log from the commit of package python-msgpack-python for 
openSUSE:Factory checked in at 2017-05-03 15:54:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-msgpack-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-msgpack-python.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-msgpack-python"

Wed May  3 15:54:46 2017 rev:19 rq:489397 version:0.4.8

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-msgpack-python/python-msgpack-python.changes  
    2016-12-08 00:30:05.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-msgpack-python.new/python-msgpack-python.changes
 2017-05-03 15:54:49.804216745 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 17:35:24 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-msgpack-python.spec ++++++
--- /var/tmp/diff_new_pack.e7NkUc/_old  2017-05-03 15:54:50.864067120 +0200
+++ /var/tmp/diff_new_pack.e7NkUc/_new  2017-05-03 15:54:50.868066556 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-msgpack-python
 #
-# 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
@@ -18,6 +18,7 @@
 
 %bcond_without test
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-msgpack-python
 Version:        0.4.8
 Release:        0
@@ -25,23 +26,19 @@
 License:        Apache-2.0
 Group:          Development/Languages/Python
 Url:            http://msgpack.org/
-Source:         
https://pypi.io/packages/source/m/msgpack-python/msgpack-python-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/m/msgpack-python/msgpack-python-%{version}.tar.gz
 BuildRequires:  gcc-c++
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-BuildRequires:  python-argparse
-%endif
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module Cython}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 %if %{with test}
 # Test requirements:
-BuildRequires:  python-nose
-BuildRequires:  python-pytest
-BuildRequires:  python-six
+BuildRequires:  %{python_module pytest}
 %endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%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
+%python_subpackages
 
 %description
 MessagePack (de)serializer for Python.
@@ -55,17 +52,21 @@
 %setup -q -n msgpack-python-%{version}
 
 %build
-CFLAGS="%{optflags}" python setup.py build
+export CFLAGS="%{optflags}"
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %if %{with test}
 %check
-nosetests
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
+py.test-%{$python_bin_suffix}
+}
 %endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc COPYING README.rst
 %{python_sitearch}/*


Reply via email to