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