diff --git a/libimagequant-2.11.3.tar.gz b/libimagequant-2.11.3.tar.gz deleted file mode 100644 index 48f36d1..0000000 --- a/libimagequant-2.11.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ec2cbfcf910a64479a03846798615914e8aa430075c9d84a6e3a714d04217e6 -size 74079 diff --git a/libimagequant-2.12.2.tar.gz b/libimagequant-2.12.2.tar.gz new file mode 100644 index 0000000..71ac271 --- /dev/null +++ b/libimagequant-2.12.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23ccecb4898ec17474914cfd2fbc4684425f7fd249117f2f1e3f3ba0bf8159e6 +size 75611 diff --git a/libimagequant.changes b/libimagequant.changes index f1fa142..a762584 100644 --- a/libimagequant.changes +++ b/libimagequant.changes @@ -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 diff --git a/libimagequant.spec b/libimagequant.spec index f43ba9a..a77aedb 100644 --- a/libimagequant.spec +++ b/libimagequant.spec @@ -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