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