commit 95396eb11a6729905c67cc4a52e04d3949f1fb5d6c380e6bbda080d3ab1d31b6 Author: Todd R Date: Tue Aug 6 20:43:46 2019 +0000 Accepting request 720698 from home:jayvdb:imagecodecs Fixed py2; sorry about that. Also trimmed a few optional lib deps which are not working yet, and noted the doctests are failing OBS-URL: https://build.opensuse.org/request/show/720698 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=1 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/imagecodecs-2019.5.22.tar.gz b/imagecodecs-2019.5.22.tar.gz new file mode 100644 index 0000000..08bbf49 --- /dev/null +++ b/imagecodecs-2019.5.22.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7cd689549b41dc979fed1a26e668a080e67b276b029d179ae3a9eb27a0187719 +size 6487114 diff --git a/python-imagecodecs.changes b/python-imagecodecs.changes new file mode 100644 index 0000000..e8ac208 --- /dev/null +++ b/python-imagecodecs.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 30 11:36:02 UTC 2019 - John Vandenberg + +- Update to v2019.5.22 + +------------------------------------------------------------------- +Mon Mar 4 10:03:51 AM UTC 2019 - John Vandenberg + +- Initial spec for v2019.2.22 diff --git a/python-imagecodecs.spec b/python-imagecodecs.spec new file mode 100644 index 0000000..2563dec --- /dev/null +++ b/python-imagecodecs.spec @@ -0,0 +1,110 @@ +# +# spec file for package python-imagecodecs +# +# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-imagecodecs +Version: 2019.5.22 +Release: 0 +Summary: Image transformation, compression, and decompression codecs +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://www.lfd.uci.edu/~gohlke/ +Source: https://files.pythonhosted.org/packages/source/i/imagecodecs/imagecodecs-%{version}.tar.gz +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module blosc} +BuildRequires: %{python_module lz4} +BuildRequires: %{python_module matplotlib >= 2.2} +BuildRequires: %{python_module numpy-devel >= 1.11.3} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module scikit-image} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module zstd} +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: jxrlib-devel +BuildRequires: libjpeg62-devel +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: python2-enum34 +BuildRequires: python2-futures +BuildRequires: python2-pathlib +BuildRequires: pkgconfig(blosc) +BuildRequires: pkgconfig(bzip2) +BuildRequires: pkgconfig(lcms2) +BuildRequires: pkgconfig(liblz4) +BuildRequires: pkgconfig(liblzma) +BuildRequires: pkgconfig(libopenjp2) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(libwebp) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(zlib) +Requires: python-numpy >= 1.11.3 +%ifpython2 +Requires: python2-enum34 +Requires: python2-futures +Requires: python2-pathlib +%endif +Recommends: python-Pillow +Recommends: python-blosc +Recommends: python-lz4 +Recommends: python-matplotlib >= 2.2 +Recommends: python-zstd +%python_subpackages + +%description +Imagecodecs is a Python library that provides block-oriented, in-memory buffer +transformation, compression, and decompression functions for use in the +tifffile, czifile, and other scientific imaging modules. + +Decode and/or encode functions are currently implemented for Zlib DEFLATE, +ZStandard, Blosc, LZMA, BZ2, LZ4, LZW, LZF, ZFP, NPY, PNG, WebP, JPEG 8-bit, +JPEG 12-bit, JPEG SOF3, JPEG LS, JPEG 2000, JPEG XR, PackBits, Packed Integers, +Delta, XOR Delta, Floating Point Predictor, and Bitorder reversal. + +%prep +%setup -q -n imagecodecs-%{version} +dos2unix README.rst +# prevent ImportError in CLI due to missing tifffile +sed -i '/from tifffile import imshow/d' imagecodecs/__main__.py + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%{python_expand rm -rf %{buildroot}%{$python_sitearch}/imagecodecs/licenses/ +%fdupes %{buildroot}%{$python_sitearch} +} + +%check +mv imagecodecs __imagecodecs +# Should add --doctest-modules %%{buildroot}%%{$python_sitearch}/imagecodecs/imagecodecs.py +# however doctests are currently broken +%pytest_arch tests +mv __imagecodecs imagecodecs + +%files %{python_files} +%license LICENSE imagecodecs/licenses/* +%doc README.rst +%python3_only %{_bindir}/imagecodecs +%{python_sitearch}/* + +%changelog