Sync from SUSE:SLFO:Main libimagequant revision 21a9188b11245c74b15d5b42e9a29336

This commit is contained in:
Adrian Schröter 2024-05-03 15:07:15 +02:00
parent 07328d7ee3
commit 6e45c79f67
4 changed files with 183 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
libimagequant-2.18.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

73
libimagequant.changes Normal file
View File

@ -0,0 +1,73 @@
-------------------------------------------------------------------
Sun Jan 29 18:44:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.18:
- added more perceptually-weighed color selection
- dropped problematic omp_set_nested()
- fixed a rare memory leak
-------------------------------------------------------------------
Mon Aug 8 16:00:39 UTC 2022 - Dirk Müller <dmueller@suse.com>
- disable sse on non-x86 architectures
-------------------------------------------------------------------
Sat Nov 27 12:55:13 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 2.17.0:
* Do not build as unversioned DSO
* use float as in SSE
* Initialize rows using heap to handle large images
* Free rows after remapping
* Disable SSE on arm64
-------------------------------------------------------------------
Sun Jun 6 13:00:05 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 2.15.1:
- speed and quality improvements
-------------------------------------------------------------------
Sat May 8 18:10:01 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 2.14.1:
* improved Rust API
* quality improvements for remapping overlays over a background
-------------------------------------------------------------------
Wed Dec 23 09:01:34 UTC 2020 - Dirk Müller <dmueller@suse.com>
- update to 2.13.1:
* Support OpenMP in clang
* speed improvements
-------------------------------------------------------------------
Sat Aug 15 23:47:10 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 2.12.6:
* Use size_t for malloc_sizes
- remove gcc9-Update-const-var-openmp-const-var-handling.patch (upstream)
-------------------------------------------------------------------
Tue May 14 08:55:03 UTC 2019 - Martin Liška <mliska@suse.cz>
- Add gcc9-Update-const-var-openmp-const-var-handling.patch in order
to handle boo#1134979.
-------------------------------------------------------------------
Fri Feb 15 07:37:14 UTC 2019 - munix9@googlemail.com
- update to version 2.12.2
* new liq_histogram_add_fixed_color()
* faster for large/complex images
-------------------------------------------------------------------
Wed Feb 13 18:01:31 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Ensure neutrality of descriptions.
-------------------------------------------------------------------
Thu Nov 16 15:42:54 UTC 2017 - dimstar@opensuse.org
- Initial package, version 2.11.3 (library got split out from
pngquant).

84
libimagequant.spec Normal file
View File

@ -0,0 +1,84 @@
#
# spec file for package libimagequant
#
# Copyright (c) 2023 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/
#
%define sover 0
%define libname %{name}%{sover}
Name: libimagequant
Version: 2.18.0
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)
%description
C library for conversion of RGBA images to 8-bit indexed-color
(palette) images.
%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
(palette) images.
%package devel
Summary: Development files for libimagequant
Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
%description devel
C library for conversion of RGBA images to 8-bit indexed-color
(palette) images.
%prep
%setup -q
%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}
%install
%make_install
# work around --disable-static not working
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -print -delete
%post -n libimagequant0 -p /sbin/ldconfig
%postun -n libimagequant0 -p /sbin/ldconfig
%files -n libimagequant0
%doc README.md CHANGELOG
%license COPYRIGHT
%{_libdir}/%{name}.so.*
%files devel
%{_libdir}/%{name}.so
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/imagequant.pc
%changelog