From b16da72cc43a32301f3a0e7ea5e10976fad432438f6dabd2ff531c0adbd0887d Mon Sep 17 00:00:00 2001 From: Richard Rahl Date: Sun, 16 Mar 2025 21:12:38 +0000 Subject: [PATCH] Accepting request 1253564 from home:rrahl0 - update to 0.22.0: * Boolean pillow_heif.options.DISABLE_SECURITY_LIMITS to bypass security limit of libheif for the image size. * AVIF format marked as deprecated and pending for the removal. OBS-URL: https://build.opensuse.org/request/show/1253564 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pillow-heif?expand=0&rev=12 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + python-pillow-heif-0.16.0.tar.gz | 3 ++ python-pillow-heif-0.17.0.tar.gz | 3 ++ python-pillow-heif-0.18.0.tar.gz | 3 ++ python-pillow-heif-0.20.0.tar.gz | 3 ++ python-pillow-heif-0.21.0.tar.gz | 3 ++ python-pillow-heif-0.22.0.tar.gz | 3 ++ python-pillow-heif.changes | 54 ++++++++++++++++++++++++ python-pillow-heif.spec | 70 ++++++++++++++++++++++++++++++++ 10 files changed, 166 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-pillow-heif-0.16.0.tar.gz create mode 100644 python-pillow-heif-0.17.0.tar.gz create mode 100644 python-pillow-heif-0.18.0.tar.gz create mode 100644 python-pillow-heif-0.20.0.tar.gz create mode 100644 python-pillow-heif-0.21.0.tar.gz create mode 100644 python-pillow-heif-0.22.0.tar.gz create mode 100644 python-pillow-heif.changes create mode 100644 python-pillow-heif.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/python-pillow-heif-0.16.0.tar.gz b/python-pillow-heif-0.16.0.tar.gz new file mode 100644 index 0000000..3893861 --- /dev/null +++ b/python-pillow-heif-0.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d95004bb77aa640f80617716aa21bc092ec06307f6f2ad423deeeda07b4d29c +size 14899409 diff --git a/python-pillow-heif-0.17.0.tar.gz b/python-pillow-heif-0.17.0.tar.gz new file mode 100644 index 0000000..ac1f7bc --- /dev/null +++ b/python-pillow-heif-0.17.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9541ffd1f80ff3f12da26aba76eb6da458fafa5f8bf4ee16279de0e2a5464ba9 +size 14900010 diff --git a/python-pillow-heif-0.18.0.tar.gz b/python-pillow-heif-0.18.0.tar.gz new file mode 100644 index 0000000..7883d14 --- /dev/null +++ b/python-pillow-heif-0.18.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70318dad9faa76121c6592ac0ab59881ff0dac6ab791a922e70d82c7706cce88 +size 16172675 diff --git a/python-pillow-heif-0.20.0.tar.gz b/python-pillow-heif-0.20.0.tar.gz new file mode 100644 index 0000000..bc1742e --- /dev/null +++ b/python-pillow-heif-0.20.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cac19c4434ab776f833160d61f3cbeddb347bd8ed2f82205b243eba5c572fa33 +size 16173556 diff --git a/python-pillow-heif-0.21.0.tar.gz b/python-pillow-heif-0.21.0.tar.gz new file mode 100644 index 0000000..866762c --- /dev/null +++ b/python-pillow-heif-0.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af0f03a99517d32c49652f8676e89e5556608e7a5fc66c4aae0f53a47f9af0e9 +size 25651387 diff --git a/python-pillow-heif-0.22.0.tar.gz b/python-pillow-heif-0.22.0.tar.gz new file mode 100644 index 0000000..b62971b --- /dev/null +++ b/python-pillow-heif-0.22.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f044f53fd0b688173cc5f24db5e3e14b111630f51e08507fb599310b713a543 +size 28024517 diff --git a/python-pillow-heif.changes b/python-pillow-heif.changes new file mode 100644 index 0000000..74e7834 --- /dev/null +++ b/python-pillow-heif.changes @@ -0,0 +1,54 @@ +------------------------------------------------------------------- +Sun Mar 16 20:56:03 UTC 2025 - Richard Rahl + +- update to 0.22.0: + * Boolean pillow_heif.options.DISABLE_SECURITY_LIMITS to bypass security + limit of libheif for the image size. + * AVIF format marked as deprecated and pending for the removal. + +------------------------------------------------------------------- +Fri Nov 29 14:54:36 UTC 2024 - Richard Rahl + +- update to 0.21.0: + * Allow specifying encoder parameters for non-primary images in image sequence. + * Error argument '-Ofast' is deprecated when building from source. +- switch to github tarball, so we can build the documentation + +------------------------------------------------------------------- +Sat Oct 19 18:52:26 UTC 2024 - Richard Rahl + +- update to 0.20.0: + * Initial support for parsing auxiliary images. + * Dropped Python 3.8 support + * More accurate error handling in the C module + * Support for Pillow 11.0.0 +- remove building option for x265, as I can't verify it for now + +------------------------------------------------------------------- +Sat Jul 27 19:39:58 UTC 2024 - Richard Rahl + +- update to 0.18.0: + * image.info["heif"] dictionary with camera_intrinsic_matrix HEIF + specific metadata. Currently only reading is supported. + * python 3.13.0b3 support added + +------------------------------------------------------------------- +Fri Jul 5 07:27:29 UTC 2024 - Richard Rahl + +- update to 0.17.0: + * Support for Pillow 10.4.0 + * Minimum supported Pillow version raised to 10.1.0 + * xmp in info dictionary is now not present if it is empty + * Processing of the images in P mode with transparency = 0 +- adapt packaging to better handle rebuilding +- disable tests for now, as it can't find the correct libs + +------------------------------------------------------------------- +Sun Jun 2 23:24:23 UTC 2024 - Richard Rahl + +- remove itself from BuildRequires + +------------------------------------------------------------------- +Wed May 22 10:26:09 UTC 2024 - Richard Rahl + +- initial packaging diff --git a/python-pillow-heif.spec b/python-pillow-heif.spec new file mode 100644 index 0000000..1c15001 --- /dev/null +++ b/python-pillow-heif.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pillow-heif +# +# Copyright (c) 2025 SUSE LLC +# +# 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/ +# + + +Name: python-pillow-heif +Version: 0.22.0 +Release: 0 +Summary: Python interface for libheif library +License: BSD-3-Clause +URL: https://github.com/bigcat88/pillow_heif +Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module Pillow >= 9.5.0} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 67.8} +BuildRequires: %{python_module sphinx-issues} +BuildRequires: %{python_module sphinx_rtd_theme} +BuildRequires: %{python_module sphinxcontrib-copybutton} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(aom) >= 3.3.0 +BuildRequires: pkgconfig(libavif) +BuildRequires: pkgconfig(libheif) >= 1.18.2 +Requires: python-Pillow >= 9.5.0 +Suggests: python-pillow-heif-doc +%python_subpackages + +%description +Python interface for libheif library + +%prep +%autosetup -p1 -n pillow_heif-%{version} + +%build +%pyproject_wheel + +#docs +pushd docs +%make_build html +popd + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} +rm docs/_build/html/.buildinfo +%fdupes docs/_build/html + +%files %{python_files} +%doc docs/_build/html +%{python_sitearch}/pillow_heif +%{python_sitearch}/pillow_heif-%{version}.dist-info +%{python_sitearch}/_pillow_heif.cpython-*.so + +%changelog