From fdbedcf99acb2e01e146abb7d10b03f296d0a21d8d81ccbef9d785e5086f2aaa Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 3 May 2017 13:54:50 +0000 Subject: [PATCH] Accepting request 489415 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/489415 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Bottleneck?expand=0&rev=5 --- python-Bottleneck.changes | 5 +++++ python-Bottleneck.spec | 33 +++++++++++++++++---------------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/python-Bottleneck.changes b/python-Bottleneck.changes index 1d95329..3f4e87f 100644 --- a/python-Bottleneck.changes +++ b/python-Bottleneck.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 19 18:37:17 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + ------------------------------------------------------------------- Mon Nov 14 14:24:23 UTC 2016 - dmueller@suse.com diff --git a/python-Bottleneck.spec b/python-Bottleneck.spec index 22e3d64..27baa7f 100644 --- a/python-Bottleneck.spec +++ b/python-Bottleneck.spec @@ -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