From 6ea6e6c11f7e81e82553c2c3bf2664bb27e23ad9 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Fri, 8 Jun 2018 15:47:17 +0200 Subject: [PATCH] Update to 2.12.1 --- .gitignore | 1 + libimagequant.spec | 13 +++++++++++-- libimagequant_solibperm.patch | 12 ++++++++++++ sources | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 libimagequant_solibperm.patch diff --git a/.gitignore b/.gitignore index 301012f..7d01610 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /libimagequant-2.11.6.tar.gz /libimagequant-2.11.7.tar.gz /libimagequant-2.11.10.tar.gz +/libimagequant-2.12.1.tar.gz diff --git a/libimagequant.spec b/libimagequant.spec index b56e554..c75e7ea 100644 --- a/libimagequant.spec +++ b/libimagequant.spec @@ -1,5 +1,5 @@ Name: libimagequant -Version: 2.11.10 +Version: 2.12.1 Release: 1%{?dist} Summary: Palette quantization library @@ -7,6 +7,9 @@ License: GPLv3+ and MIT URL: https://github.com/ImageOptim/libimagequant Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +# Fix shared library permissions +Patch0: libimagequant_solibperm.patch + BuildRequires: gcc %description @@ -29,12 +32,15 @@ developing applications that use %{name}. %build %configure --with-openmp -%make_build shared +%make_build %install %make_install +# Don't ship static library +rm -f %{buildroot}%{_libdir}/%{name}.a + %post -p /sbin/ldconfig @@ -53,6 +59,9 @@ developing applications that use %{name}. %changelog +* Fri Jun 08 2018 Sandro Mani - 2.12.1-1 +- Update to 2.12.1 + * Mon Mar 12 2018 Sandro Mani - 2.11.10-1 - Update to 2.11.10 diff --git a/libimagequant_solibperm.patch b/libimagequant_solibperm.patch new file mode 100644 index 0000000..841eeaa --- /dev/null +++ b/libimagequant_solibperm.patch @@ -0,0 +1,12 @@ +diff -rupN libimagequant-2.12.1/Makefile libimagequant-2.12.1-new/Makefile +--- libimagequant-2.12.1/Makefile 2018-06-03 21:46:28.000000000 +0200 ++++ libimagequant-2.12.1-new/Makefile 2018-06-08 15:44:20.705219935 +0200 +@@ -114,7 +114,7 @@ install: all $(PKGCONFIG) + install -d $(DESTDIR)$(PKGCONFIGDIR) + install -d $(DESTDIR)$(INCLUDEDIR) + install -m 644 $(STATICLIB) $(DESTDIR)$(LIBDIR)/$(STATICLIB) +- install -m 644 $(SHAREDLIBVER) $(DESTDIR)$(LIBDIR)/$(SHAREDLIBVER) ++ install -m 755 $(SHAREDLIBVER) $(DESTDIR)$(LIBDIR)/$(SHAREDLIBVER) + ln -sf $(SHAREDLIBVER) $(DESTDIR)$(LIBDIR)/$(SHAREDLIB) + install -m 644 $(PKGCONFIG) $(DESTDIR)$(PKGCONFIGDIR)/$(PKGCONFIG) + install -m 644 libimagequant.h $(DESTDIR)$(INCLUDEDIR)/libimagequant.h diff --git a/sources b/sources index acfb31b..facdb6d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libimagequant-2.11.10.tar.gz) = ac59ecd04d6a3a688cc4f9f77c063a59da8dc6f3ddd05bdc3b15b9809d057462fe5b712fdbfb38e975d633a1bd5179b8ae6b2aee765f5dd9dcfef107f5eb22c0 +SHA512 (libimagequant-2.12.1.tar.gz) = 2e65d1ccae4e885e200446756496c2446696f0d4c7057d85e40c9ab4d524fed5505584f21f240ce3a7c589b9156ccb117cf5b1562b4851f3fbf14bf11fed0f13