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