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
This commit is contained in:
Dominique Leuenberger 2017-05-03 13:54:50 +00:00 committed by Git OBS Bridge
parent 746c20d004
commit fdbedcf99a
2 changed files with 22 additions and 16 deletions

View File

@ -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 Mon Nov 14 14:24:23 UTC 2016 - dmueller@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-Bottleneck # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,41 +16,42 @@
# #
%define modname Bottleneck %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{modname} Name: python-Bottleneck
Version: 1.2.0 Version: 1.2.0
Release: 0 Release: 0
Summary: A collection of fast NumPy array functions Summary: A collection of fast NumPy array functions
License: BSD-2-Clause and BSD-3-Clause License: BSD-2-Clause and BSD-3-Clause
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://berkeleyanalytics.com/bottleneck/ 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: fdupes
BuildRequires: python-numpy-devel >= 1.9.1 BuildRequires: python-rpm-macros
BuildRequires: python-setuptools BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module numpy-devel >= 1.9.1}
Requires: python-numpy >= 1.9.1 Requires: python-numpy >= 1.9.1
%if 0%{?suse_version} <= 1110 %python_subpackages
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%{py_requires}
%endif
%description %description
Bottleneck is a collection of fast NumPy array functions written in C Bottleneck is a collection of fast NumPy array functions written in C
%prep %prep
%setup -q -n %{modname}-%{version} %setup -q -n Bottleneck-%{version}
%build %build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %files %{python_files}
%defattr(-,root,root) %defattr(-,root,root)
%doc README.rst RELEASE.rst LICENSE %doc README.rst RELEASE.rst LICENSE
%{python_sitearch}/bottleneck/ %{python_sitearch}/bottleneck/
%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info %{python_sitearch}/Bottleneck-%{version}-py*.egg-info
%changelog %changelog