]> git.pld-linux.org Git - packages/libpng.git/blob - libpng.spec
- 1.2.16
[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):    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.16
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:  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)
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
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
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
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
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
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
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):    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}
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
88 Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
89 PNG-Library benötigt.
90
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.
94
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.
98
99 %description devel -l pl
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
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
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):    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}
118
119 %description static
120 Static PNG libraries.
121
122 %description static -l de
123 Statischen PNG Libraries.
124
125 %description static -l pl
126 Biblioteki statyczne PNG.
127
128 %description static -l pt_BR
129 Bibliotecas estáticas para desenvolvimento com libpng.
130
131 %package progs
132 Summary:        libpng utility programs
133 Summary(pl):    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
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}/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
202
203 %files devel
204 %defattr(644,root,root,755)
205 %doc *.txt
206 %attr(755,root,root) %{_bindir}/libpng*-config
207 %attr(755,root,root) %{_libdir}/libpng*.so
208 %{_pkgconfigdir}/*
209 %{_includedir}/*
210 %{_mandir}/man?/*
211 %{_examplesdir}/%{name}-%{version}
212
213 %files static
214 %defattr(644,root,root,755)
215 %{_libdir}/libpng*.a
216
217 %files progs
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/p*
This page took 0.077746 seconds and 4 git commands to generate.