From 05ab4cb884ff9291f51471ca0ddc21b5e1cffffeba903f0a29dc6cd22a025d2a Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 17 May 2017 16:27:34 +0000 Subject: [PATCH] Accepting request 495671 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version - Fix source URL - Update to version 2.1.2 OBS-URL: https://build.opensuse.org/request/show/495671 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=2 --- imageio-1.4.zip | 3 --- imageio-2.1.2.zip | 3 +++ python-imageio.changes | 9 +++++++ python-imageio.spec | 54 +++++++++++++++++++++++++----------------- 4 files changed, 44 insertions(+), 25 deletions(-) delete mode 100644 imageio-1.4.zip create mode 100644 imageio-2.1.2.zip diff --git a/imageio-1.4.zip b/imageio-1.4.zip deleted file mode 100644 index c7d88af..0000000 --- a/imageio-1.4.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad9a3e75ffa802cca87a56bfdc6af7facbf8db5c62232b63c9822f10ac49292e -size 209794 diff --git a/imageio-2.1.2.zip b/imageio-2.1.2.zip new file mode 100644 index 0000000..aa8c5f3 --- /dev/null +++ b/imageio-2.1.2.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89d7692d9f513aa21665af7de94948bc1ef110d812fa66c34bfd486590d986bb +size 3314415 diff --git a/python-imageio.changes b/python-imageio.changes index 41fcdb7..2c9895e 100644 --- a/python-imageio.changes +++ b/python-imageio.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed May 17 16:24:58 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Fix source URL +- Update to version 2.1.2 + Large number of changes, see: + https://imageio.readthedocs.io/en/latest/releasenotes.html#version-2-1-2-02-02-2017 + ------------------------------------------------------------------- Tue Dec 9 13:36:25 UTC 2014 - toddrme2178@gmail.com diff --git a/python-imageio.spec b/python-imageio.spec index be09a5d..84b5403 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -1,7 +1,7 @@ # # spec file for package python-imageio # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,55 +16,65 @@ # +# Tests don't work without internet +%bcond_with tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-imageio -Version: 1.4 +Version: 2.1.2 Release: 0 Summary: Library for reading and writing image, video, and related formats License: BSD-2-Clause Group: Development/Languages/Python Url: http://imageio.github.io/ -Source: https://pypi.python.org/packages/source/i/imageio/imageio-%{version}.zip +Source: https://files.pythonhosted.org/packages/source/i/imageio/imageio-%{version}.zip BuildRequires: ffmpeg BuildRequires: libfreeimage3 -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-numpy -BuildRequires: python-pytest -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module numpy} BuildRequires: unzip +%if %{with tests} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} +%endif Requires: ffmpeg Requires: libfreeimage3 Requires: python-numpy Recommends: libfreeimageplus3 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Imageio is a Python library that provides an easy interface to read and write a wide range of image data, including animated images, volumetric -data, and scientific formats. It is cross-platform, runs on Python 2.x -and 3.x, and is easy to install. +data, and scientific formats. %prep %setup -q -n imageio-%{version} %build -IMAGEIO_NO_INTERNET=1 python setup.py build +export IMAGEIO_NO_INTERNET=1 +%python_build %install -IMAGEIO_NO_INTERNET=1 python setup.py install --prefix=%{_prefix} --root=%{buildroot} +export IMAGEIO_NO_INTERNET=1 +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -# Tests don't work without internet -# %check -# pushd tests -# PYTHONPATH=%{buildroot}%{python_sitelib} py.test -# popd +%if %{with tests} +%check +pushd tests +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +py.test-%{$python_bin_suffix} +} +popd +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc CONTRIBUTORS.txt LICENSE README.md %{python_sitelib}/*