Stefan Brüns 2019-03-20 15:30:32 +00:00 committed by Git OBS Bridge
parent 26644bf480
commit fa7fda26e3
4 changed files with 22 additions and 12 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ec2cbfcf910a64479a03846798615914e8aa430075c9d84a6e3a714d04217e6
size 74079

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23ccecb4898ec17474914cfd2fbc4684425f7fd249117f2f1e3f3ba0bf8159e6
size 75611

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
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>

View File

@ -12,20 +12,22 @@
# 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/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 0
%define libname %{name}%{sover}
Name: libimagequant
Version: 2.11.3
Version: 2.12.2
Release: 0
Summary: Palette quantization library
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
URL: https://github.com/ImageOptim/libimagequant
Url: https://pngquant.org/lib/
Source: https://github.com/ImageOptim/libimagequant/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(lcms2)
%description
C library for conversion of RGBA images to 8-bit indexed-color
@ -53,14 +55,14 @@ C library for conversion of RGBA images to 8-bit indexed-color
%build
# This is not an autoconf configure, but the script simply ignores parameters it does not know
%configure
make %{?_smp_mflags} shared
%configure --with-openmp
make %{?_smp_mflags}
%install
# Manual installation, the Makefile has no install target
install -Dpm 0755 %{name}.so.0 %{buildroot}%{_libdir}/%{name}.so.0
ln -s %{name}.so.0 %{buildroot}%{_libdir}/%{name}.so
install -Dpm 0644 %{name}.h %{buildroot}%{_includedir}/%{name}.h
%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
@ -73,5 +75,6 @@ install -Dpm 0644 %{name}.h %{buildroot}%{_includedir}/%{name}.h
%files devel
%{_libdir}/%{name}.so
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/imagequant.pc
%changelog