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