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