]>
Commit | Line | Data |
---|---|---|
35ee6d14 | 1 | # |
8a4e3b5c JB |
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 |
7ecc3090 | 14 | Version: 1.6.28 |
7d10146d | 15 | Release: 1 |
62e09fb4 | 16 | Epoch: 2 |
1b0fd02b | 17 | License: distributable |
714c2522 | 18 | Group: Libraries |
097c13cd | 19 | Source0: http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz |
7ecc3090 | 20 | # Source0-md5: 425354f86c392318d31aedca71019372 |
e65334f7 | 21 | Patch0: %{name}-pngminus.patch |
5d7415a0 | 22 | Patch1: http://downloads.sourceforge.net/libpng-apng/%{name}-%{version}-apng.patch.gz |
7ecc3090 | 23 | # Patch1-md5: fca7c6d87c8352e645facefc2e1dd153 |
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 |
0f88fd3d | 148 | |
6b867543 | 149 | %build |
3f01bbdf AM |
150 | %configure |
151 | %{__make} | |
0b50ec85 | 152 | |
e75b4e8f | 153 | %{__make} -C contrib/pngminus -f makefile.std \ |
2dabdc19 | 154 | LIBPATH=%{_libdir} \ |
24540946 | 155 | CC="%{__cc}" \ |
0b500a84 AM |
156 | OPT_FLAGS="%{rpmcppflags} %{rpmcflags}" |
157 | ||
158 | %{?with_tests:%{__make} check} | |
6b867543 | 159 | |
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
00bce163 | 162 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6b867543 | 163 | |
e75b4e8f | 164 | %{__make} install \ |
3f01bbdf | 165 | DESTDIR=$RPM_BUILD_ROOT |
6b867543 | 166 | |
0f88fd3d | 167 | install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir} |
d5026e25 | 168 | install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6b867543 | 169 | |
8a4e3b5c JB |
170 | %if %{without default_libpng} |
171 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{libpng-config,pn?2pn?} \ | |
172 | $RPM_BUILD_ROOT%{_libdir}/libpng.{so,la,a} \ | |
173 | $RPM_BUILD_ROOT%{_includedir}/png*.h \ | |
174 | $RPM_BUILD_ROOT%{_pkgconfigdir}/libpng.pc \ | |
175 | $RPM_BUILD_ROOT%{_mandir}/man[35]/*png* | |
176 | %endif | |
177 | ||
83a00d5e JB |
178 | %clean |
179 | rm -rf $RPM_BUILD_ROOT | |
332660b0 | 180 | |
181 | %post -p /sbin/ldconfig | |
6b867543 | 182 | %postun -p /sbin/ldconfig |
183 | ||
184 | %files | |
e987a93d | 185 | %defattr(644,root,root,755) |
00bce163 | 186 | %doc ANNOUNCE CHANGES LICENSE README TODO |
d81fa4a7 JB |
187 | %attr(755,root,root) %{_libdir}/libpng16.so.*.*.* |
188 | %attr(755,root,root) %ghost %{_libdir}/libpng16.so.16 | |
6b867543 | 189 | |
190 | %files devel | |
969c9518 | 191 | %defattr(644,root,root,755) |
8a4e3b5c | 192 | %doc libpng-manual.txt |
d81fa4a7 JB |
193 | %attr(755,root,root) %{_bindir}/libpng16-config |
194 | %attr(755,root,root) %{_libdir}/libpng16.so | |
195 | %{_libdir}/libpng16.la | |
196 | %{_includedir}/libpng16 | |
197 | %{_pkgconfigdir}/libpng16.pc | |
8a4e3b5c JB |
198 | %{_examplesdir}/%{name}-%{version} |
199 | %if %{with default_libpng} | |
fa2428a4 | 200 | %attr(755,root,root) %{_bindir}/libpng-config |
fa2428a4 | 201 | %attr(755,root,root) %{_libdir}/libpng.so |
00bce163 | 202 | %{_libdir}/libpng.la |
fa2428a4 | 203 | %{_pkgconfigdir}/libpng.pc |
fa2428a4 | 204 | %{_includedir}/png*.h |
00bce163 AM |
205 | %{_mandir}/man3/libpng.3* |
206 | %{_mandir}/man3/libpngpf.3* | |
207 | %{_mandir}/man5/png.5* | |
8a4e3b5c | 208 | %endif |
6b867543 | 209 | |
210 | %files static | |
e987a93d | 211 | %defattr(644,root,root,755) |
d81fa4a7 | 212 | %{_libdir}/libpng16.a |
8a4e3b5c | 213 | %if %{with default_libpng} |
fa2428a4 | 214 | %{_libdir}/libpng.a |
8a4e3b5c | 215 | %endif |
0f88fd3d | 216 | |
8a4e3b5c | 217 | %if %{with default_libpng} |
0f88fd3d | 218 | %files progs |
219 | %defattr(644,root,root,755) | |
00bce163 | 220 | %attr(755,root,root) %{_bindir}/png2pnm |
38b968e3 AM |
221 | %attr(755,root,root) %{_bindir}/pngfix |
222 | %attr(755,root,root) %{_bindir}/png-fix-itxt | |
00bce163 | 223 | %attr(755,root,root) %{_bindir}/pnm2png |
8a4e3b5c | 224 | %endif |