forked from kornelski/pngquant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pngquant.spec
58 lines (43 loc) · 1.65 KB
/
pngquant.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Name: pngquant
Version: 1.8.3
Release: 1%{?dist}
Summary: PNG quantization tool for reducing image file size
License: BSD
URL: http://pngquant.org
Source0: https://github.com/pornel/improved-pngquant/tarball/%{version}
BuildRequires: libpng-devel%{?_isa} >= 1.2.46-1
BuildRequires: zlib-devel%{?_isa} >= 1.2.3-1
BuildRequires: gcc%{?_isa} >= 4.2-1
Requires: libpng%{?_isa} >= 1.2.46-1
Requires: zlib%{?isa} >= 1.2.3-1
%description
pngquant 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. pngquant uses the
median cut algorithm.
%prep
%setup -q -n pornel-improved-pngquant-6f6e12c
%build
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
install -Dpm0644 pngquant.1 %{buildroot}/%{_mandir}/man1/pngquant.1
%files
%defattr(-,root,root,-)
%doc README.md CHANGELOG COPYRIGHT
%{_bindir}/pngquant
%{_mandir}/man1/pngquant.1*
%changelog
* Thu May 03 2012 Craig Barnes <[email protected]> - 1.7.2-1
- Update to latest upstream version
* Sun Jan 15 2012 Craig Barnes <[email protected]> - 1.7.0-1
- Update to latest upstream version
* Mon Jan 09 2012 Craig Barnes <[email protected]> - 1.6.4-1
- Update to latest version
- Remove Makefile patch (merged upstream)
- Use prefix macro when installing (upstream changed the default prefix)
* Wed Dec 28 2011 Craig Barnes <[email protected]> - 1.6.2-1
- Initial package