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