]>
Commit | Line | Data |
---|---|---|
8a4e3b5c JB |
1 | # Conditional build: |
2 | %bcond_without tests # don't perform "make check" | |
3 | %bcond_without default_libpng # don't use this libpng as default system libpng | |
4 | # | |
714c2522 | 5 | Summary: PNG library |
c09c3034 ER |
6 | Summary(de.UTF-8): PNG-Library |
7 | Summary(es.UTF-8): Biblioteca PNG | |
8 | Summary(fr.UTF-8): Librarie PNG | |
9 | Summary(pl.UTF-8): Biblioteka PNG | |
10 | Summary(pt_BR.UTF-8): Biblioteca PNG | |
11 | Summary(tr.UTF-8): PNG kitaplığı | |
714c2522 | 12 | Name: libpng |
5d7415a0 | 13 | Version: 1.6.20 |
7d10146d | 14 | Release: 1 |
62e09fb4 | 15 | Epoch: 2 |
1b0fd02b | 16 | License: distributable |
714c2522 | 17 | Group: Libraries |
097c13cd | 18 | Source0: http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz |
5d7415a0 | 19 | # Source0-md5: 3968acb7c66ef81a9dab867f35d0eb4b |
e65334f7 | 20 | Patch0: %{name}-pngminus.patch |
5d7415a0 JB |
21 | Patch1: http://downloads.sourceforge.net/libpng-apng/%{name}-%{version}-apng.patch.gz |
22 | # Patch1-md5: b2186d5e7853890e25b34b03c7f2ddde | |
23 | Patch2: %{name}-sh.patch | |
bd250172 | 24 | URL: http://www.libpng.org/pub/png/libpng.html |
c4b2207e | 25 | BuildRequires: rpmbuild(macros) >= 1.213 |
785c54df | 26 | BuildRequires: tar >= 1:1.22 |
7d2bdb5a | 27 | BuildRequires: xz >= 1:4.999.7 |
a65a9a74 | 28 | BuildRequires: zlib-devel |
2da42a2c | 29 | Provides: libpng(APNG) = 0.10 |
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 |
2da42a2c | 79 | Provides: libpng(APNG)-devel = 0.10 |
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 |
00bce163 AM |
111 | Summary: Static PNG library |
112 | Summary(de.UTF-8): Statisch PNG Library | |
113 | Summary(pl.UTF-8): Biblioteka statyczna PNG | |
c09c3034 | 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} |
2da42a2c | 117 | Provides: libpng(APNG)-static = 0.10 |
6b867543 | 118 | |
119 | %description static | |
00bce163 | 120 | Static PNG library. |
4ef53418 | 121 | |
2bdf363b | 122 | %description static -l de.UTF-8 |
00bce163 | 123 | Statisch PNG Library. |
6b867543 | 124 | |
2bdf363b | 125 | %description static -l pl.UTF-8 |
00bce163 | 126 | Biblioteka statyczna PNG. |
6b867543 | 127 | |
2bdf363b JR |
128 | %description static -l pt_BR.UTF-8 |
129 | Bibliotecas estáticas para desenvolvimento com libpng. | |
0fc3dbd2 | 130 | |
0f88fd3d | 131 | %package progs |
132 | Summary: libpng utility programs | |
c09c3034 | 133 | Summary(pl.UTF-8): Narzędzia do plików PNG |
0f88fd3d | 134 | Group: Applications/Graphics |
3591ed11 | 135 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f88fd3d | 136 | |
137 | %description progs | |
d6af8901 JB |
138 | This package contains utility programs to convert PNG files to and |
139 | from PNM files. | |
0f88fd3d | 140 | |
2bdf363b JR |
141 | %description progs -l pl.UTF-8 |
142 | Narzędzia do konwersji plików PNG z lub do plików PNM. | |
c381bb48 | 143 | |
6b867543 | 144 | %prep |
c64766dd | 145 | %setup -q |
133d32e3 | 146 | %patch0 -p1 |
8a4e3b5c | 147 | %patch1 -p1 |
5d7415a0 | 148 | %patch2 -p1 |
0f88fd3d | 149 | |
6b867543 | 150 | %build |
3f01bbdf AM |
151 | %configure |
152 | %{__make} | |
0b50ec85 | 153 | |
e75b4e8f | 154 | %{__make} -C contrib/pngminus -f makefile.std \ |
2dabdc19 | 155 | LIBPATH=%{_libdir} \ |
24540946 | 156 | CC="%{__cc}" \ |
0b500a84 AM |
157 | OPT_FLAGS="%{rpmcppflags} %{rpmcflags}" |
158 | ||
159 | %{?with_tests:%{__make} check} | |
6b867543 | 160 | |
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
00bce163 | 163 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6b867543 | 164 | |
e75b4e8f | 165 | %{__make} install \ |
3f01bbdf | 166 | DESTDIR=$RPM_BUILD_ROOT |
6b867543 | 167 | |
0f88fd3d | 168 | install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir} |
d5026e25 | 169 | install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6b867543 | 170 | |
8a4e3b5c JB |
171 | %if %{without default_libpng} |
172 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{libpng-config,pn?2pn?} \ | |
173 | $RPM_BUILD_ROOT%{_libdir}/libpng.{so,la,a} \ | |
174 | $RPM_BUILD_ROOT%{_includedir}/png*.h \ | |
175 | $RPM_BUILD_ROOT%{_pkgconfigdir}/libpng.pc \ | |
176 | $RPM_BUILD_ROOT%{_mandir}/man[35]/*png* | |
177 | %endif | |
178 | ||
83a00d5e JB |
179 | %clean |
180 | rm -rf $RPM_BUILD_ROOT | |
332660b0 | 181 | |
182 | %post -p /sbin/ldconfig | |
6b867543 | 183 | %postun -p /sbin/ldconfig |
184 | ||
185 | %files | |
e987a93d | 186 | %defattr(644,root,root,755) |
00bce163 | 187 | %doc ANNOUNCE CHANGES LICENSE README TODO |
d81fa4a7 JB |
188 | %attr(755,root,root) %{_libdir}/libpng16.so.*.*.* |
189 | %attr(755,root,root) %ghost %{_libdir}/libpng16.so.16 | |
6b867543 | 190 | |
191 | %files devel | |
969c9518 | 192 | %defattr(644,root,root,755) |
8a4e3b5c | 193 | %doc libpng-manual.txt |
d81fa4a7 JB |
194 | %attr(755,root,root) %{_bindir}/libpng16-config |
195 | %attr(755,root,root) %{_libdir}/libpng16.so | |
196 | %{_libdir}/libpng16.la | |
197 | %{_includedir}/libpng16 | |
198 | %{_pkgconfigdir}/libpng16.pc | |
8a4e3b5c JB |
199 | %{_examplesdir}/%{name}-%{version} |
200 | %if %{with default_libpng} | |
fa2428a4 | 201 | %attr(755,root,root) %{_bindir}/libpng-config |
fa2428a4 | 202 | %attr(755,root,root) %{_libdir}/libpng.so |
00bce163 | 203 | %{_libdir}/libpng.la |
fa2428a4 | 204 | %{_pkgconfigdir}/libpng.pc |
fa2428a4 | 205 | %{_includedir}/png*.h |
00bce163 AM |
206 | %{_mandir}/man3/libpng.3* |
207 | %{_mandir}/man3/libpngpf.3* | |
208 | %{_mandir}/man5/png.5* | |
8a4e3b5c | 209 | %endif |
6b867543 | 210 | |
211 | %files static | |
e987a93d | 212 | %defattr(644,root,root,755) |
d81fa4a7 | 213 | %{_libdir}/libpng16.a |
8a4e3b5c | 214 | %if %{with default_libpng} |
fa2428a4 | 215 | %{_libdir}/libpng.a |
8a4e3b5c | 216 | %endif |
0f88fd3d | 217 | |
8a4e3b5c | 218 | %if %{with default_libpng} |
0f88fd3d | 219 | %files progs |
220 | %defattr(644,root,root,755) | |
00bce163 | 221 | %attr(755,root,root) %{_bindir}/png2pnm |
38b968e3 AM |
222 | %attr(755,root,root) %{_bindir}/pngfix |
223 | %attr(755,root,root) %{_bindir}/png-fix-itxt | |
00bce163 | 224 | %attr(755,root,root) %{_bindir}/pnm2png |
8a4e3b5c | 225 | %endif |