From eee0bad0f5776553dd5cbd837c9f14b4e82e95ff940694f5b4ee1bc03c66784e Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 27 Jul 2014 06:25:52 +0000 Subject: [PATCH] Accepting request 242180 from devel:languages:python 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 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + blosc-1.2.4.tar.gz | 3 ++ python-blosc.changes | 67 ++++++++++++++++++++++++++++++++++++++++++++ python-blosc.spec | 55 ++++++++++++++++++++++++++++++++++++ 5 files changed, 149 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 blosc-1.2.4.tar.gz create mode 100644 python-blosc.changes create mode 100644 python-blosc.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/blosc-1.2.4.tar.gz b/blosc-1.2.4.tar.gz new file mode 100644 index 0000000..9a4cee6 --- /dev/null +++ b/blosc-1.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:778d8d2e42e2ea677ec02aa07bc3b84303a0749a363ceceb2a60ff104f30afab +size 226607 diff --git a/python-blosc.changes b/python-blosc.changes new file mode 100644 index 0000000..8d46002 --- /dev/null +++ b/python-blosc.changes @@ -0,0 +1,67 @@ +------------------------------------------------------------------- +Thu Jul 17 09:32:38 UTC 2014 - toddrme2178@gmail.com + +- Update to 1.2.4 + - Updated to c-blosc 1.4.0. This added support for non-Intel + architectures, most specially those not supporting unaligned access. + +------------------------------------------------------------------- +Thu May 8 12:14:34 UTC 2014 - toddrme2178@gmail.com + +- Update to 1.2.3 + - Updated to c-blosc 1.3.5. This removed a 'pointer from integer + without a cast' compiler warning due to a bad macro definition. +- Update to 1.2.2 + - Updated to c-blosc 1.3.4. This fixed a false buffer overrun + condition. This bug made c-blosc (and hence python-blosc) to fail, + even if the failure was not real. +- Update to 1.2.1 + - Updated to c-blosc 1.3.3. + - Added a new `cname2clib` map for programatically determine the library + associated to a compressor. + - New `get_clib(cbuffer)` that tells which compression library format + has been used to created the compressed `cbuffer`. +- Update to 1.2.0 + - This release adds support for the multiple compressors added in Blosc + 1.3 series. + - Added new `cname` parameter in compression functions like + `compress()`, `compress_ptr()` and `pack_array()`. + - Added a new utility function named `compressor_list()` that returns + the list of compressors supported in the Blosc build. + - Added 'bench/compress_ptr.py' for comparing times of the different + compressors in Blosc and NumPy. +- Update to 1.1.0 + - Added new `compress_ptr` and `decompress_ptr` functions that allows to + compress and decompress from/to a data pointer. These are low level + calls and user must make sure that the pointer data area is safe. + - Since Blosc (the C library) already supports to be installed as an + standalone library (via cmake), it is also possible to link + python-blosc against a system Blosc library. + - The Python calls to Blosc are now thread-safe (another consequence of + recent Blosc library supporting this at C level). + - Many checks on types and ranges of values have been added. Most of + the calls will now complain when passed the wrong values. + - Docstrings are much improved. Also, Sphinx-based docs are available + now. +- Update to 1.0.6 + - Fix compile error with msvc compilers. Thanks to Christoph Gohlke. +- Update to 1.0.5 + - Upgraded to latest Blosc 1.1.4. + - Better handling of condition errors, and improved memory releasing in + case of errors (thanks to Valentin Haenel and Han Genuit). + - Better handling of types (should compile without warning now, at least + with GCC). +- Update to 1.0.4 + - Optimized the amount of data copied during compression (using + _PyBytes_Resize() now instead of old PyBytes_FromStringAndSize()). + This leads to improvements in compression speed ranging from 1.2x for + highly compressible chunks up to 7x for mostly uncompressible data. + Thanks to Valentin Haenel for this nice contribution. +- Use external blosc library. The internal one builds a bad version + of zlib. + +------------------------------------------------------------------- +Fri Sep 7 14:30:54 UTC 2012 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-blosc.spec b/python-blosc.spec new file mode 100644 index 0000000..27254a2 --- /dev/null +++ b/python-blosc.spec @@ -0,0 +1,55 @@ +# +# 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