Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libimagequant for openSUSE:Factory checked in at 2026-10-20 12:35:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libimagequant (Old) and /work/SRC/openSUSE:Factory/.libimagequant.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libimagequant" Tue Oct 20 12:35:53 2026 rev:12 rq:1385983 version:4.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libimagequant/libimagequant.changes 2023-01-31 16:11:46.590649033 +0100 +++ /work/SRC/openSUSE:Factory/.libimagequant.new.3698736/libimagequant.changes 2026-10-20 12:36:11.007157078 +0200 @@ -1,0 +2,19 @@ +Sun Oct 18 05:59:50 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to 4.4.1 (major rewrite, same C API, SONAME 0 -> 0.4): + * Library rewritten in Rust; built with cargo-c instead of + configure/make. Shlib package renamed libimagequant0 to + libimagequant0_4. + * OpenMP support dropped in favor of rayon threads + (use RAYON_NUM_THREADS to control thread count). + * Version 4.1: improved dithering over preset background, + new remap_into_vec, fix for images over 16 megapixels. + * Version 4.2: reworked fixed palette color handling, support + for palettes larger than 256 colors. + * Version 4.3: performance improvements, copyable Image object. + * Version 4.4: palette quality improvements, new + Histogram::from_palette constructor. +- Packaging: fetch vendored sources via _service (cargo_vendor), + build with cargo-c; drop lcms2 BuildRequires (no longer used). + +------------------------------------------------------------------- Old: ---- libimagequant-2.18.0.tar.gz New: ---- _service libimagequant-4.4.1.tar.zst vendor.tar.zst ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libimagequant.spec ++++++ --- /var/tmp/diff_new_pack.Ma6fFO/_old 2026-10-20 12:36:12.255209108 +0200 +++ /var/tmp/diff_new_pack.Ma6fFO/_new 2026-10-20 12:36:12.257209191 +0200 @@ -1,7 +1,7 @@ # # spec file for package libimagequant # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,19 @@ # -%define sover 0 +%define sover 0_4 %define libname %{name}%{sover} Name: libimagequant -Version: 2.18.0 +Version: 4.4.1 Release: 0 Summary: Palette quantization library License: GPL-3.0-or-later -Group: Development/Languages/C and C++ URL: https://pngquant.org/lib/ -Source0: https://github.com/ImageOptim/libimagequant/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: pkgconfig -BuildRequires: pkgconfig(lcms2) +Source0: %{name}-%{version}.tar.zst +Source1: vendor.tar.zst +BuildRequires: cargo-c +BuildRequires: cargo-packaging +BuildRequires: rust >= 1.70 %description C library for conversion of RGBA images to 8-bit indexed-color @@ -35,7 +36,6 @@ %package -n %{libname} Summary: Palette quantization library -Group: System/Libraries %description -n %{libname} C library for conversion of RGBA images to 8-bit indexed-color @@ -43,7 +43,6 @@ %package devel Summary: Development files for libimagequant -Group: Development/Languages/C and C++ Requires: %{libname} = %{version} %description devel @@ -51,27 +50,29 @@ (palette) images. %prep -%setup -q +%autosetup -p1 -a1 %build -# This is not an autoconf configure, but the script simply ignores parameters it does not know -%configure \ -%ifnarch %ix86 x86_64 - --disable-sse \ -%endif - --with-openmp -make %{?_smp_mflags} +export RUSTFLAGS="%{build_rustflags}" +cd imagequant-sys +CFLAGS="%{optflags}" cargo cbuild --release --offline %install -%make_install +cd imagequant-sys +cargo cinstall --release --offline \ + --destdir=%{buildroot} \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} +# no static library in the shlib policy packages +rm -f %{buildroot}%{_libdir}/libimagequant.a + +%check +export RUSTFLAGS="%{build_rustflags}" +cargo test --release --offline -# work around --disable-static not working -find %{buildroot} \( -name '*.a' -o -name '*.la' \) -print -delete +%ldconfig_scriptlets -n %{libname} -%post -n libimagequant0 -p /sbin/ldconfig -%postun -n libimagequant0 -p /sbin/ldconfig - -%files -n libimagequant0 +%files -n %{libname} %doc README.md CHANGELOG %license COPYRIGHT %{_libdir}/%{name}.so.* ++++++ _service ++++++ <services> <service name="tar_scm" mode="disabled"> <param name="url">https://github.com/ImageOptim/libimagequant</param> <param name="scm">git</param> <param name="exclude">.git</param> <param name="revision">4.4.1</param> <param name="versionformat">@PARENT_TAG@</param> </service> <service name="set_version" mode="disabled"> <param name="basename">libimagequant</param> </service> <service name="recompress" mode="disabled"> <param name="file">*.tar</param> <param name="compression">zst</param> </service> <service name="cargo_vendor" mode="disabled"> <param name="srcdir">libimagequant</param> <param name="compression">zst</param> <param name="update">true</param> </service> <service name="cargo_audit" mode="disabled"> <param name="srcdir">libimagequant</param> </service> </services>
