2022-07-25 09:36:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package libjxl
|
|
|
|
#
|
|
|
|
# Copyright (c) 2022 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: libjxl
|
|
|
|
%define lname libjxl0_7
|
2022-09-22 10:38:19 +02:00
|
|
|
Version: 0.7.0
|
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
|
2022-12-19 13:01:00 +01:00
|
|
|
Patch0: 0001-Remove-LCMS-mutex.patch
|
2022-07-25 09:36:35 +02:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: pkg-config
|
2022-12-19 13:01:00 +01:00
|
|
|
BuildRequires: pkgconfig(lcms2) >= 2.10
|
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
|
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.
|
|
|
|
|
|
|
|
%prep
|
2022-12-19 13:01:00 +01:00
|
|
|
%setup -q
|
|
|
|
|
|
|
|
# libjxl 0.7.0 requires lcms2 >= 2.13, so if we have an older version
|
|
|
|
# (as in SLE15/Leap) just reverse the patch that adds that dependency
|
|
|
|
%if %{pkg_vcmp liblcms2-2 < 2.13}
|
|
|
|
%patch0 -p1 -R
|
|
|
|
%endif
|
2022-07-25 09:36:35 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DJPEGXL_FORCE_SYSTEM_HWY=ON -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \
|
|
|
|
-DJPEGXL_FORCE_SYSTEM_LCMS2=ON -DBUILD_TESTING=OFF \
|
|
|
|
-DJPEGXL_ENABLE_PLUGINS=OFF -DJPEGXL_ENABLE_SKCMS=OFF \
|
|
|
|
-DJPEGXL_ENABLE_SJPEG=OFF
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
rm -fv %buildroot/%_libdir/*.a
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%changelog
|