2014-07-27 06:25:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-blosc
|
|
|
|
#
|
2018-01-22 15:19:33 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-07-27 06:25:52 +00:00
|
|
|
#
|
|
|
|
# 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/
|
2014-08-08 08:10:28 +00:00
|
|
|
#
|
|
|
|
|
2014-07-27 06:25:52 +00:00
|
|
|
|
2017-04-28 08:43:25 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-07-27 06:25:52 +00:00
|
|
|
Name: python-blosc
|
2019-07-23 14:44:27 +00:00
|
|
|
Version: 1.8.1
|
2014-07-27 06:25:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Blosc data compressor for Python
|
2014-08-08 08:10:28 +00:00
|
|
|
License: MIT
|
2014-07-27 06:25:52 +00:00
|
|
|
Group: Development/Languages/Python
|
2014-08-08 08:10:28 +00:00
|
|
|
Url: http://www.blosc.org/
|
2017-04-28 08:43:25 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/blosc/blosc-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
2018-05-29 08:43:23 +00:00
|
|
|
BuildRequires: %{python_module nose}
|
2017-04-28 08:43:25 +00:00
|
|
|
BuildRequires: %{python_module numpy-devel}
|
2018-07-18 20:57:28 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: blosc-devel >= 1.9.0
|
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-29 08:43:23 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
BuildRequires: %{python_module psutil}
|
|
|
|
# /SECTION
|
2014-07-27 06:25:52 +00:00
|
|
|
Requires: blosc-devel
|
2019-01-08 11:25:51 +00:00
|
|
|
Recommends: python-numpy
|
2017-04-28 08:43:25 +00:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%python_subpackages
|
2014-07-27 06:25:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Blosc is a high performance compressor optimized for binary data in
|
|
|
|
Python.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n blosc-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-04-28 08:43:25 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_exec setup.py build_ext --inplace --blosc=%{_prefix}
|
2018-05-29 08:43:23 +00:00
|
|
|
%python_exec setup.py build --blosc=%{_prefix}
|
2014-07-27 06:25:52 +00:00
|
|
|
|
|
|
|
%install
|
2018-01-22 15:19:33 +00:00
|
|
|
%python_exec setup.py install -O1 --skip-build --force --root=%{buildroot} --prefix=%{_prefix} --blosc=%{_prefix}
|
2017-04-28 08:43:25 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2014-07-27 06:25:52 +00:00
|
|
|
|
2018-05-29 08:43:23 +00:00
|
|
|
%check
|
|
|
|
mkdir empty
|
|
|
|
pushd empty
|
|
|
|
%{python_expand export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
|
|
$python -c "import blosc; blosc.print_versions()"
|
|
|
|
nosetests-%{$python_bin_suffix} blosc
|
|
|
|
}
|
|
|
|
popd
|
|
|
|
|
2017-04-28 08:43:25 +00:00
|
|
|
%files %{python_files}
|
2014-07-27 06:25:52 +00:00
|
|
|
%defattr(-,root,root,-)
|
2018-05-29 08:43:23 +00:00
|
|
|
%doc ANNOUNCE.rst README.rst RELEASE_NOTES.rst
|
|
|
|
%license LICENSES/*.txt
|
2014-07-27 06:25:52 +00:00
|
|
|
%{python_sitearch}/blosc-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/blosc/
|
|
|
|
|
|
|
|
%changelog
|