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