From 5bcabd82174b43ab6a0979287a9bf9d76fe669eaa59d07844a3c1effb0be8caa Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 9 May 2018 03:48:03 +0000 Subject: [PATCH] Accepting request 605539 from devel:languages:python:misc Image reading OBS-URL: https://build.opensuse.org/request/show/605539 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imread?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + imread-0.6.1.tar.gz | 3 ++ python-imread.changes | 11 ++++++ python-imread.spec | 81 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 imread-0.6.1.tar.gz create mode 100644 python-imread.changes create mode 100644 python-imread.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/imread-0.6.1.tar.gz b/imread-0.6.1.tar.gz new file mode 100644 index 0000000..f1f8f02 --- /dev/null +++ b/imread-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4a0384ed35e50a8c68cad21a4a077247aec984af69f70cfbf76e3d206926832 +size 139198 diff --git a/python-imread.changes b/python-imread.changes new file mode 100644 index 0000000..0fb0e69 --- /dev/null +++ b/python-imread.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Wed May 9 02:05:02 UTC 2018 - toddrme2178@gmail.com + +- Update to version 0.8.1 + * Support pathlib paths as function arguments + * Fix 16 bit PNG write support (patch by Tomi Aarnio) + +------------------------------------------------------------------- +Mon May 22 17:28:39 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-imread.spec b/python-imread.spec new file mode 100644 index 0000000..a1e0a2c --- /dev/null +++ b/python-imread.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-imread +# +# Copyright (c) 2018 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-imread +Version: 0.6.1 +Release: 0 +Summary: Image reading library +License: MIT +Group: Development/Languages/Python +Url: http://luispedro.org/software/imread +Source: https://files.pythonhosted.org/packages/source/i/imread/imread-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy-devel} +BuildRequires: %{python_module setuptools} +BuildRequires: c++_compiler +BuildRequires: fdupes +BuildRequires: giflib-devel +BuildRequires: libtiff-devel +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(libwebp) +%if %{with test} +BuildRequires: %{python_module nose} +%endif +BuildRequires: python-numpy +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + +%description +Mahotas-imread is a simple module with a small number of functions: + +imread + Reads an image file +imread_multi + Reads an image file with multiple images. Currently, TIFF and STK (a TIFF + sub-based format) support this function. +imsave + Writes an image file + +%prep +%setup -q -n imread-%{version} + +%build +export EXCLUDE_WEBP=0 +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc ChangeLog README.rst +%license COPYING.MIT +%{python_sitearch}/* + +%changelog