diff --git a/python-blosc.changes b/python-blosc.changes index 8d46002..3fc4e53 100644 --- a/python-blosc.changes +++ b/python-blosc.changes @@ -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 diff --git a/python-blosc.spec b/python-blosc.spec index 27254a2..ce621e4 100644 --- a/python-blosc.spec +++ b/python-blosc.spec @@ -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 diff --git a/setup.patch b/setup.patch new file mode 100644 index 0000000..3fe775c --- /dev/null +++ b/setup.patch @@ -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