Accepting request 243856 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/243856 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-blosc?expand=0&rev=2
This commit is contained in:
parent
eee0bad0f5
commit
dffc7d906c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 6 15:16:57 UTC 2014 - schwab@suse.de
|
||||||
|
|
||||||
|
- setup.patch: fix use of unknown compiler option
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 17 09:32:38 UTC 2014 - toddrme2178@gmail.com
|
Thu Jul 17 09:32:38 UTC 2014 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -13,19 +13,22 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%define modname blosc
|
%define modname blosc
|
||||||
Name: python-blosc
|
Name: python-blosc
|
||||||
Version: 1.2.4
|
Version: 1.2.4
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MIT
|
|
||||||
Summary: Blosc data compressor for Python
|
Summary: Blosc data compressor for Python
|
||||||
Url: http://www.blosc.org/
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: http://www.blosc.org/
|
||||||
Source: http://pypi.python.org/packages/source/b/blosc/blosc-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/b/blosc/blosc-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
Patch: setup.patch
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: blosc-devel
|
BuildRequires: blosc-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: python-devel
|
||||||
Requires: blosc-devel
|
Requires: blosc-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
@ -38,6 +41,7 @@ Python.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n blosc-%{version}
|
%setup -q -n blosc-%{version}
|
||||||
|
%patch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" python setup.py build_ext --inplace --blosc=%{_prefix}
|
CFLAGS="%{optflags}" python setup.py build_ext --inplace --blosc=%{_prefix}
|
||||||
@ -51,5 +55,4 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|||||||
%{python_sitearch}/blosc-%{version}-py*.egg-info
|
%{python_sitearch}/blosc-%{version}-py*.egg-info
|
||||||
%{python_sitearch}/blosc/
|
%{python_sitearch}/blosc/
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
21
setup.patch
Normal file
21
setup.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Index: blosc-1.2.4/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- blosc-1.2.4.orig/setup.py
|
||||||
|
+++ blosc-1.2.4/setup.py
|
||||||
|
@@ -8,6 +8,7 @@
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
import sys, os
|
||||||
|
+import re, platform
|
||||||
|
|
||||||
|
from distutils.core import Extension
|
||||||
|
from distutils.core import setup
|
||||||
|
@@ -57,7 +58,7 @@ for arg in args:
|
||||||
|
sys.argv.remove(arg)
|
||||||
|
|
||||||
|
# Add -msse2 flag for optimizing shuffle in Blosc
|
||||||
|
-if os.name == 'posix':
|
||||||
|
+if os.name == 'posix' and re.match("i.86", platform.machine()) != None:
|
||||||
|
CFLAGS.append("-msse2")
|
||||||
|
|
||||||
|
# Blosc sources and headers
|
Loading…
x
Reference in New Issue
Block a user