diff --git a/.libimagequant.metadata b/.libimagequant.metadata new file mode 100644 index 0000000..5dd91e1 --- /dev/null +++ b/.libimagequant.metadata @@ -0,0 +1 @@ +edfac4d288c1191f5df170e4b694ceaf1f6b8649 SOURCES/libimagequant-2.14.1.tar.gz diff --git a/SOURCES/libimagequant_solibperm.patch b/SOURCES/libimagequant_solibperm.patch new file mode 100644 index 0000000..4a1d7d2 --- /dev/null +++ b/SOURCES/libimagequant_solibperm.patch @@ -0,0 +1,12 @@ +diff -rupN --no-dereference libimagequant-2.14.1/Makefile libimagequant-2.14.1-new/Makefile +--- libimagequant-2.14.1/Makefile 2021-02-28 19:12:44.000000000 +0100 ++++ libimagequant-2.14.1-new/Makefile 2021-03-03 00:00:30.634870628 +0100 +@@ -115,7 +115,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/SPECS/libimagequant.spec b/SPECS/libimagequant.spec new file mode 100644 index 0000000..ec26976 --- /dev/null +++ b/SPECS/libimagequant.spec @@ -0,0 +1,162 @@ +Name: libimagequant +Version: 2.14.1 +Release: 1%{?dist} +Summary: Palette quantization library + +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 +BuildRequires: make + +%description +Small, portable C library for high-quality conversion of RGBA images to 8-bit +indexed-color (palette) images. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -p1 + + +%build +%configure --with-openmp +%make_build + + +%install +%make_install + +# Don't ship static library +rm -f %{buildroot}%{_libdir}/%{name}.a + + +%ldconfig_scriptlets + + +%files +%license COPYRIGHT +%doc README.md CHANGELOG +%{_libdir}/%{name}.so.0 + +%files devel +%{_includedir}/%{name}.h +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/imagequant.pc + + +%changelog +* Wed Mar 03 2021 Sandro Mani - 2.14.1-1 +- Update to 2.14.1 + +* Thu Jan 28 2021 Sandro Mani - 2.14.0-1 +- Update to 2.14.0 + +* Tue Jan 26 2021 Fedora Release Engineering - 2.13.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Nov 22 2020 Sandro Mani - 2.13.1-1 +- Update to 2.13.1 + +* Mon Oct 19 2020 Sandro Mani - 2.13.0-1 +- Update to 2.13.0 + +* Tue Jul 28 2020 Fedora Release Engineering - 2.12.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 2.12.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Dec 30 2019 Sandro Mani - 2.12.6-1 +- Update to 2.12.6 + +* Mon Jul 29 2019 Sandro Mani - 2.12.5-1 +- Update to 2.12.5 + +* Thu Jul 25 2019 Fedora Release Engineering - 2.12.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon May 27 2019 Sandro Mani - 2.12.3-1 +- Update to 2.12.3 + +* Fri Feb 01 2019 Fedora Release Engineering - 2.12.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Oct 29 2018 Sandro Mani - 2.12.2-1 +- Update to 2.12.2 + +* Fri Jul 13 2018 Fedora Release Engineering - 2.12.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* 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 + +* Wed Mar 07 2018 Adam Williamson - 2.11.7-3 +- Rebuild to fix GCC 8 mis-compilation + See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64") + +* Wed Feb 07 2018 Fedora Release Engineering - 2.11.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 19 2018 Sandro Mani - 2.11.7-1 +- Update to 2.11.7 + +* Thu Jan 18 2018 Sandro Mani - 2.11.6-1 +- Update to 2.11.6 + +* Mon Nov 27 2017 Sandro Mani - 2.11.4-1 +- Update to 2.11.4 + +* Sat Nov 11 2017 Sandro Mani - 2.11.3-1 +- Update to 2.11.3 + +* Sun Nov 05 2017 Sandro Mani - 2.11.2-1 +- Update to 2.11.2 + +* Mon Oct 30 2017 Sandro Mani - 2.11.0-1 +- Update to 2.11.0 + +* Tue Aug 08 2017 Sandro Mani - 2.10.2-1 +- Update to 2.10.2 + +* Thu Aug 03 2017 Fedora Release Engineering - 2.10.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.10.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jul 09 2017 Sandro Mani - 2.10.1-1 +- Update to 2.10.1 + +* Mon Jul 03 2017 Sandro Mani - 2.10.0-1 +- Update to 2.10.0 + +* Thu Apr 06 2017 Sandro Mani - 2.9.1-1 +- Update to 2.9.1 + +* Sat Mar 04 2017 Sandro Mani - 2.9.0-1 +- Update to 2.9.0 + +* Fri Feb 10 2017 Fedora Release Engineering - 2.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Jan 02 2017 Sandro Mani - 2.8.2-2 +- Use %%name and %%url to reduce text + +* Mon Jan 02 2017 Sandro Mani - 2.8.2-1 +- Initial package