## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pillow-jxl-plugin Version: 1.3.8 Release: %autorelease Summary: Pillow plugin for JPEG-XL # GPL-3.0-or-later for code # CC-BY and CC-BY-SA for test images SourceLicense: GPL-3.0-or-later AND CC-BY-4.0 AND CC-BY-SA-4.0 # BSD-2-Clause OR Apache-2.0 OR MIT # GPL-3.0-or-later # MIT OR Apache-2.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: %{shrink: GPL-3.0-or-later AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown URL: https://github.com/Isotr0py/pillow-jpegxl-plugin Source: %{url}/archive/v%{version}/pillow-jpegxl-plugin-%{version}.tar.gz # drop custom build system that is unnecessary and only breaks stuff Patch: 0001-Unconditionally-dynamically-link-libjxl.patch # Allow older jpgegxl-rs 0.12–0.14; upstream has updated to 0.15 without # source-code changes, but coordination with glycin is needed to avoid a compat # package. # # https://github.com/Isotr0py/pillow-jpegxl-plugin/commit/3b36d36d7593ab524745aba6d456bcc11b7b97b8 # https://github.com/Isotr0py/pillow-jpegxl-plugin/commit/042967a1ee8d819ef053e9822349363db5c920e9 # https://github.com/Isotr0py/pillow-jpegxl-plugin/commit/c5369ab39bec720399a7aeefe0f48087ab7cb578 Patch: 0002-Allow-jpegxl-rs-as-old-as-0.12.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: python3-devel BuildRequires: jpegxl-devel BuildRequires: libstdc++-devel %global _description %{expand: Pillow plugin for JPEG-XL, using Rust for bindings.} %description %{_description} %package -n python3-pillow-jxl-plugin Summary: Pillow plugin for JPEG-XL %description -n python3-pillow-jxl-plugin %{_description} %prep %autosetup -n pillow-jpegxl-plugin-%{version} -p1 %cargo_prep %generate_buildrequires %pyproject_buildrequires %cargo_generate_buildrequires %build # write license summary and breakdown %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pillow_jxl %check %pyproject_check_import %files -n python3-pillow-jxl-plugin -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Thu Jul 23 2026 Benjamin A. Beasley - 1.3.8-1 - Update to version 1.3.8; Fixes RHBZ#2501677 * Wed Jul 22 2026 Python Maint - 1.3.7-4 - Rebuilt for Python 3.15.0b4 ABI change * Thu Jul 16 2026 Fedora Release Engineering - 1.3.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Sat Jun 20 2026 Benjamin A. Beasley - 1.3.7-2 - Update PyO3 to 0.29 * Sat Jun 20 2026 Benjamin A. Beasley - 1.3.7-1 - Update to version 1.3.7; Fixes RHBZ#2403496 * Sat Jun 20 2026 Benjamin A. Beasley - 1.3.6-1 - Update to 1.3.6 * Sat Jun 20 2026 Benjamin A. Beasley - 1.3.5-1 - Update to 1.3.5 * Wed Jun 03 2026 Python Maint - 1.3.4-6 - Rebuilt for Python 3.15 * Tue Mar 17 2026 Fabio Valentini - 1.3.4-5 - Backport jpegxl-rs dependency update from 0.11 to 0.12 * Sat Jan 17 2026 Fedora Release Engineering - 1.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 1.3.4-3 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 1.3.4-2 - Rebuilt for Python 3.14.0rc2 bytecode * Sat Jul 26 2025 Benjamin A. Beasley - 1.3.4-1 - Update to version 1.3.4; Fixes RHBZ#2376155 * Sat Jul 26 2025 Benjamin A. Beasley - 1.3.3-5 - Use upper-case conjunctions in SourceLicense * Fri Jul 25 2025 Fedora Release Engineering - 1.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jun 19 2025 Benjamin A. Beasley - 1.3.3-3 - Update PyO3 dependency to 0.25.1 * Tue Jun 03 2025 Python Maint - 1.3.3-2 - Rebuilt for Python 3.14 * Tue May 20 2025 Benjamin A. Beasley - 1.3.3-1 - Update to version 1.3.3; Fixes RHBZ#2366625 * Tue May 20 2025 Benjamin A. Beasley - 1.3.2-3 - Ensure LICENSE.dependencies is installed - Write it before we build the wheel. * Tue May 20 2025 Benjamin A. Beasley - 1.3.2-2 - We can now rely on maturin to handle the LICENSE in dist-info * Thu Mar 27 2025 Neal Gompa - 1.3.2-1 - Initial import into Fedora (rhbz#2354261) ## END: Generated by rpmautospec