## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 # epel 8 need this other already have it %undefine __cmake_in_source_build # Uncomment for special build to rebuild aom on bumped soname. #%%global new_soname 1 %global sover_old 0.8 %global sover 0.10 %global gdk_pixbuf_moduledir $(pkgconf gdk-pixbuf-2.0 --variable=gdk_pixbuf_moduledir) %bcond_with gimp_plugin %if 0%{?fedora} %bcond_without tcmalloc %endif %global common_description %{expand: This package contains a reference implementation of JPEG XL (encoder and decoder).} Name: jpegxl Epoch: 1 Version: 0.10.3 Release: %autorelease %{?new_soname:-p -e 0~sonamebump} Summary: JPEG XL image format reference implementation # Main library: BSD # lodepng: zlib # sjpeg: ASL 2.0 # skcms: BSD 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 Source1: third_party-%{version}.tar.gz BuildRequires: asciidoc BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: giflib-devel %if %{with tcmalloc} BuildRequires: gperftools-devel %endif BuildRequires: ninja-build %if %{with gimp_plugin} BuildRequires: pkgconfig(gimp-3.0) %endif ## sjpeg examples are not built #BuildRequires: (pkgconfig(glut) or pkgconfig(freeglut)) BuildRequires: gtest-devel BuildRequires: gflags-devel BuildRequires: pkgconfig(libhwy) BuildRequires: pkgconfig(libbrotlicommon) BuildRequires: pkgconfig(lcms2) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) ## benchmark tools are not built #BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(OpenEXR) ## viewers are not built #BuildRequires: extra-cmake-modules #BuildRequires: pkgconfig(Qt5) #BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(zlib) # epel 8 need this other already have it BuildRequires: python3-devel %if 0%{?new_soname} BuildRequires: libjxl < %{epoch}:%{version} %endif # No official release Provides: bundled(sjpeg) = 0-0.1.20210522git868ab55 # Build system is Bazel, which is not packaged by Fedora Provides: bundled(skcms) = 0-0.1.20210522git6437475 %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 %description -n libjxl-utils %{common_description} %package -n libjxl-devtools Summary: Development tools for JPEG-XL Requires: libjxl%{?_isa} = %{epoch}:%{version}-%{release} %description -n libjxl-devtools %{common_description} Development tools for JPEG-XL %package doc Summary: Documentation for JPEG-XL BuildArch: noarch %description doc %{common_description} 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} Obsoletes: gimp-jxl-plugin < 1:0.10.3-4 %endif %description -n libjxl %{common_description} Library files for JPEG-XL. %package -n libjxl-devel Summary: Development files for JPEG-XL Requires: libjxl%{?_isa} = %{epoch}:%{version}-%{release} Provides: jpegxl-devel = %{epoch}:%{version}-%{release} Obsoletes: jpegxl-devel < 0.3.7-5 %description -n libjxl-devel %{common_description} 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 Requires: gimp %description -n gimp-jxl-plugin This is a GIMP plugin for loading and saving JPEG-XL images. %endif %prep %autosetup -p1 -n libjxl-%{version} rm -rf third_party/ %setup -q -T -D -a 1 -n libjxl-%{version} %build %cmake -DENABLE_CCACHE=1 \ -DBUILD_TESTING=OFF \ -DINSTALL_GTEST:BOOL=OFF \ -DJPEGXL_ENABLE_BENCHMARK:BOOL=OFF \ -DJPEGXL_ENABLE_PLUGINS:BOOL=ON \ -DJPEGXL_FORCE_SYSTEM_BROTLI:BOOL=ON \ -DJPEGXL_FORCE_SYSTEM_GTEST:BOOL=ON \ -DJPEGXL_FORCE_SYSTEM_HWY:BOOL=ON \ -DJPEGXL_WARNINGS_AS_ERRORS:BOOL=OFF \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUNDLE_LIBPNG_DEFAULT:BOOL=OFF \ -DBUNDLE_GFLAGS_DEFAULT:BOOL=OFF \ -DJPEGXL_ENABLE_DEVTOOLS=ON %cmake_build -- all doc %install %cmake_install #rm -v %{buildroot}%{_libdir}/*.a %if 0%{?new_soname} cp -p %{_libdir}/libjxl.so.%{sover_old}* \ %{_libdir}/libjxl_threads.so.%{sover_old}* \ %{buildroot}%{_libdir} %endif %files -n libjxl-utils %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}/pq_to_hlg %{_bindir}/render_hlg %{_bindir}/tone_map %{_bindir}/texture_to_cube %{_bindir}/generate_lut_template %{_bindir}/ssimulacra_main %{_bindir}/ssimulacra2 %{_bindir}/xyb_range %{_bindir}/jxl_from_tree %{_bindir}/local_tone_map %files doc %doc doc/*.md %doc %{_vpath_builddir}/html %license LICENSE %files -n libjxl %license LICENSE %{_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}* %endif %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/jxl.thumbnailer %{_datadir}/mime/packages/image-jxl.xml %files -n libjxl-devel %doc CONTRIBUTING.md %{_includedir}/jxl/ %{_libdir}/libjxl.so %{_libdir}/libjxl_threads.so %{_libdir}/libjxl_cms.so %{_libdir}/libjxl_extras_codec.so %{_libdir}/pkgconfig/libjxl.pc %{_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 %{_libdir}/gimp/2.0/plug-ins/file-jxl/ %endif %changelog ## START: Generated by rpmautospec * Tue Oct 29 2024 Sérgio M. Basto - 1:0.10.3-5 - Fix upgrade path * Thu Sep 19 2024 Sérgio M. Basto - 1:0.10.3-4 - Disable gimp_plugin, jpegxl don't support Gimp 3 yet * Thu Jul 18 2024 Fedora Release Engineering - 1:0.10.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jul 07 2024 Sérgio M. Basto - 1:0.10.3-2 - Fix generation of third_party sources * Sun Jul 07 2024 Packit - 1:0.10.3-1 - Update to 0.10.3 upstream release - Resolves: rhbz#2295526 * Sun Jul 07 2024 Sérgio M. Basto - 1:0.10.2-6 - Configure Packit for release automation * Tue Apr 23 2024 Orion Poplawski - 1:0.10.2-5 - Rebuild for openexr 3.2.4 * Wed Apr 17 2024 Sérgio M. Basto - 1:0.10.2-4 - BR pkgconfig(lcms2) directly to fix build on eln * Mon Mar 25 2024 Sérgio M. Basto - 1:0.10.2-3 - un-bootstrap * Wed Mar 13 2024 Sérgio M. Basto - 1:0.10.2-0.2.0~sonamebump - fix the build * Wed Mar 13 2024 Sérgio M. Basto - 1:0.10.2-0.1.0~sonamebump - bootstrap 0.10.2 to start soname bump of jpegxl * Wed Feb 14 2024 Sérgio M. Basto - 1:0.9.2-2 - un-bootstrap jpegxl * Wed Feb 14 2024 Sérgio M. Basto - 1:0.9.2-0.1.0~sonamebump - bootstrap 0.9.2 to build aom * Wed Jan 24 2024 Fedora Release Engineering - 1:0.8.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 1:0.8.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Aug 10 2023 Yaakov Selkowitz - 1:0.8.2-3 - Drop unused build dependencies * Thu Jul 20 2023 Fedora Release Engineering - 1:0.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 22 2023 Sérgio M. Basto - 1:0.8.2-1 - Update jpegxl to 0.8.2 * Tue Jun 20 2023 Yaakov Selkowitz - 1:0.8.1-3 - Disable unused Qt5 build dependencies * Sun Jun 18 2023 Sérgio M. Basto - 1:0.8.1-2 - unbootrap soname * Mon Apr 03 2023 Sérgio M. Basto - 1:0.8.1-0.1.0~sonamebump - Update to 0.8.1 with new soname - Drop patches because they are already in the code - Add update_third_party.sh helper script * Mon Apr 03 2023 Sérgio M. Basto - 1:0.7.0-7 - fix epel8 builds * Thu Jan 19 2023 Fedora Release Engineering - 1:0.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Dec 27 2022 Miroslav Suchý - 1:0.7.0-5 - add epoch back * Sat Nov 19 2022 Robert-André Mauchin - Convert to SPDX * Sun Sep 25 2022 Robert-André Mauchin - 1:0.7.0-3 - Fix typo * Sun Sep 25 2022 Robert-André Mauchin - Add Epoch to Provides. Close: rhbz#2129592 * Sun Sep 25 2022 Robert-André Mauchin - 1:0.7.0-1 - Fix update path (bump Epoch). Close: rhbz#2129592 * Sat Sep 24 2022 Robert-André Mauchin - 0.7.0-1 - Update to 0.7.0 * Sun Sep 18 2022 Robert-André Mauchin - 0.7.0rc-1 - Update to 0.7.0rc * Thu Jul 21 2022 Fedora Release Engineering - 0.7.0~pre1-0.3.0~sonamebump - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jul 09 2022 Robert-André Mauchin - 0.7.0~pre1-0.2.0~sonamebump - Unbootstrap * Sun Jun 19 2022 Robert-André Mauchin - 0.7.0~pre1-0.1.0~sonamebump - Update to prerelease 0.7.0 * Thu Jan 20 2022 Fedora Release Engineering - 0.6.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 17 2021 Robert-André Mauchin - 0.6.1-8 - Adapt for EPEL9 * Fri Dec 17 2021 Robert-André Mauchin - 0.6.1-7 - Remove clang reference in favor of gcc-c++ * Sun Nov 21 2021 Björn Esser - 0.6.1-6 - Drop manual release override * Sun Nov 21 2021 Björn Esser - 0.6.1-6 - Add manual release override * Sun Nov 21 2021 Björn Esser - 0.6.1-4 - Rebuild without soname bootstrap * Sun Nov 21 2021 Björn Esser - 0.6.1-3 - Fix BuildRequires when bumping soname * Sun Nov 21 2021 Björn Esser - 0.6.1-2 - Set explicit soname * Sun Nov 21 2021 Robert-André Mauchin - 0.6.1-1 - Update to 0.6.1 Close: rhbz#2018648 * Sat Oct 02 2021 Zbigniew Jędrzejewski-Szmek - 0.5-3 - Rebuild for OpenEXR/Imath 3.1 * Tue Sep 07 2021 Robert-André Mauchin - 0.5-2 - Rebuild. Close: rhbz#1997038 * Thu Aug 19 2021 Robert-André Mauchin - 0.5-1 - Update to 0.5 Close: rhbz#1994433 * Thu Jul 22 2021 Fedora Release Engineering - 0.3.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 15 2021 Adam Williamson - 0.3.7-3 - libs: drop Recommends: gimp-jxl-plugin to avoid pulling GIMP into Workstation * Mon May 31 21:07:22 CEST 2021 Robert-André Mauchin - 0.3.7-2 - Use Clang instead of GCC due to vector conversion strictness of GCC - Disable LTO on arm due to Clang 12.0.0 bug - Close: rhbz#1922638 * Mon May 17 20:49:39 CEST 2021 Robert-André Mauchin - 0.3.7-1 - Update to 0.3.7 * Sat Jan 30 17:10:24 CET 2021 Robert-André Mauchin - 0.3-1 - Update to 0.3 * Sat Dec 12 03:45:24 CET 2020 Robert-André Mauchin - 0.1.1-1 - Update to 0.1.1 * Wed Jul 15 17:00:49 CEST 2020 Robert-André Mauchin - 0.0.1-0.1.20200715git0a46d01c - Initial RPM ## END: Generated by rpmautospec