]>
Commit | Line | Data |
---|---|---|
8a4e3b5c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # don't perform "make check" | |
4 | %bcond_without default_libpng # don't use this libpng as default system libpng | |
5 | # | |
714c2522 | 6 | Summary: PNG library |
c09c3034 ER |
7 | Summary(de.UTF-8): PNG-Library |
8 | Summary(es.UTF-8): Biblioteca PNG | |
9 | Summary(fr.UTF-8): Librarie PNG | |
10 | Summary(pl.UTF-8): Biblioteka PNG | |
11 | Summary(pt_BR.UTF-8): Biblioteca PNG | |
12 | Summary(tr.UTF-8): PNG kitaplığı | |
714c2522 | 13 | Name: libpng |
fe9e717b | 14 | Version: 1.5.13 |
1b59bf68 | 15 | Release: 2 |
62e09fb4 | 16 | Epoch: 2 |
1b0fd02b | 17 | License: distributable |
714c2522 | 18 | Group: Libraries |
097c13cd | 19 | Source0: http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz |
fe9e717b | 20 | # Source0-md5: 0b607a685da977f1bfc96e1c47055183 |
e65334f7 | 21 | Patch0: %{name}-pngminus.patch |
fe9e717b | 22 | Patch1: http://downloads.sourceforge.net/libpng-apng/%{name}-1.5.12-apng.patch.gz |
0f83ee59 | 23 | # Patch1-md5: 7f2924b1fe0cca9080e18b8720443716 |
8a4e3b5c | 24 | Patch2: %{name}-apng-fix.patch |
bd250172 | 25 | URL: http://www.libpng.org/pub/png/libpng.html |
c4b2207e | 26 | BuildRequires: rpmbuild(macros) >= 1.213 |
785c54df | 27 | BuildRequires: tar >= 1:1.22 |
7d2bdb5a | 28 | BuildRequires: xz >= 1:4.999.7 |
a65a9a74 | 29 | BuildRequires: zlib-devel |
2da42a2c | 30 | Provides: libpng(APNG) = 0.10 |
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 |
2da42a2c | 80 | Provides: libpng(APNG)-devel = 0.10 |
2cfb55ca | 81 | Conflicts: libpng < 1.0.15 |
6b867543 | 82 | |
83 | %description devel | |
4ef53418 JB |
84 | The header files are only needed for development of programs using the |
85 | PNG library. | |
6b867543 | 86 | |
2bdf363b | 87 | %description devel -l de.UTF-8 |
4ef53418 | 88 | Die Header-Dateien werden nur zur Entwicklung von Programmen mit der |
2bdf363b | 89 | PNG-Library benötigt. |
6b867543 | 90 | |
2bdf363b JR |
91 | %description devel -l es.UTF-8 |
92 | Archivos de inclusión y bibliotecas estáticas que son necesarios | |
0fc3dbd2 | 93 | solamente para el desarrollo de programas que usan la biblioteca PNG. |
94 | ||
2bdf363b | 95 | %description devel -l fr.UTF-8 |
72f15a65 | 96 | Fichiers d'en-tete et les librairies qui sont requis seulement pour le |
2bdf363b | 97 | développement avec la librairie PNG. |
6b867543 | 98 | |
2bdf363b JR |
99 | %description devel -l pl.UTF-8 |
100 | W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla | |
101 | programistów używających bibliotek PNG. | |
0fc3dbd2 | 102 | |
2bdf363b JR |
103 | %description devel -l pt_BR.UTF-8 |
104 | Arquivos de inclusão e bibliotecas estáticas que são necessários | |
0fc3dbd2 | 105 | somente para o desenvolvimento de programas que usam a biblioteca PNG. |
106 | ||
2bdf363b JR |
107 | %description devel -l tr.UTF-8 |
108 | PNG kitaplığını kullanan programlar geliştirmek için gereken | |
109 | kitaplıklar ve başlık dosyaları. | |
6b867543 | 110 | |
c381bb48 | 111 | %package static |
00bce163 AM |
112 | Summary: Static PNG library |
113 | Summary(de.UTF-8): Statisch PNG Library | |
114 | Summary(pl.UTF-8): Biblioteka statyczna PNG | |
c09c3034 | 115 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libpng |
714c2522 | 116 | Group: Development/Libraries |
6fc2747d | 117 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
2da42a2c | 118 | Provides: libpng(APNG)-static = 0.10 |
6b867543 | 119 | |
120 | %description static | |
00bce163 | 121 | Static PNG library. |
4ef53418 | 122 | |
2bdf363b | 123 | %description static -l de.UTF-8 |
00bce163 | 124 | Statisch PNG Library. |
6b867543 | 125 | |
2bdf363b | 126 | %description static -l pl.UTF-8 |
00bce163 | 127 | Biblioteka statyczna PNG. |
6b867543 | 128 | |
2bdf363b JR |
129 | %description static -l pt_BR.UTF-8 |
130 | Bibliotecas estáticas para desenvolvimento com libpng. | |
0fc3dbd2 | 131 | |
0f88fd3d | 132 | %package progs |
133 | Summary: libpng utility programs | |
c09c3034 | 134 | Summary(pl.UTF-8): Narzędzia do plików PNG |
0f88fd3d | 135 | Group: Applications/Graphics |
3591ed11 | 136 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f88fd3d | 137 | |
138 | %description progs | |
d6af8901 JB |
139 | This package contains utility programs to convert PNG files to and |
140 | from PNM files. | |
0f88fd3d | 141 | |
2bdf363b JR |
142 | %description progs -l pl.UTF-8 |
143 | Narzędzia do konwersji plików PNG z lub do plików PNM. | |
c381bb48 | 144 | |
6b867543 | 145 | %prep |
c64766dd | 146 | %setup -q |
133d32e3 | 147 | %patch0 -p1 |
8a4e3b5c JB |
148 | %patch1 -p1 |
149 | %patch2 -p1 | |
0f88fd3d | 150 | |
6b867543 | 151 | %build |
3f01bbdf AM |
152 | %configure |
153 | %{__make} | |
0b50ec85 | 154 | |
e75b4e8f | 155 | %{__make} -C contrib/pngminus -f makefile.std \ |
2dabdc19 | 156 | LIBPATH=%{_libdir} \ |
24540946 | 157 | CC="%{__cc}" \ |
0b500a84 AM |
158 | OPT_FLAGS="%{rpmcppflags} %{rpmcflags}" |
159 | ||
160 | %{?with_tests:%{__make} check} | |
6b867543 | 161 | |
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
00bce163 | 164 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6b867543 | 165 | |
e75b4e8f | 166 | %{__make} install \ |
3f01bbdf | 167 | DESTDIR=$RPM_BUILD_ROOT |
6b867543 | 168 | |
0f88fd3d | 169 | install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir} |
d5026e25 | 170 | install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6b867543 | 171 | |
8a4e3b5c JB |
172 | %if %{without default_libpng} |
173 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{libpng-config,pn?2pn?} \ | |
174 | $RPM_BUILD_ROOT%{_libdir}/libpng.{so,la,a} \ | |
175 | $RPM_BUILD_ROOT%{_includedir}/png*.h \ | |
176 | $RPM_BUILD_ROOT%{_pkgconfigdir}/libpng.pc \ | |
177 | $RPM_BUILD_ROOT%{_mandir}/man[35]/*png* | |
178 | %endif | |
179 | ||
83a00d5e JB |
180 | %clean |
181 | rm -rf $RPM_BUILD_ROOT | |
332660b0 | 182 | |
183 | %post -p /sbin/ldconfig | |
6b867543 | 184 | %postun -p /sbin/ldconfig |
185 | ||
186 | %files | |
e987a93d | 187 | %defattr(644,root,root,755) |
00bce163 | 188 | %doc ANNOUNCE CHANGES LICENSE README TODO |
8a4e3b5c JB |
189 | %attr(755,root,root) %{_libdir}/libpng15.so.*.*.* |
190 | %attr(755,root,root) %ghost %{_libdir}/libpng15.so.15 | |
6b867543 | 191 | |
192 | %files devel | |
969c9518 | 193 | %defattr(644,root,root,755) |
8a4e3b5c JB |
194 | %doc libpng-manual.txt |
195 | %attr(755,root,root) %{_bindir}/libpng15-config | |
196 | %attr(755,root,root) %{_libdir}/libpng15.so | |
197 | %{_libdir}/libpng15.la | |
198 | %{_includedir}/libpng15 | |
199 | %{_pkgconfigdir}/libpng15.pc | |
200 | %{_examplesdir}/%{name}-%{version} | |
201 | %if %{with default_libpng} | |
fa2428a4 | 202 | %attr(755,root,root) %{_bindir}/libpng-config |
fa2428a4 | 203 | %attr(755,root,root) %{_libdir}/libpng.so |
00bce163 | 204 | %{_libdir}/libpng.la |
fa2428a4 | 205 | %{_pkgconfigdir}/libpng.pc |
fa2428a4 | 206 | %{_includedir}/png*.h |
00bce163 AM |
207 | %{_mandir}/man3/libpng.3* |
208 | %{_mandir}/man3/libpngpf.3* | |
209 | %{_mandir}/man5/png.5* | |
8a4e3b5c | 210 | %endif |
6b867543 | 211 | |
212 | %files static | |
e987a93d | 213 | %defattr(644,root,root,755) |
8a4e3b5c JB |
214 | %{_libdir}/libpng15.a |
215 | %if %{with default_libpng} | |
fa2428a4 | 216 | %{_libdir}/libpng.a |
8a4e3b5c | 217 | %endif |
0f88fd3d | 218 | |
8a4e3b5c | 219 | %if %{with default_libpng} |
0f88fd3d | 220 | %files progs |
221 | %defattr(644,root,root,755) | |
00bce163 AM |
222 | %attr(755,root,root) %{_bindir}/png2pnm |
223 | %attr(755,root,root) %{_bindir}/pnm2png | |
8a4e3b5c | 224 | %endif |