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:
Ludwig Nussel 2014-08-08 08:10:28 +00:00 committed by Git OBS Bridge
parent eee0bad0f5
commit dffc7d906c
3 changed files with 34 additions and 5 deletions

View File

@ -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

View File

@ -13,19 +13,22 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define modname blosc
Name: python-blosc
Version: 1.2.4
Release: 0
License: MIT
Summary: Blosc data compressor for Python
Url: http://www.blosc.org/
License: MIT
Group: Development/Languages/Python
Url: http://www.blosc.org/
Source: http://pypi.python.org/packages/source/b/blosc/blosc-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: gcc-c++
Patch: setup.patch
BuildRequires: blosc-devel
BuildRequires: gcc-c++
BuildRequires: python-devel
Requires: blosc-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@ -38,6 +41,7 @@ Python.
%prep
%setup -q -n blosc-%{version}
%patch -p1
%build
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/
%changelog

21
setup.patch Normal file
View 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