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