From 04ca16d14a45fa7a9f0c54cef79c499ec9f91968 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Tue, 3 Jan 2017 18:47:59 +0100 Subject: [PATCH] Initial import --- .gitignore | 1 + libimagequant.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 libimagequant.spec diff --git a/.gitignore b/.gitignore index e69de29..137bb75 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libimagequant-2.8.2.tar.gz diff --git a/libimagequant.spec b/libimagequant.spec new file mode 100644 index 0000000..01e5818 --- /dev/null +++ b/libimagequant.spec @@ -0,0 +1,61 @@ +Name: libimagequant +Version: 2.8.2 +Release: 2%{?dist} +Summary: Palette quantization library + +License: GPLv3+ and MIT +URL: https://github.com/ImageOptim/libimagequant +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc + +%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 + + +%build +%configure --with-openmp +%make_build shared + + +%install +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 + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%license COPYRIGHT +%doc README.md CHANGELOG +%{_libdir}/%{name}.so.0 + +%files devel +%{_includedir}/%{name}.h +%{_libdir}/%{name}.so + + +%changelog +* 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 diff --git a/sources b/sources index e69de29..1387092 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (libimagequant-2.8.2.tar.gz) = 91bd5b821c823fd6508643d412253a6d1b8173d76548d96a0c41e2a7cfd7f21c082d901d0412fa10906b9da0cd2430b48fcb8cb60ec88fac60e7f4565a00bb07