1 # NOTE: try to switch to ac/am/lt build on 1.2.x->1.4.x upgrade
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ýðý
13 License: distributable
15 Source0: http://dl.sourceforge.net/libpng/%{name}-%{version}.tar.bz2
16 # Source0-md5: 7a1ca4f49bcffdec60d50f48460642bd
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)
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
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
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
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.
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.
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ýþ
71 Summary: Header files for libpng
72 Summary(de): libpng Headers
73 Summary(es): Archivos de inclusión y bibliotecas estáticas
74 Summary(fr): en-têtes et bibliothèques statiques
75 Summary(pl): Pliki nag³ówkowe libpng
76 Summary(pt_BR): Arquivos de inclusão e bibliotecas estáticas
77 Summary(tr): baþlýk dosyalarý ve statik kitaplýklar
78 Group: Development/Libraries
79 Requires: %{name} = %{epoch}:%{version}-%{release}
81 Conflicts: libpng < 1.0.15
84 The header files are only needed for development of programs using the
87 %description devel -l de
88 Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
91 %description devel -l es
92 Archivos de inclusión y bibliotecas estáticas que son necesarios
93 solamente para el desarrollo de programas que usan la biblioteca PNG.
95 %description devel -l fr
96 Fichiers d'en-tete et les librairies qui sont requis seulement pour le
97 développement avec la librairie PNG.
99 %description devel -l pl
100 W pakiecie tym znajduj± siê pliki nag³ówkowe, przeznaczone dla
101 programistów u¿ywaj±cych bibliotek PNG.
103 %description devel -l pt_BR
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.
107 %description devel -l tr
108 PNG kitaplýðýný kullanan programlar geliþtirmek için gereken
109 kitaplýklar ve baþlýk dosyalarý.
112 Summary: Static PNG libraries
113 Summary(de): Statischen PNG Libraries
114 Summary(pl): Biblioteki statyczne PNG
115 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libpng
116 Group: Development/Libraries
117 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
120 Static PNG libraries.
122 %description static -l de
123 Statischen PNG Libraries.
125 %description static -l pl
126 Biblioteki statyczne PNG.
128 %description static -l pt_BR
129 Bibliotecas estáticas para desenvolvimento com libpng.
132 Summary: libpng utility programs
133 Summary(pl): Narzêdzia do plików PNG
134 Group: Applications/Graphics
137 This package contains utility programs to convert PNG files to and
140 %description progs -l pl
141 Narzêdzia do konwersji plików PNG z lub do plików PNM.
154 ln -sf scripts/makefile.gcmmx ./Makefile
156 ln -sf scripts/makefile.linux ./Makefile
165 OPT_FLAGS="%{rpmcflags} -DPNG_NO_MMX_CODE"
167 OPT_FLAGS="%{rpmcflags}"
170 %{__make} -C contrib/pngminus -f makefile.std \
173 OPT_FLAGS="%{rpmcflags}"
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}}
181 DESTDIR=$RPM_BUILD_ROOT \
186 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
187 install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
190 rm -rf $RPM_BUILD_ROOT
192 %post -p /sbin/ldconfig
193 %postun -p /sbin/ldconfig
196 %defattr(644,root,root,755)
197 %doc ANNOUNCE CHANGES KNOWNBUG README LICENSE
198 %attr(755,root,root) %{_libdir}/libpng*.so.*.*.*
199 # alternative soname (symlink in PLD, so must be packaged)
200 %attr(755,root,root) %{_libdir}/libpng.so.3
201 %attr(755,root,root) %{_libdir}/libpng*.so.0
204 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_bindir}/libpng*-config
207 %attr(755,root,root) %{_libdir}/libpng*.so
211 %{_examplesdir}/%{name}-%{version}
214 %defattr(644,root,root,755)
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/p*