]> git.pld-linux.org Git - packages/libpng.git/blob - libpng.spec
added zlib-devel to buildreq
[packages/libpng.git] / libpng.spec
1 Summary:        PNG library
2 Summary(de):    PNG-Library
3 Summary(es):    Biblioteca PNG
4 Summary(fr):    Librarie PNG
5 Summary(pl):    Biblioteka PNG
6 Summary(pt_BR): Biblioteca PNG
7 Summary(tr):    PNG kitaplýðý
8 Name:           libpng
9 Version:        1.2.1
10 Release:        1
11 Epoch:          2
12 License:        distributable
13 Group:          Libraries
14 Source0:        http://download.sourceforge.net/libpng/%{name}-%{version}.tar.gz
15 Patch0:         %{name}-pngminus.patch
16 Patch1:         %{name}-badchunks.patch
17 Patch2:         %{name}-opt.patch
18 BuildReq:       zlib-devel
19 URL:            http://www.libpng.org/pub/png/libpng.html
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 The PNG library is a collection of routines used to create and
24 manipulate PNG format graphics files. The PNG format was designed as a
25 replacement for GIF, with many improvements and extensions.
26
27 %description -l de
28 Die PNG-Library ist eine Sammlung von Routinen zum Erstellen und
29 Bearbeiten von Grafiken im PNG-Format. Das PNG-Format wurde als Ersatz
30 für GIF entwickelt und enthält viele Verbesserungen und Erweiterungen.
31
32 %description -l es
33 Esta biblioteca es una colección de rutinas para crear y manipular
34 archivos gráficos en el formato PNG. Este formato fue proyectado para
35 substituir el
36
37 %description -l fr
38 La librairie PNG est un ensemble de routines utilisées pour créer et
39 manipuler des fichiers graphiques au format PNG. Le format PNG a été
40 élaboré pour remplacer le GIF, avec de nombreuses améliorations et
41 extensions.
42
43 %description -l pl
44 Biblioteki PNG s± kolekcj± form u¿ywanych do tworzenia i manipulowania
45 plikami w formacie graficznym PNG. Format ten zosta³ stworzony jako
46 zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowo¶ciami.
47
48 %description -l pt_BR
49 Esta biblioteca é uma coleção de rotinas para criar e manipular
50 arquivos gráficos no formato PNG. Este formato foi projetado para
51 substituir o formato GIF, com extensões e melhorias.
52
53 %description -l tr
54 PNG kitaplýðý, PNG formatýndaki resim dosyalarýný iþlemeye yönelik
55 yordamlarý içerir. PNG, GIF formatýnýn yerini almak üzere tasarlanmýþ
56 bir resim formatýdýr.
57
58 %package devel
59 Summary:        Header files for libpng
60 Summary(de):    libpng Headers
61 Summary(es):    Archivos de inclusión y bibliotecas estáticas
62 Summary(fr):    en-têtes et bibliothèques statiques
63 Summary(pl):    Pliki nag³ówkowe libpng
64 Summary(pt_BR): Arquivos de inclusão e bibliotecas estáticas
65 Summary(tr):    baþlýk dosyalarý ve statik kitaplýklar
66 Group:          Development/Libraries
67 Requires:       %{name} = %{version}
68 Requires:       zlib-devel
69
70 %description devel
71 The header files are only needed for development of programs using the
72 PNG library.
73
74 %description devel -l de
75 Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
76 PNG-Library benötigt.
77
78 %description devel -l es
79 Archivos de inclusión y bibliotecas estáticas que son necesarios
80 solamente para el desarrollo de programas que usan la biblioteca PNG.
81
82 %description devel -l fr
83 Fichiers d'en-tete et les librairies qui sont requis seulement pour le
84 développement avec la librairie PNG.
85
86 %description devel -l pl
87 W pakiecie tym znajduj± siê pliki nag³ówkowe, przeznaczone dla
88 programistów u¿ywaj±cych bibliotek PNG.
89
90 %description devel -l pt_BR
91 Arquivos de inclusão e bibliotecas estáticas que são necessários
92 somente para o desenvolvimento de programas que usam a biblioteca PNG.
93
94 %description devel -l tr
95 PNG kitaplýðýný kullanan programlar geliþtirmek için gereken
96 kitaplýklar ve baþlýk dosyalarý.
97
98 %package static
99 Summary:        Static PNG libraries
100 Summary(de):    Statischen PNG Libraries
101 Summary(es):    Static libraries for libpng development
102 Summary(pl):    Biblioteki statyczne PNG
103 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libpng
104 Group:          Development/Libraries
105 Requires:       %{name}-devel = %{version}
106
107 %description static
108 Static PNG libraries.
109
110 %description static -l de
111 Statischen PNG Libraries.
112
113 %description static -l es
114 Static libraries for libpng development.
115
116 %description static -l pl
117 Biblioteki statyczne PNG.
118
119 %description static -l pt_BR
120 Bibliotecas estáticas para desenvolvimento com libpng.
121
122 %package progs
123 Summary:        libpng utility programs
124 Summary(pl):    Narzêdzia do plików PNG
125 Group:          Applications/Graphics
126
127 %description progs
128 This package contains utility programs to convert png files to and
129 from pnm files.
130
131 %description progs -l pl
132 Narzêdzia do konwersji plików png z lub do plików pnm.
133
134 %prep
135 %setup -q
136 %patch0 -p1
137 %patch1 -p1
138 %patch2 -p1
139
140 ln -sf scripts/makefile.linux ./Makefile
141
142 %build
143 %{__make} \
144         OPT_FLAGS="%{rpmcflags}"
145 %{__make} -C contrib/pngminus -f makefile.std \
146         OPT_FLAGS="%{rpmcflags}"
147
148 %install
149 rm -rf $RPM_BUILD_ROOT
150 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{3,5}}
151
152 %{__make} install \
153         prefix=$RPM_BUILD_ROOT%{_prefix}
154
155 install png.5 $RPM_BUILD_ROOT%{_mandir}/man5/
156 install {libpngpf,libpng}.3 $RPM_BUILD_ROOT%{_mandir}/man3/
157 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
158
159 gzip -9nf *.txt ANNOUNCE CHANGES KNOWNBUG README
160
161 %post   -p /sbin/ldconfig
162 %postun -p /sbin/ldconfig
163
164 %clean
165 rm -rf $RPM_BUILD_ROOT
166
167 %files
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_libdir}/*.so.*.*
170
171 %files devel
172 %defattr(644,root,root,755)
173 %doc *.gz
174 %attr(755,root,root) %{_libdir}/lib*.so
175 %{_includedir}/*
176 %{_mandir}/man?/*
177
178 %files static
179 %defattr(644,root,root,755)
180 %{_libdir}/lib*.a
181
182 %files progs
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_bindir}/*
This page took 0.090074 seconds and 4 git commands to generate.