From e87d18bbd6054e7190ce9a6db25aa8dbd3c99563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 19 Sep 2024 01:15:02 +0100 Subject: [PATCH 01/12] Disable gimp_plugin, jpegxl don't support Gimp 3 yet --- jpegxl.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jpegxl.spec b/jpegxl.spec index 9741c07..6786895 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -9,8 +9,8 @@ %global gdk_pixbuf_moduledir $(pkgconf gdk-pixbuf-2.0 --variable=gdk_pixbuf_moduledir) +%bcond_with gimp_plugin %if 0%{?fedora} -%bcond_without gimp_plugin %bcond_without tcmalloc %endif @@ -45,7 +45,7 @@ BuildRequires: gperftools-devel %endif BuildRequires: ninja-build %if %{with gimp_plugin} -BuildRequires: pkgconfig(gimp-2.0) +BuildRequires: pkgconfig(gimp-3.0) %endif ## sjpeg examples are not built #BuildRequires: (pkgconfig(glut) or pkgconfig(freeglut)) From 33965822fb52c8e6565a4c6a20b141c326f80312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Tue, 29 Oct 2024 22:57:23 +0000 Subject: [PATCH 02/12] Fix upgrade path Resolves: rhbz#2322528 --- jpegxl.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jpegxl.spec b/jpegxl.spec index 6786895..4f32399 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -112,6 +112,9 @@ Requires: shared-mime-info Recommends: jxl-pixbuf-loader = %{epoch}:%{version}-%{release} Provides: jpegxl-libs = %{epoch}:%{version}-%{release} Obsoletes: jpegxl-libs < 0.3.7-5 +%if %{without gimp_plugin} +Obsoletes: gimp-jxl-plugin < 1:0.10.3-4 +%endif %description -n libjxl %{common_description} From 88ff0faff837d347d985db210833727230c2688b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 08:00:14 +0000 Subject: [PATCH 03/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 94959b88d34f054bc335e7ad70ab1d71f9a21546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 30 Jan 2025 23:12:19 +0000 Subject: [PATCH 04/12] Update jpegxl to 0.10.4 --- .gitignore | 2 ++ jpegxl.spec | 2 +- sources | 4 ++-- update_third_party.sh | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8fa24e7..ef88f15 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ /third_party-0.10.2.tar.gz /jpegxl-0.10.3.tar.gz /third_party-0.10.3.tar.gz +/jpegxl-0.10.4.tar.gz +/third_party-0.10.4.tar.gz diff --git a/jpegxl.spec b/jpegxl.spec index 4f32399..459c5a8 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -20,7 +20,7 @@ decoder).} Name: jpegxl Epoch: 1 -Version: 0.10.3 +Version: 0.10.4 Release: %autorelease %{?new_soname:-p -e 0~sonamebump} Summary: JPEG XL image format reference implementation diff --git a/sources b/sources index ca7d7e1..0c559aa 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (jpegxl-0.10.3.tar.gz) = 5ece482f4c5f0312e87e020f921525622a6d3f1a3834f3cd8666638fc8d0fba8cd072ef58f7b153dc17ca19071ebae2fbad7b08e6d440c2669f4f1b35888a7d4 -SHA512 (third_party-0.10.3.tar.gz) = 4f7e22ab2240c49bece7056fc2216662d70c3cbc7eca5b60684eafee68a3fd0f9bdf1dddaaff0eb1c095c545f55fbfd294e49adde2b5846c47661c5b9f86db6d +SHA512 (jpegxl-0.10.4.tar.gz) = db713ec5627ce66750209b7a62345ba0fa74568bbf43627fe86053aa70295a9b7ba738dac34c5449bb258c99909a19416465a971447ebb28c69514c65f0b9295 +SHA512 (third_party-0.10.4.tar.gz) = f8e4d1f26182244943e3735f650670caf00bf6c58709658f642004cc27632d585c6988816ac1eb455bbb86a6c80235fbc3273a61018f85b4bc65382972ef07ad diff --git a/update_third_party.sh b/update_third_party.sh index 40af41b..a9bfd32 100755 --- a/update_third_party.sh +++ b/update_third_party.sh @@ -1,4 +1,4 @@ -VERSION=0.10.3 +VERSION=0.10.4 git clone https://github.com/libjxl/libjxl cd libjxl/ From 2e24065015889667c48d8df0412adf23aaa5fb9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Sun, 2 Feb 2025 16:39:23 +0000 Subject: [PATCH 05/12] Update to 0.11.1 upstream release - Resolves: rhbz#2312322 Upstream tag: v0.11.1 Upstream commit: 794a5dcf Commit authored by Packit automation (https://packit.dev/) --- .gitignore | 4 ++-- README.packit | 2 +- jpegxl.spec | 21 ++++++++++----------- sources | 4 ++-- update_third_party.sh | 19 ++++++++++--------- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index ef88f15..f95e8ed 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,5 @@ /third_party-0.10.2.tar.gz /jpegxl-0.10.3.tar.gz /third_party-0.10.3.tar.gz -/jpegxl-0.10.4.tar.gz -/third_party-0.10.4.tar.gz +/jpegxl-0.11.1.tar.gz +/third_party-0.11.1.tar.gz diff --git a/README.packit b/README.packit index f2be23e..fafa6eb 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.97.3.post1.dev7+g1954e49a. +The file was generated using packit 0.104.1. diff --git a/jpegxl.spec b/jpegxl.spec index 459c5a8..0ae018d 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -3,9 +3,9 @@ # Uncomment for special build to rebuild aom on bumped soname. -#%%global new_soname 1 -%global sover_old 0.8 -%global sover 0.10 +%global new_soname 1 +%global sover_old 0.10 +%global sover 0.11 %global gdk_pixbuf_moduledir $(pkgconf gdk-pixbuf-2.0 --variable=gdk_pixbuf_moduledir) @@ -20,7 +20,7 @@ decoder).} Name: jpegxl Epoch: 1 -Version: 0.10.4 +Version: 0.11.1 Release: %autorelease %{?new_soname:-p -e 0~sonamebump} Summary: JPEG XL image format reference implementation @@ -71,9 +71,9 @@ BuildRequires: libjxl < %{epoch}:%{version} %endif # No official release -Provides: bundled(sjpeg) = 0-0.1.20210522git868ab55 +Provides: bundled(sjpeg) = 0-0.1.20230608gite5ab130 # Build system is Bazel, which is not packaged by Fedora -Provides: bundled(skcms) = 0-0.1.20210522git6437475 +Provides: bundled(skcms) = 0-0.1.20240122git51b7f2a %description %common_description @@ -177,6 +177,7 @@ rm -rf third_party/ %if 0%{?new_soname} cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %{_libdir}/libjxl_threads.so.%{sover_old}* \ + %{_libdir}/libjxl_cms.so.%{sover_old}* \ %{buildroot}%{_libdir} %endif @@ -184,19 +185,17 @@ cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %doc CONTRIBUTING.md CONTRIBUTORS README.md %{_bindir}/cjxl %{_bindir}/djxl -%{_bindir}/cjpegli -%{_bindir}/djpegli %{_bindir}/jxlinfo %{_mandir}/man1/cjxl.1* %{_mandir}/man1/djxl.1* %files -n libjxl-devtools %{_bindir}/djxl_fuzzer_corpus -%{_bindir}/jpegli_dec_fuzzer_corpus %{_bindir}/butteraugli_main %{_bindir}/decode_and_encode %{_bindir}/display_to_hlg %{_bindir}/exr_to_pq +%{_bindir}/icc_simplify %{_bindir}/pq_to_hlg %{_bindir}/render_hlg %{_bindir}/tone_map @@ -218,10 +217,10 @@ cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %{_libdir}/libjxl.so.%{sover}* %{_libdir}/libjxl_threads.so.%{sover}* %{_libdir}/libjxl_cms.so.%{sover}* -%{_libdir}/libjxl_extras_codec.so.%{sover}* %if 0%{?new_soname} %{_libdir}/libjxl.so.%{sover_old}* %{_libdir}/libjxl_threads.so.%{sover_old}* +%{_libdir}/libjxl_cms.so.%{sover_old}* %endif %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/jxl.thumbnailer @@ -233,7 +232,7 @@ cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %{_libdir}/libjxl.so %{_libdir}/libjxl_threads.so %{_libdir}/libjxl_cms.so -%{_libdir}/libjxl_extras_codec.so +%{_libdir}/libjxl_extras_codec.a %{_libdir}/pkgconfig/libjxl.pc %{_libdir}/pkgconfig/libjxl_threads.pc %{_libdir}/pkgconfig/libjxl_cms.pc diff --git a/sources b/sources index 0c559aa..7d1c479 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (jpegxl-0.10.4.tar.gz) = db713ec5627ce66750209b7a62345ba0fa74568bbf43627fe86053aa70295a9b7ba738dac34c5449bb258c99909a19416465a971447ebb28c69514c65f0b9295 -SHA512 (third_party-0.10.4.tar.gz) = f8e4d1f26182244943e3735f650670caf00bf6c58709658f642004cc27632d585c6988816ac1eb455bbb86a6c80235fbc3273a61018f85b4bc65382972ef07ad +SHA512 (jpegxl-0.11.1.tar.gz) = 0cfd81d9d3b783f96bd04f244d73ffbc12186c89993d46064a2751bef0a446a5e86be05add5c10f60d4482d39333d9bf3f9a866d6eb84f8fa0d4e8b5828fd74c +SHA512 (third_party-0.11.1.tar.gz) = f76e20360594e010f1a04e5522e879f65d0360bc31cda21a724f8f4d65668eed276890f6187acef43fafe939c67a080251f1d4bdcb05f21c3ac9957afdef0a7b diff --git a/update_third_party.sh b/update_third_party.sh index a9bfd32..ab8f567 100755 --- a/update_third_party.sh +++ b/update_third_party.sh @@ -1,18 +1,19 @@ -VERSION=0.10.4 +VERSION=0.11.1 git clone https://github.com/libjxl/libjxl cd libjxl/ git checkout . git checkout v${VERSION} ./deps.sh -rm -r third_party/brotli/ -rm -r third_party/googletest/ -rm -r third_party/HEVCSoftware/ -rm -r third_party/highway/ -rm -r third_party/lcms/ -rm -r third_party/libpng/ -rm -r third_party/skcms/profiles/ -rm -r third_party/zlib +rm -rvf third_party/brotli/ +rm -rvf third_party/googletest/ +rm -rvf third_party/HEVCSoftware/ +rm -rvf third_party/highway/ +rm -rvf third_party/lcms/ +rm -rvf third_party/libjpeg-turbo +rm -rvf third_party/libpng/ +rm -rvf third_party/skcms/profiles/ +rm -rvf third_party/zlib tar -zcf ../third_party-${VERSION}.tar.gz third_party/ cd .. rm -rf libjxl/ From 37e9aa2a6115639f84784599ebe7afdf154108e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Tue, 4 Feb 2025 03:56:47 +0000 Subject: [PATCH 06/12] un-bootstrap --- jpegxl.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpegxl.spec b/jpegxl.spec index 0ae018d..416c2fd 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -3,7 +3,7 @@ # Uncomment for special build to rebuild aom on bumped soname. -%global new_soname 1 +#global new_soname 1 %global sover_old 0.10 %global sover 0.11 From 832e061db2d07b077fb0f2403241d4e2242a1368 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 18:04:40 +0000 Subject: [PATCH 07/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From a67d70b7f1bb8dc2012b1edcadadbad38c05e0fc Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Tue, 12 Aug 2025 18:36:08 +0200 Subject: [PATCH 08/12] update to 0.10.4 (resolves rhbz#2384428) - fixes CVE-2024-11403 and CVE-2024-11498 --- .gitignore | 2 ++ jpegxl.spec | 2 +- sources | 4 ++-- update_third_party.sh | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8fa24e7..ef88f15 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ /third_party-0.10.2.tar.gz /jpegxl-0.10.3.tar.gz /third_party-0.10.3.tar.gz +/jpegxl-0.10.4.tar.gz +/third_party-0.10.4.tar.gz diff --git a/jpegxl.spec b/jpegxl.spec index 9741c07..cb4bd73 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -20,7 +20,7 @@ decoder).} Name: jpegxl Epoch: 1 -Version: 0.10.3 +Version: 0.10.4 Release: %autorelease %{?new_soname:-p -e 0~sonamebump} Summary: JPEG XL image format reference implementation diff --git a/sources b/sources index ca7d7e1..665392c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (jpegxl-0.10.3.tar.gz) = 5ece482f4c5f0312e87e020f921525622a6d3f1a3834f3cd8666638fc8d0fba8cd072ef58f7b153dc17ca19071ebae2fbad7b08e6d440c2669f4f1b35888a7d4 -SHA512 (third_party-0.10.3.tar.gz) = 4f7e22ab2240c49bece7056fc2216662d70c3cbc7eca5b60684eafee68a3fd0f9bdf1dddaaff0eb1c095c545f55fbfd294e49adde2b5846c47661c5b9f86db6d +SHA512 (jpegxl-0.10.4.tar.gz) = db713ec5627ce66750209b7a62345ba0fa74568bbf43627fe86053aa70295a9b7ba738dac34c5449bb258c99909a19416465a971447ebb28c69514c65f0b9295 +SHA512 (third_party-0.10.4.tar.gz) = c048e5c1892b92d2014411a1dc0013d281a22fd35e537f9107512ba5fa8318507463ff409cc33a7fc58562ea10d75aa122c1bb7d7da3ea4b271021e8faa887d9 diff --git a/update_third_party.sh b/update_third_party.sh index 40af41b..a9bfd32 100755 --- a/update_third_party.sh +++ b/update_third_party.sh @@ -1,4 +1,4 @@ -VERSION=0.10.3 +VERSION=0.10.4 git clone https://github.com/libjxl/libjxl cd libjxl/ From 5e4a034b684f39844aa566d9576d585c32c2083d Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Tue, 12 Aug 2025 19:43:58 +0200 Subject: [PATCH 09/12] enable tests skip tests failing on s390x --- .gitignore | 1 + jpegxl.spec | 18 ++++++++++++++---- sources | 1 + update_third_party.sh | 1 + 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f95e8ed..7a5cfa7 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ /third_party-0.10.3.tar.gz /jpegxl-0.11.1.tar.gz /third_party-0.11.1.tar.gz +/testdata-0.11.1.tar.gz diff --git a/jpegxl.spec b/jpegxl.spec index 416c2fd..25877c3 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -32,8 +32,9 @@ License: BSD-3-Clause AND Apache-2.0 AND Zlib URL: https://jpeg.org/jpegxl/ Source0: https://github.com/libjxl/libjxl/archive/v%{version}/%{name}-%{version}.tar.gz -# set VERSION and run ./update_third_party.sh to get Source1 +# set VERSION and run ./update_third_party.sh to get Source1 and Source2 Source1: third_party-%{version}.tar.gz +Source2: testdata-%{version}.tar.gz BuildRequires: asciidoc BuildRequires: cmake @@ -51,6 +52,7 @@ BuildRequires: pkgconfig(gimp-3.0) #BuildRequires: (pkgconfig(glut) or pkgconfig(freeglut)) BuildRequires: gtest-devel BuildRequires: gflags-devel +BuildRequires: gmock-devel BuildRequires: pkgconfig(libhwy) BuildRequires: pkgconfig(libbrotlicommon) BuildRequires: pkgconfig(lcms2) @@ -151,12 +153,12 @@ This is a GIMP plugin for loading and saving JPEG-XL images. %prep %autosetup -p1 -n libjxl-%{version} -rm -rf third_party/ -%setup -q -T -D -a 1 -n libjxl-%{version} +rm -rf testdata/ third_party/ +%setup -q -T -D -a 1 -a 2 -n libjxl-%{version} %build %cmake -DENABLE_CCACHE=1 \ - -DBUILD_TESTING=OFF \ + -DBUILD_TESTING=ON \ -DINSTALL_GTEST:BOOL=OFF \ -DJPEGXL_ENABLE_BENCHMARK:BOOL=OFF \ -DJPEGXL_ENABLE_PLUGINS:BOOL=ON \ @@ -181,6 +183,14 @@ cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %{buildroot}%{_libdir} %endif +%check +%ifarch s390x +# https://github.com/libjxl/libjxl/issues/3629 +%ctest -E 'DecodeTest\.(ProgressionTestLosslessAlpha|FlushTestLosslessProgressiveAlpha)|EncodeTest\.FrameSettingsTest|JxlTest\.RoundtripAlpha(Resampling(OnlyAlpha)?|16)|JxlTest\.RoundtripProgressive(Level2Slow)?|ModularTest\.RoundtripLossy(DeltaPalette|16)?|RoundtripLossless/ModularTestParam\.RoundtripLossless/1bitSqueeze|RoundtripLossless/ModularTestParam\.RoundtripLossless/(1|2[01467]|30)bitSqueeze|PassesTest\.ProgressiveDownsample2DegradesCorrectly(Grayscale)?' +%else +%ctest +%endif + %files -n libjxl-utils %doc CONTRIBUTING.md CONTRIBUTORS README.md %{_bindir}/cjxl diff --git a/sources b/sources index 7d1c479..30cd74c 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ SHA512 (jpegxl-0.11.1.tar.gz) = 0cfd81d9d3b783f96bd04f244d73ffbc12186c89993d46064a2751bef0a446a5e86be05add5c10f60d4482d39333d9bf3f9a866d6eb84f8fa0d4e8b5828fd74c SHA512 (third_party-0.11.1.tar.gz) = f76e20360594e010f1a04e5522e879f65d0360bc31cda21a724f8f4d65668eed276890f6187acef43fafe939c67a080251f1d4bdcb05f21c3ac9957afdef0a7b +SHA512 (testdata-0.11.1.tar.gz) = e775be0e8a56a828a4b70a174c841b3d474dbd170d899c50343896b21e46c6ae20f017f905ad7b83e097031e8add2788a00b1c452aa22e159b1f3a4e72a47155 diff --git a/update_third_party.sh b/update_third_party.sh index ab8f567..70ba696 100755 --- a/update_third_party.sh +++ b/update_third_party.sh @@ -15,5 +15,6 @@ rm -rvf third_party/libpng/ rm -rvf third_party/skcms/profiles/ rm -rvf third_party/zlib tar -zcf ../third_party-${VERSION}.tar.gz third_party/ +tar -zcf ../testdata-${VERSION}.tar.gz testdata/ cd .. rm -rf libjxl/ From 4aa1c6f773479fe611266b6d61fb7b6ea88f5306 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 4 Sep 2025 16:58:52 -0500 Subject: [PATCH 10/12] Disable the pixbuf loader and thumbnailer Due to changes in gdk-pixbuf, the jpegxl pixbuf loader now has lower precedence than glycin and will no longer ever be used. Also, the gdk-pixbuf-thumbnailer no longer exists, so this thumbnailer is guaranteed to fail. For more information, see: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/7FTIVJJM5CJSJ6GIX4FV6JDUCT2NW5FY/ https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/229 --- jpegxl.spec | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/jpegxl.spec b/jpegxl.spec index 25877c3..f15e902 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -7,8 +7,6 @@ %global sover_old 0.10 %global sover 0.11 -%global gdk_pixbuf_moduledir $(pkgconf gdk-pixbuf-2.0 --variable=gdk_pixbuf_moduledir) - %bcond_with gimp_plugin %if 0%{?fedora} %bcond_without tcmalloc @@ -77,12 +75,13 @@ Provides: bundled(sjpeg) = 0-0.1.20230608gite5ab130 # Build system is Bazel, which is not packaged by Fedora Provides: bundled(skcms) = 0-0.1.20240122git51b7f2a +Obsoletes: jxl-pixbuf-loader < %{epoch}:%{version}-%{release} + %description %common_description %package -n libjxl-utils Summary: Utilities for manipulating JPEG XL images -Recommends: jxl-pixbuf-loader = %{epoch}:%{version}-%{release} Recommends: gimp-jxl-plugin = %{epoch}:%{version}-%{release} Provides: jpegxl-utils = %{epoch}:%{version}-%{release} Obsoletes: jpegxl-utils < 0.3.7-5 @@ -111,7 +110,6 @@ Documentation for JPEG-XL. %package -n libjxl Summary: Library files for JPEG-XL Requires: shared-mime-info -Recommends: jxl-pixbuf-loader = %{epoch}:%{version}-%{release} Provides: jpegxl-libs = %{epoch}:%{version}-%{release} Obsoletes: jpegxl-libs < 0.3.7-5 %if %{without gimp_plugin} @@ -134,14 +132,6 @@ Obsoletes: jpegxl-devel < 0.3.7-5 Development files for JPEG-XL. -%package -n jxl-pixbuf-loader -Summary: JPEG-XL image loader for GTK+ applications -BuildRequires: pkgconfig(gdk-pixbuf-2.0) -Requires: gdk-pixbuf2 - -%description -n jxl-pixbuf-loader -Jxl-pixbuf-loader contains a plugin to load JPEG-XL images in GTK+ applications. - %if %{with gimp_plugin} %package -n gimp-jxl-plugin Summary: A plugin for loading and saving JPEG-XL images @@ -162,6 +152,7 @@ rm -rf testdata/ third_party/ -DINSTALL_GTEST:BOOL=OFF \ -DJPEGXL_ENABLE_BENCHMARK:BOOL=OFF \ -DJPEGXL_ENABLE_PLUGINS:BOOL=ON \ + -DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF:BOOL=OFF \ -DJPEGXL_FORCE_SYSTEM_BROTLI:BOOL=ON \ -DJPEGXL_FORCE_SYSTEM_GTEST:BOOL=ON \ -DJPEGXL_FORCE_SYSTEM_HWY:BOOL=ON \ @@ -232,8 +223,6 @@ cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %{_libdir}/libjxl_threads.so.%{sover_old}* %{_libdir}/libjxl_cms.so.%{sover_old}* %endif -%dir %{_datadir}/thumbnailers -%{_datadir}/thumbnailers/jxl.thumbnailer %{_datadir}/mime/packages/image-jxl.xml %files -n libjxl-devel @@ -247,10 +236,6 @@ cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %{_libdir}/pkgconfig/libjxl_threads.pc %{_libdir}/pkgconfig/libjxl_cms.pc -%files -n jxl-pixbuf-loader -%license LICENSE -%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-jxl.so - %if %{with gimp_plugin} %files -n gimp-jxl-plugin %license LICENSE From fbe00f38463fe57c21d2f379bad4f9a0bc62b55f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 13 Oct 2025 11:06:02 +0200 Subject: [PATCH 11/12] Move jxl-pixbuf-loader Obsoletes to the correct subpackage --- jpegxl.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jpegxl.spec b/jpegxl.spec index f15e902..6c58c88 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -75,8 +75,6 @@ Provides: bundled(sjpeg) = 0-0.1.20230608gite5ab130 # Build system is Bazel, which is not packaged by Fedora Provides: bundled(skcms) = 0-0.1.20240122git51b7f2a -Obsoletes: jxl-pixbuf-loader < %{epoch}:%{version}-%{release} - %description %common_description @@ -112,6 +110,7 @@ Summary: Library files for JPEG-XL Requires: shared-mime-info Provides: jpegxl-libs = %{epoch}:%{version}-%{release} Obsoletes: jpegxl-libs < 0.3.7-5 +Obsoletes: jxl-pixbuf-loader < %{epoch}:%{version}-%{release} %if %{without gimp_plugin} Obsoletes: gimp-jxl-plugin < 1:0.10.3-4 %endif From ec1bcb6edd4635bd18be2b7969b2092b6cf39fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Sun, 7 Dec 2025 16:42:13 +0100 Subject: [PATCH 12/12] Fix FTBFS with Clang 22 --- jpegxl.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/jpegxl.spec b/jpegxl.spec index 6c58c88..f17a415 100644 --- a/jpegxl.spec +++ b/jpegxl.spec @@ -1,6 +1,8 @@ # epel 8 need this other already have it %undefine __cmake_in_source_build +# developper recommendation +%global toolchain clang # Uncomment for special build to rebuild aom on bumped soname. #global new_soname 1 @@ -37,7 +39,7 @@ Source2: testdata-%{version}.tar.gz BuildRequires: asciidoc BuildRequires: cmake BuildRequires: doxygen -BuildRequires: gcc-c++ +BuildRequires: clang BuildRequires: giflib-devel %if %{with tcmalloc} BuildRequires: gperftools-devel @@ -146,6 +148,7 @@ rm -rf testdata/ third_party/ %setup -q -T -D -a 1 -a 2 -n libjxl-%{version} %build +export CC=clang CXX=clang++ %cmake -DENABLE_CCACHE=1 \ -DBUILD_TESTING=ON \ -DINSTALL_GTEST:BOOL=OFF \ diff --git a/sources b/sources index 30cd74c..f7d352f 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (jpegxl-0.11.1.tar.gz) = 0cfd81d9d3b783f96bd04f244d73ffbc12186c89993d46064a2751bef0a446a5e86be05add5c10f60d4482d39333d9bf3f9a866d6eb84f8fa0d4e8b5828fd74c -SHA512 (third_party-0.11.1.tar.gz) = f76e20360594e010f1a04e5522e879f65d0360bc31cda21a724f8f4d65668eed276890f6187acef43fafe939c67a080251f1d4bdcb05f21c3ac9957afdef0a7b SHA512 (testdata-0.11.1.tar.gz) = e775be0e8a56a828a4b70a174c841b3d474dbd170d899c50343896b21e46c6ae20f017f905ad7b83e097031e8add2788a00b1c452aa22e159b1f3a4e72a47155 +SHA512 (third_party-0.11.1.tar.gz) = 720544bd722cbc6ef81db660786e4b022f156d05672b7d7ee6110d367272dcf22a35458f51e0d850df2f6fb368978c43fa4fff99763010360a8b5673d2e556ca