forked from pool/python-blosc
I intend to submit python-tables, one of the two primary tools for accessing the critical scientific data format hdf5 on python, to openSUSE:Factory. The other tool, python-h5py, is already in openSUSE:Factory. This is the last remaining dependency needed before python-tables can be submitted to openSUSE:Factory. The blosc package, which this depends on, is already in openSUSE:Factory. OBS-URL: https://build.opensuse.org/request/show/242180 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-blosc?expand=0&rev=1
56 lines
1.8 KiB
RPMSpec
56 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-blosc
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# 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/
|
|
Group: Development/Languages/Python
|
|
Source: http://pypi.python.org/packages/source/b/blosc/blosc-%{version}.tar.gz
|
|
BuildRequires: python-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: blosc-devel
|
|
Requires: blosc-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%endif
|
|
|
|
%description
|
|
Blosc is a high performance compressor optimized for binary data in
|
|
Python.
|
|
|
|
%prep
|
|
%setup -q -n blosc-%{version}
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" python setup.py build_ext --inplace --blosc=%{_prefix}
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc ANNOUNCE.rst README.rst LICENSES/*.txt RELEASE_NOTES.rst
|
|
%{python_sitearch}/blosc-%{version}-py*.egg-info
|
|
%{python_sitearch}/blosc/
|
|
|
|
|
|
%changelog
|