2022-07-25 09:36:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package libjxl
|
|
|
|
#
|
2023-01-18 16:38:19 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-07-25 09:36:35 +02:00
|
|
|
#
|
|
|
|
# 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: libjxl
|
2023-01-18 16:38:19 +01:00
|
|
|
%define lname libjxl0_8
|
2023-09-21 15:35:08 +02:00
|
|
|
%bcond_without gtk
|
2023-06-14 15:12:54 +02:00
|
|
|
Version: 0.8.2
|
2022-07-25 09:36:35 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: JPEG XL reference implementation
|
2022-07-25 11:50:24 +02:00
|
|
|
License: BSD-3-Clause
|
2022-07-25 09:36:35 +02:00
|
|
|
URL: https://jpegxl.info/
|
2022-09-22 12:03:17 +02:00
|
|
|
#Git-Clone: https://github.com/libjxl/libjxl
|
|
|
|
Source: https://github.com/libjxl/libjxl/archive/refs/tags/v%version.tar.gz
|
2022-12-16 20:54:48 +01:00
|
|
|
Source1: baselibs.conf
|
2023-09-21 15:35:08 +02:00
|
|
|
Source2: skcms.tar
|
2022-07-25 09:36:35 +02:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: pkg-config
|
2023-09-21 15:35:08 +02:00
|
|
|
%if %{with gtk}
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.36
|
|
|
|
BuildRequires: pkgconfig(gimp-2.0) >= 2.10
|
|
|
|
BuildRequires: pkgconfig(gimpui-2.0) >= 2.10
|
|
|
|
%endif
|
2022-07-25 09:36:35 +02:00
|
|
|
BuildRequires: pkgconfig(libbrotlicommon)
|
|
|
|
BuildRequires: pkgconfig(libbrotlidec)
|
|
|
|
BuildRequires: pkgconfig(libbrotlienc)
|
2022-09-22 12:03:17 +02:00
|
|
|
BuildRequires: pkgconfig(libhwy) >= 1.0
|
2023-01-18 16:38:19 +01:00
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
2023-02-10 10:58:50 +01:00
|
|
|
%{?suse_build_hwcaps_libs}
|
2023-09-21 15:35:08 +02:00
|
|
|
%if %{with gtk}
|
|
|
|
Provides: bundled(skcms) = 0
|
|
|
|
%endif
|
2022-07-25 09:36:35 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
JPEG XL is a raster-graphics file format that supports both lossy and
|
|
|
|
lossless compression.
|
|
|
|
|
|
|
|
This is the reference implementation of JPEG XL, with encoder and decoder.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library for encoding and decoding JPEG XL raster graphic images
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
JPEG XL is a raster-graphics file format that supports both lossy and
|
|
|
|
lossless compression.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development for libjxl, an en-/decoder for JPEG XL
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
JPEG XL is a raster-graphics file format that supports both lossy and
|
|
|
|
lossless compression.
|
|
|
|
|
|
|
|
This is the reference implementation of JPEG XL, with encoder and decoder.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Command-line utilities to convert from/to JPEG XL
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Command-line utilities to convert from/to JPEG XL.
|
|
|
|
|
2023-09-21 15:35:08 +02:00
|
|
|
%package -n gdk-pixbuf-loader-jxl
|
|
|
|
Summary: A gdk-pixbuf loader for JPEG-XL using libjxl
|
|
|
|
Supplements: (%lname and gdk-pixbuf)
|
|
|
|
%gdk_pixbuf_loader_requires
|
|
|
|
|
|
|
|
%description -n gdk-pixbuf-loader-jxl
|
|
|
|
This package provides a libjxl-based gdk-pixbuf loader for JPEG XL files.
|
|
|
|
|
|
|
|
%package -n gimp-plugin-jxl
|
|
|
|
Summary: Plugin for GIMP to enable working with JPEG XL files
|
|
|
|
Supplements: (%lname and gimp)
|
|
|
|
|
|
|
|
%description -n gimp-plugin-jxl
|
|
|
|
This package provides a plugin for GIMP 2.0 to enable it to work with JPEG XL files.
|
|
|
|
|
|
|
|
%package -n jxl-thumbnailer
|
|
|
|
Summary: Generate thumbnails for JPEG XL files
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n jxl-thumbnailer
|
|
|
|
This package provides a thumbnailer to render for JPEG XL file thumbnails,
|
|
|
|
for example, on file-browsers.
|
|
|
|
|
2022-07-25 09:36:35 +02:00
|
|
|
%prep
|
2023-09-21 15:35:08 +02:00
|
|
|
%setup -a2
|
|
|
|
mv skcms third_party/
|
2022-07-25 09:36:35 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DJPEGXL_FORCE_SYSTEM_HWY=ON -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \
|
2023-09-21 15:35:08 +02:00
|
|
|
-DJPEGXL_FORCE_SYSTEM_LCMS2=OFF -DBUILD_TESTING=OFF \
|
|
|
|
%if %{with gtk}
|
|
|
|
-DJPEGXL_ENABLE_PLUGINS=ON -DJPEGXL_ENABLE_SKCMS=ON \
|
|
|
|
%endif
|
2022-07-25 09:36:35 +02:00
|
|
|
-DJPEGXL_ENABLE_SJPEG=OFF
|
2023-06-09 11:35:24 +02:00
|
|
|
%cmake_build
|
2022-07-25 09:36:35 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
rm -fv %buildroot/%_libdir/*.a
|
|
|
|
|
2023-06-09 11:35:24 +02:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2022-07-25 09:36:35 +02:00
|
|
|
|
2023-09-21 15:35:08 +02:00
|
|
|
%post -n gdk-pixbuf-loader-jxl
|
|
|
|
%gdk_pixbuf_loader_post
|
|
|
|
|
|
|
|
%postun -n gdk-pixbuf-loader-jxl
|
|
|
|
%gdk_pixbuf_loader_postun
|
|
|
|
|
2022-07-25 09:36:35 +02:00
|
|
|
%files -n %lname
|
2022-07-25 09:47:54 +02:00
|
|
|
%license LICENSE
|
2022-07-25 09:36:35 +02:00
|
|
|
%_libdir/libjxl*.so.*
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%_bindir/cjpeg_hdr
|
|
|
|
%_bindir/*xl*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/jxl/
|
|
|
|
%_libdir/libjxl.so
|
|
|
|
%_libdir/libjxl_threads.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
2023-09-21 15:35:08 +02:00
|
|
|
%if %{with gtk}
|
|
|
|
%files -n gdk-pixbuf-loader-jxl
|
|
|
|
%_libdir/gdk-pixbuf-2.0/*/loaders/libpixbufloader-jxl.so
|
|
|
|
|
|
|
|
%files -n gimp-plugin-jxl
|
|
|
|
%_libdir/gimp/2.0/plug-ins/file-jxl/
|
|
|
|
|
|
|
|
%files -n jxl-thumbnailer
|
|
|
|
%dir %_datadir/thumbnailers
|
|
|
|
%_datadir/thumbnailers/*.thumbnailer
|
|
|
|
%_datadir/mime/packages/*.xml
|
|
|
|
%endif
|
|
|
|
|
2022-07-25 09:36:35 +02:00
|
|
|
%changelog
|