Initial import (#962820)
parent
9b00aa6b65
commit
f910b51411
@ -0,0 +1 @@
|
|||||||
|
/pngquant-1.8.3-src.tar.bz2
|
@ -0,0 +1,64 @@
|
|||||||
|
#just in case this will be a must in future.
|
||||||
|
%global _hardened_build 1
|
||||||
|
|
||||||
|
Name: pngquant
|
||||||
|
Version: 1.8.3
|
||||||
|
Release: 2%{?dist}
|
||||||
|
Summary: PNG quantization tool for reducing image file size
|
||||||
|
License: BSD with advertising
|
||||||
|
URL: http://%{name}.org
|
||||||
|
Source0: http://%{name}.org/%{name}-%{version}-src.tar.bz2
|
||||||
|
|
||||||
|
BuildRequires: libpng-devel
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{name} 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. %{name} uses the
|
||||||
|
median cut algorithm.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Using {C,LD}FLAGSADD here makes sure {optflags}
|
||||||
|
# are appended to {C,LD}FLAGS set in Makefile.
|
||||||
|
|
||||||
|
make %{?_smp_mflags} \
|
||||||
|
CFLAGSADD="%{optflags}" \
|
||||||
|
LDFLAGSADD="%{optflags}"
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
# repeating {C,LD}FLAGSADD from plain `make`
|
||||||
|
# is required during install or `make install`
|
||||||
|
# will start recompiling source without them.
|
||||||
|
|
||||||
|
%make_install \
|
||||||
|
PREFIX=%{_prefix} \
|
||||||
|
CFLAGSADD="%{optflags}" \
|
||||||
|
LDFLAGSADD="%{optflags}"
|
||||||
|
|
||||||
|
install -Dpm0644 %{name}.1 \
|
||||||
|
%{buildroot}/%{_mandir}/man1/%{name}.1
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md CHANGELOG COPYRIGHT
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_mandir}/man1/%{name}.1*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri May 17 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-2
|
||||||
|
- changed License: BSD --> BSD with advertising
|
||||||
|
- removed -n{name}-{version} from prep
|
||||||
|
- removed >= 1.2.46-1 from BuildRequires: libpng-devel
|
||||||
|
|
||||||
|
* Tue May 14 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-1
|
||||||
|
- Initial RPM release.
|
Loading…
Reference in new issue