1
0

Accepting request 865546 from home:andythe_great

update to 2021.1.11

OBS-URL: https://build.opensuse.org/request/show/865546
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=12
This commit is contained in:
Matej Cepl 2021-01-22 07:19:43 +00:00 committed by Git OBS Bridge
parent 88299ee7fe
commit 3303e85a39
6 changed files with 50 additions and 24 deletions

View File

@ -1,12 +1,12 @@
Index: imagecodecs-2020.5.30/setup.py Index: imagecodecs-2020.5.30/setup.py
=================================================================== ===================================================================
--- imagecodecs-2020.5.30.orig/setup.py --- imagecodecs-2020.5.30.orig/setup.py
+++ imagecodecs-2020.5.30/setup.py +++ imagecodecs-2020.5.30/setup.py
@@ -71,7 +71,7 @@ if 'sdist' in sys.argv: @@ -71,7 +71,7 @@ if 'sdist' in sys.argv:
OPTIONS = { OPTIONS = {
- 'cythonize': sys.version_info >= (3, 10), - 'cythonize': sys.version_info >= (3, 10) or 'PyPy' in sys.version,
+ 'cythonize': True, + 'cythonize': True,
'include_dirs': ['imagecodecs'], 'include_dirs': ['imagecodecs'],
'library_dirs': [], 'library_dirs': [],

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c8c776922d3a60824d8d3d31ba674a250d1b4d429e81349b5c88c34d4353ddb5
size 8993252

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a52cf0368055dc9b1f98948deb245e2bbf23b40b74c8a03226a2d9044470754
size 5256206

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Tue Jan 12 21:54:10 UTC 2021 - andy great <andythe_great@pm.me>
- Update to version 2021.1.11.
* Fix build issues (#7, #8).
* Return bytearray instead of bytes on PyPy.
* Raise TypeError if output provided is bytes (breaking).
- Updates for version 2021.1.8
* Add float24 codec.
* Update copyrights.
- Updates for version 2020.12.24
* Update dependencies and build scripts.
- Updates for version 2020.12.22
* Add AVIF codec via libavif (WIP).
* Add DEFLATE/Zlib and GZIP codecs via libdeflate.
* Add LZ4F codec.
* Add high compression mode option to lz4_encode.
* Convert JPEG XR 16 and 32-bit fixed point pixel types to float32.
* Fix JPEG 2000 lossy encoding.
* Fix GIF disposal handling.
* Remove support for Python 3.6 (NEP 29).
- Rebase always-cythonize.patch
- Rebase zopfli-headers.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 28 09:20:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Fri Aug 28 09:20:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-imagecodecs # spec file for package python-imagecodecs
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -26,8 +26,9 @@
%bcond_with test %bcond_with test
%endif %endif
%define skip_python2 1 %define skip_python2 1
%define skip_python36 1
Name: python-imagecodecs%{psuffix} Name: python-imagecodecs%{psuffix}
Version: 2020.5.30 Version: 2021.1.11
Release: 0 Release: 0
Summary: Image transformation, compression, and decompression codecs Summary: Image transformation, compression, and decompression codecs
License: BSD-3-Clause License: BSD-3-Clause
@ -64,6 +65,7 @@ BuildRequires: gcc-c++
BuildRequires: giflib-devel BuildRequires: giflib-devel
BuildRequires: jxrlib-devel BuildRequires: jxrlib-devel
BuildRequires: libaec-devel BuildRequires: libaec-devel
BuildRequires: libdeflate-devel
BuildRequires: libzopfli-devel BuildRequires: libzopfli-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -135,7 +137,8 @@ mv __imagecodecs imagecodecs
%license LICENSE imagecodecs/licenses/* %license LICENSE imagecodecs/licenses/*
%doc README.rst %doc README.rst
%python_alternative %{_bindir}/imagecodecs %python_alternative %{_bindir}/imagecodecs
%{python_sitearch}/* %{python_sitearch}/imagecodecs*.egg-info
%{python_sitearch}/imagecodecs
%endif %endif
%changelog %changelog

View File

@ -1,13 +1,12 @@
Index: imagecodecs-2020.5.30/imagecodecs/zopfli.pxd diff -ruN a/imagecodecs/zopfli.pxd b/imagecodecs/zopfli.pxd
=================================================================== --- a/imagecodecs/zopfli.pxd 2021-01-12 11:06:22.000000000 +0700
--- imagecodecs-2020.5.30.orig/imagecodecs/zopfli.pxd +++ b/imagecodecs/zopfli.pxd 2021-01-13 05:00:24.579533263 +0700
+++ imagecodecs-2020.5.30/imagecodecs/zopfli.pxd
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
# Cython declarations for the `Zopfli 1.0.3` library. # Cython declarations for the `Zopfli 1.0.3` library.
# https://github.com/google/zopfli # https://github.com/google/zopfli
-cdef extern from 'zopfli/zopfli.h': -cdef extern from 'zopfli/zopfli.h':
+cdef extern from 'zopfli.h': +cdef extern from 'zopfli.h':
ctypedef struct ZopfliOptions: ctypedef struct ZopfliOptions:
int verbose int verbose