|
|
|
@ -12,12 +12,12 @@ License: GPLv3+
|
|
|
|
|
|
|
|
|
|
URL: http://%{name}.org
|
|
|
|
|
Source0: https://github.com/pornel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: https://github.com/ImageOptim/libimagequant/archive/%{version}/%{libname}-%{version}.tar.gz
|
|
|
|
|
Patch1: pngquant-2.9.2-Makefile.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: libpng-devel >= 1.2.46-1
|
|
|
|
|
BuildRequires: zlib-devel >= 1.2.3-1
|
|
|
|
|
BuildRequires: lcms2-devel
|
|
|
|
|
BuildRequires: %{libname}-devel >= %{version}-%{release}
|
|
|
|
|
Requires: libpng%{?_isa} >= 1.2.46-1
|
|
|
|
|
Requires: zlib%{?_isa} >= 1.2.3-1
|
|
|
|
|
Requires: %{libname}%{?_isa} = %{version}-%{release}
|
|
|
|
@ -31,33 +31,10 @@ Internet Explorer 6. Quantized files are often 40-70 percent smaller than
|
|
|
|
|
their 24/32-bit version. %{name} uses the median cut algorithm.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
|
Summary: Small, portable C lib for HQ conversion of RGBA to 8-bit indexed-color
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
|
%{libname} converts 24/32-bit RGBA PNG images to 8-bit palette with alpha
|
|
|
|
|
channel preserved. Such images are compatible with all modern web browsers and
|
|
|
|
|
a compatibility setting is available to help transparency degrade well in
|
|
|
|
|
Internet Explorer 6. Quantized files are often 40-70 percent smaller than
|
|
|
|
|
their 24/32-bit version. %{libname} uses the median cut algorithm.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{libname}-devel
|
|
|
|
|
Summary: Development files for %{libname}
|
|
|
|
|
Requires: %{libname}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{libname}-devel
|
|
|
|
|
This package contains files for development with %{libname}.
|
|
|
|
|
There is also some brief API-documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -a1
|
|
|
|
|
rmdir lib/
|
|
|
|
|
mv %{libname}-%{version} lib
|
|
|
|
|
#rm lib/configure
|
|
|
|
|
%setup -q
|
|
|
|
|
ln -s /usr/include/libimagequant.h lib/
|
|
|
|
|
ln -s %{_libdir}/libimagequant.so lib
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -72,42 +49,22 @@ mv %{libname}-%{version} lib
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/imagequant \
|
|
|
|
|
%{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
|
|
# install libimagequant
|
|
|
|
|
install -pm 0755 lib/%{libname}.so.0 \
|
|
|
|
|
%{buildroot}%{_libdir}
|
|
|
|
|
ln -fs %{libname}.so.0 %{buildroot}%{_libdir}/%{libname}.so
|
|
|
|
|
|
|
|
|
|
install -pm 0644 lib/*.h \
|
|
|
|
|
%{buildroot}%{_includedir}/imagequant
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test SHARED=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md CHANGELOG
|
|
|
|
|
%license COPYRIGHT
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
|
%license lib/COPYRIGHT
|
|
|
|
|
%{_libdir}/%{libname}.so.*
|
|
|
|
|
|
|
|
|
|
%files -n %{libname}-devel
|
|
|
|
|
%doc lib/README.md
|
|
|
|
|
%{_includedir}/imagequant
|
|
|
|
|
%{_libdir}/%{libname}.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Apr 16 2017 Sérgio Basto <sergio@serjux.com> - 2.9.1-1
|
|
|
|
|
* Wed Apr 19 2017 Sérgio Basto <sergio@serjux.com> - 2.9.1-2
|
|
|
|
|
- Update pngquant to 2.9.1
|
|
|
|
|
- Update Makefile to better handle build the shared libraries
|
|
|
|
|
- Remove libimagequant sub-package and use the new libimagequant package.
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|