Hello community,

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

Package is "python-Levenshtein"

Tue Jul  4 11:57:27 2017 rev:9 rq:507380 version:0.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Levenshtein/python-Levenshtein.changes    
2015-01-12 09:50:12.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-Levenshtein.new/python-Levenshtein.changes   
    2017-07-04 11:57:28.605116712 +0200
@@ -1,0 +2,6 @@
+Fri Jun 30 13:37:49 UTC 2017 - [email protected]
+
+- convert to singlespec
+- drop *.c and *.h from installed package
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Levenshtein.spec ++++++
--- /var/tmp/diff_new_pack.zPA3c6/_old  2017-07-04 11:57:29.349012026 +0200
+++ /var/tmp/diff_new_pack.zPA3c6/_new  2017-07-04 11:57:29.353011463 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Levenshtein
 #
-# Copyright (c) 2015 SUSE LINUX Products 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-Levenshtein
 Version:        0.12.0
 Release:        0
@@ -23,13 +24,12 @@
 License:        GPL-2.0+
 Group:          Development/Languages/Python
 Url:            https://github.com/ztane/python-Levenshtein/
-Source0:        
https://pypi.python.org/packages/source/p/python-Levenshtein/python-Levenshtein-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Source0:        
https://files.pythonhosted.org/packages/source/p/python-Levenshtein/python-Levenshtein-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 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
 The Levenshtein Python C extension module contains functions for fast
@@ -46,12 +46,13 @@
 %setup -q
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
+%python_install
+rm -v %{buildroot}%{_libdir}/python*/*/Levenshtein/_levenshtein.{c,h}
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc HISTORY.txt README.rst
 %{python_sitearch}/*


Reply via email to