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