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