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