]> git.pld-linux.org Git - packages/libpng12.git/blob - libpng12.spec
- add APNG support; rel 3
[packages/libpng12.git] / libpng12.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.24
11 Release:        3
12 Epoch:          2
13 License:        distributable
14 Group:          Libraries
15 Source0:        http://dl.sourceforge.net/libpng/%{name}-%{version}.tar.bz2
16 # Source0-md5:  1e676c5cc7dfa4ef78affe8fb8f1011d
17 Patch0:         %{name}-pngminus.patch
18 Patch1:         %{name}-opt.patch
19 Patch2:         %{name}-norpath.patch
20 Patch3:         %{name}-export_old.patch
21 Patch4:         %{name}-revert.patch
22 # http://littlesvr.ca/apng/
23 Patch5:         %{name}-apng.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 Provides:       libpng(APNG) = 0.10
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.UTF-8
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.UTF-8
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.UTF-8
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.UTF-8
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.UTF-8
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.UTF-8
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.UTF-8):      libpng Headers
74 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas estáticas
75 Summary(fr.UTF-8):      en-têtes et bibliothèques statiques
76 Summary(pl.UTF-8):      Pliki nagłówkowe libpng
77 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas estáticas
78 Summary(tr.UTF-8):      başlık dosyaları ve statik kitaplıklar
79 Group:          Development/Libraries
80 Requires:       %{name} = %{epoch}:%{version}-%{release}
81 Requires:       zlib-devel
82 Provides:       libpng(APNG)-devel = 0.10
83 Conflicts:      libpng < 1.0.15
84
85 %description devel
86 The header files are only needed for development of programs using the
87 PNG library.
88
89 %description devel -l de.UTF-8
90 Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
91 PNG-Library benötigt.
92
93 %description devel -l es.UTF-8
94 Archivos de inclusión y bibliotecas estáticas que son necesarios
95 solamente para el desarrollo de programas que usan la biblioteca PNG.
96
97 %description devel -l fr.UTF-8
98 Fichiers d'en-tete et les librairies qui sont requis seulement pour le
99 développement avec la librairie PNG.
100
101 %description devel -l pl.UTF-8
102 W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla
103 programistów używających bibliotek PNG.
104
105 %description devel -l pt_BR.UTF-8
106 Arquivos de inclusão e bibliotecas estáticas que são necessários
107 somente para o desenvolvimento de programas que usam a biblioteca PNG.
108
109 %description devel -l tr.UTF-8
110 PNG kitaplığını kullanan programlar geliştirmek için gereken
111 kitaplıklar ve başlık dosyaları.
112
113 %package static
114 Summary:        Static PNG libraries
115 Summary(de.UTF-8):      Statischen PNG Libraries
116 Summary(pl.UTF-8):      Biblioteki statyczne PNG
117 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com libpng
118 Group:          Development/Libraries
119 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
120 Provides:       libpng(APNG)-static = 0.10
121
122 %description static
123 Static PNG libraries.
124
125 %description static -l de.UTF-8
126 Statischen PNG Libraries.
127
128 %description static -l pl.UTF-8
129 Biblioteki statyczne PNG.
130
131 %description static -l pt_BR.UTF-8
132 Bibliotecas estáticas para desenvolvimento com libpng.
133
134 %package progs
135 Summary:        libpng utility programs
136 Summary(pl.UTF-8):      Narzędzia do plików PNG
137 Group:          Applications/Graphics
138 Requires:       %{name} = %{epoch}:%{version}-%{release}
139
140 %description progs
141 This package contains utility programs to convert PNG files to and
142 from PNM files.
143
144 %description progs -l pl.UTF-8
145 Narzędzia do konwersji plików PNG z lub do plików PNM.
146
147 %prep
148 %setup -q
149 %patch0 -p1
150 %patch1 -p1
151 %patch2 -p1
152 %patch3 -p1
153 %patch4 -p1
154 %patch5 -p0
155
156 %ifarch %{ix86}
157 ln -sf scripts/makefile.gcmmx ./Makefile
158 %else
159 ln -sf scripts/makefile.linux ./Makefile
160 %endif
161
162 %build
163 %{__make} \
164         prefix=%{_prefix} \
165         LIBPATH=%{_libdir} \
166         CC="%{__cc}" \
167 %ifarch %{x8664} sparc sparcv9 sparc64
168         OPT_FLAGS="%{rpmcflags} -DPNG_NO_MMX_CODE"
169 %else
170         OPT_FLAGS="%{rpmcflags}"
171 %endif
172
173 %{__make} -C contrib/pngminus -f makefile.std \
174         LIBPATH=%{_libdir} \
175         CC="%{__cc}" \
176         OPT_FLAGS="%{rpmcflags}"
177
178 %install
179 rm -rf $RPM_BUILD_ROOT
180 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{3,5}} \
181         $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_examplesdir}/%{name}-%{version}}
182
183 %{__make} install \
184         DESTDIR=$RPM_BUILD_ROOT \
185         prefix=%{_prefix} \
186         LIBPATH=%{_libdir} \
187         MANPATH=%{_mandir}
188
189 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
190 install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
191
192 %clean
193 rm -rf $RPM_BUILD_ROOT
194
195 %post   -p /sbin/ldconfig
196 %postun -p /sbin/ldconfig
197
198 %files
199 %defattr(644,root,root,755)
200 %doc ANNOUNCE CHANGES KNOWNBUG README LICENSE
201 %attr(755,root,root) %{_libdir}/libpng12.so.*.*.*
202 %attr(755,root,root) %{_libdir}/libpng.so.*.*.*
203 %attr(755,root,root) %ghost %{_libdir}/libpng12.so.0
204 # alternative soname (symlink in PLD, so must be packaged)
205 %attr(755,root,root) %{_libdir}/libpng.so.3
206
207 %files devel
208 %defattr(644,root,root,755)
209 %doc *.txt
210 %attr(755,root,root) %{_bindir}/libpng12-config
211 %attr(755,root,root) %{_bindir}/libpng-config
212 %attr(755,root,root) %{_libdir}/libpng12.so
213 %attr(755,root,root) %{_libdir}/libpng.so
214 %{_pkgconfigdir}/libpng12.pc
215 %{_pkgconfigdir}/libpng.pc
216 %{_includedir}/libpng12
217 %{_includedir}/libpng
218 %{_includedir}/png*.h
219 %{_mandir}/man?/*
220 %{_examplesdir}/%{name}-%{version}
221
222 %files static
223 %defattr(644,root,root,755)
224 %{_libdir}/libpng12.a
225 %{_libdir}/libpng.a
226
227 %files progs
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_bindir}/p*
This page took 0.08114 seconds and 4 git commands to generate.