Hello community,

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

Package is "python-Bottleneck"

Wed May  3 15:54:50 2017 rev:5 rq:489415 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Bottleneck/python-Bottleneck.changes      
2016-11-24 21:22:57.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-Bottleneck.new/python-Bottleneck.changes 
2017-05-03 15:54:51.220016869 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 18:37:17 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Bottleneck.spec ++++++
--- /var/tmp/diff_new_pack.ufHbls/_old  2017-05-03 15:54:52.039901122 +0200
+++ /var/tmp/diff_new_pack.ufHbls/_new  2017-05-03 15:54:52.043900558 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Bottleneck
 #
-# 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,41 +16,42 @@
 #
 
 
-%define modname Bottleneck
-Name:           python-%{modname}
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+Name:           python-Bottleneck
 Version:        1.2.0
 Release:        0
 Summary:        A collection of fast NumPy array functions
 License:        BSD-2-Clause and BSD-3-Clause
 Group:          Development/Libraries/Python
 Url:            http://berkeleyanalytics.com/bottleneck/
-Source0:        
https://pypi.io/packages/source/B/Bottleneck/%{modname}-%{version}.tar.gz
+Source0:        
https://files.pythonhosted.org/packages/source/B/Bottleneck/Bottleneck-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-numpy-devel >= 1.9.1
-BuildRequires:  python-setuptools
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module numpy-devel >= 1.9.1}
 Requires:       python-numpy >= 1.9.1
-%if 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
-%{py_requires}
-%endif
+%python_subpackages
 
 %description
 Bottleneck is a collection of fast NumPy array functions written in C
 
 %prep
-%setup -q -n %{modname}-%{version}
+%setup -q -n Bottleneck-%{version}
 
 %build
-CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc README.rst RELEASE.rst LICENSE
 %{python_sitearch}/bottleneck/
-%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info
+%{python_sitearch}/Bottleneck-%{version}-py*.egg-info
 
 %changelog


Reply via email to