|
|
@ -1,7 +1,7 @@
|
|
|
|
%global libname libimagequant
|
|
|
|
%global libname libimagequant
|
|
|
|
|
|
|
|
|
|
|
|
Name: pngquant
|
|
|
|
Name: pngquant
|
|
|
|
Version: 2.3.1
|
|
|
|
Version: 2.3.2
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: PNG quantization tool for reducing image file size
|
|
|
|
Summary: PNG quantization tool for reducing image file size
|
|
|
|
%{?el5:Group: Applications/Multimedia}
|
|
|
|
%{?el5:Group: Applications/Multimedia}
|
|
|
@ -9,9 +9,9 @@ Summary: PNG quantization tool for reducing image file size
|
|
|
|
License: BSD with advertising
|
|
|
|
License: BSD with advertising
|
|
|
|
|
|
|
|
|
|
|
|
URL: http://%{name}.org
|
|
|
|
URL: http://%{name}.org
|
|
|
|
Source0: http://github.srcurl.net/pornel/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/pornel/pngquant/archive/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: %{name}-2.3.0_fix-Makefile.patch
|
|
|
|
Patch0: %{name}-2.3.2_fix-Makefile.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
|
|
|
|
%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
|
|
|
@ -62,11 +62,12 @@ rm lib/configure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
# this configure export compiler-flags properly
|
|
|
|
%configure || :
|
|
|
|
%configure || :
|
|
|
|
# export compiler-flags properly
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
./configure --prefix=%{_prefix} --enable-debug \
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%ifarch %{ix86}
|
|
|
|
--disable-sse \
|
|
|
|
--disable-sse
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} PREFIX=%{_prefix}
|
|
|
|
make %{?_smp_mflags} PREFIX=%{_prefix}
|
|
|
@ -94,6 +95,10 @@ install -pm 0644 lib/*.h \
|
|
|
|
install -pm 0644 %{name}.1 \
|
|
|
|
install -pm 0644 %{name}.1 \
|
|
|
|
%{buildroot}/%{_mandir}/man1/%{name}.1
|
|
|
|
%{buildroot}/%{_mandir}/man1/%{name}.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
|
|
|
|
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
install -Dpm0755 pngquant %{buildroot}/%{_bindir}/pngquant
|
|
|
|
|
|
|
|
install -Dpm0644 pngquant.1 %{buildroot}/%{_mandir}/man1/pngquant.1
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
%{?el5:rm -rf %{buildroot}}
|
|
|
|
%{?el5:rm -rf %{buildroot}}
|
|
|
@ -120,6 +125,9 @@ install -pm 0644 %{name}.1 \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Jan 07 2015 Sérgio Basto <sergio@serjux.com> - 2.3.2-1
|
|
|
|
|
|
|
|
- New bug fix release.
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 17 2014 Sérgio Basto <sergio@serjux.com> - 2.3.1-1
|
|
|
|
* Fri Oct 17 2014 Sérgio Basto <sergio@serjux.com> - 2.3.1-1
|
|
|
|
- New bug fixing release
|
|
|
|
- New bug fixing release
|
|
|
|
|
|
|
|
|
|
|
|