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