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