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