]> git.pld-linux.org Git - packages/optipng.git/blame - optipng.spec
- updated to 0.6.4
[packages/optipng.git] / optipng.spec
CommitLineData
9c6befc7
JB
1#
2# Conditional build:
3%bcond_with system_libpng # use system libpng (forces system zlib; not ready for libpng 1.5)
4%bcond_with system_zlib # use system zlib (included one is slightly more aggressive)
5#
6%if %{with system_libpng}
7%define system_zlib 1
8%endif
ee71da82 9Summary: Optimizer for png files
ef696059
ER
10Summary(pl.UTF-8): Optymalizator plików png
11Summary(pt_BR.UTF-8): Utilitário para compressão de pngs
ee71da82 12Name: optipng
9c6befc7 13Version: 0.6.4
ee71da82 14Release: 1
9c6befc7 15License: BSD, Zlib/libpng
ee71da82 16Group: Applications/Graphics
9c6befc7
JB
17Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
18# Source0-md5: d6c10dd8d8f1d5b579221bc9cfbfbcb6
1d88236a 19URL: http://optipng.sourceforge.net/
9c6befc7
JB
20%{?with_system_libpng:BuildRequires: libpng-devel >= 1.4.1}
21%{?with_system_zlib:BuildRequires: zlib-devel >= 1.2.4}
ee71da82 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The main purpose of OptiPNG is to *optimize* PNG files, i.e. to reduce
26their size to a minimum, without losing any information. In order to
27achieve this goal, OptiPNG performs the following tasks:
28
29- It losslessly reduces the bit depth, the color type and the color
30 palette of the image. This step reduces the size of the uncompressed
31 image, which, indirectly, reduces the size of the compressed image
32 (i.e. the size of the PNG file).
33
34- It runs a suite of compression methods and strategies, and selects
35 the compression parameters that yield the smallest output file.
36
1e8988ee
JR
37%description -l pl.UTF-8
38Głównym zadaniem OptiPNG jest optymalizacja plików PNG, tzn.
ee71da82 39zmniejszenie ich rozmiaru do minimum bez straty jakichkolwiek
1e8988ee 40informacji. Aby osiągnąć ten cel stosuje się:
ee71da82 41
1e8988ee 42- Bezstratną redukcję głębi kolorów, typu koloru i palety kolorów. Ten
34d1c0b5 43 krok zmniejsza rozmiar nieskompresowanego obrazu, przez co zmniejsza
9c6befc7
JB
44 się również rozmiar skompresowanego obrazu (czyli wielkość pliku
45 PNG).
ee71da82 46
1e8988ee
JR
47- Porównuje się wyniki działania różnych metod i strategii kompresji w
48 celu wyboru takich parametrów, które dają najmniejszy rozmiar pliku
ee71da82 49 wynikowego.
50
51%prep
52%setup -q
ee71da82 53
54%build
9c6befc7
JB
55./configure \
56 -prefix=%{_prefix} \
57 %{?with_system_libpng:-with-system-libpng} \
58 %{?with_system_zlib:-with-system-zlib}
59
60%{__make} -C src -f scripts/gcc.mak -j1 \
ee71da82 61 CC="%{__cc}" \
aff28e05
JB
62 CFLAGS="%{rpmcflags}" \
63 LDFLAGS="%{rpmldflags}"
ee71da82 64
65%install
66rm -rf $RPM_BUILD_ROOT
67install -d $RPM_BUILD_ROOT%{_bindir}
68
69install src/optipng $RPM_BUILD_ROOT%{_bindir}
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(644,root,root,755)
9c6befc7
JB
76%doc doc/{caveat.txt,history.txt,manual.html,png_optimization_guide.html,thanks.html,todo.txt}
77%attr(755,root,root) %{_bindir}/optipng
This page took 0.044171 seconds and 4 git commands to generate.