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