]> git.pld-linux.org Git - packages/libpng.git/blame - libpng.spec
- up to 1.6.32
[packages/libpng.git] / libpng.spec
CommitLineData
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 8Summary: PNG library
c09c3034
ER
9Summary(de.UTF-8): PNG-Library
10Summary(es.UTF-8): Biblioteca PNG
11Summary(fr.UTF-8): Librarie PNG
12Summary(pl.UTF-8): Biblioteka PNG
13Summary(pt_BR.UTF-8): Biblioteca PNG
14Summary(tr.UTF-8): PNG kitaplığı
714c2522 15Name: libpng
f4e07ba4 16Version: 1.6.32
7d10146d 17Release: 1
62e09fb4 18Epoch: 2
1b0fd02b 19License: distributable
714c2522 20Group: Libraries
097c13cd 21Source0: http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz
f4e07ba4 22# Source0-md5: e01be057a9369183c959b793a685ad15
e65334f7 23Patch0: %{name}-pngminus.patch
5d7415a0 24Patch1: http://downloads.sourceforge.net/libpng-apng/%{name}-%{version}-apng.patch.gz
f4e07ba4 25# Patch1-md5: 1760dbaa13c2569fdda6d83f6483701e
bd250172 26URL: http://www.libpng.org/pub/png/libpng.html
c4b2207e 27BuildRequires: rpmbuild(macros) >= 1.213
785c54df 28BuildRequires: tar >= 1:1.22
7d2bdb5a 29BuildRequires: xz >= 1:4.999.7
a65a9a74 30BuildRequires: zlib-devel
2da42a2c 31Provides: libpng(APNG) = 0.10
7f0d4dbb 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6b867543 33
34%description
72f15a65 35The PNG library is a collection of routines used to create and
36manipulate PNG format graphics files. The PNG format was designed as a
37replacement for GIF, with many improvements and extensions.
6b867543 38
2bdf363b 39%description -l de.UTF-8
72f15a65 40Die PNG-Library ist eine Sammlung von Routinen zum Erstellen und
41Bearbeiten von Grafiken im PNG-Format. Das PNG-Format wurde als Ersatz
2bdf363b 42für GIF entwickelt und enthält viele Verbesserungen und Erweiterungen.
fe532919 43
2bdf363b
JR
44%description -l es.UTF-8
45Esta biblioteca es una colección de rutinas para crear y manipular
46archivos gráficos en el formato PNG. Este formato fue proyectado para
0fc3dbd2 47substituir el
48
2bdf363b
JR
49%description -l fr.UTF-8
50La librairie PNG est un ensemble de routines utilisées pour créer et
51manipuler des fichiers graphiques au format PNG. Le format PNG a été
52élaboré pour remplacer le GIF, avec de nombreuses améliorations et
fe532919 53extensions.
54
2bdf363b
JR
55%description -l pl.UTF-8
56Biblioteki PNG są kolekcją form używanych do tworzenia i manipulowania
57plikami w formacie graficznym PNG. Format ten został stworzony jako
58zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowościami.
4ef53418 59
2bdf363b
JR
60%description -l pt_BR.UTF-8
61Esta biblioteca é uma coleção de rotinas para criar e manipular
62arquivos gráficos no formato PNG. Este formato foi projetado para
63substituir o formato GIF, com extensões e melhorias.
0fc3dbd2 64
2bdf363b
JR
65%description -l tr.UTF-8
66PNG kitaplığı, PNG formatındaki resim dosyalarını işlemeye yönelik
67yordamları içerir. PNG, GIF formatının yerini almak üzere tasarlanmış
68bir resim formatıdır.
fe532919 69
6b867543 70%package devel
4ef53418 71Summary: Header files for libpng
c09c3034
ER
72Summary(de.UTF-8): libpng Headers
73Summary(es.UTF-8): Archivos de inclusión y bibliotecas estáticas
74Summary(fr.UTF-8): en-têtes et bibliothèques statiques
75Summary(pl.UTF-8): Pliki nagłówkowe libpng
76Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas estáticas
77Summary(tr.UTF-8): başlık dosyaları ve statik kitaplıklar
714c2522 78Group: Development/Libraries
6fc2747d 79Requires: %{name} = %{epoch}:%{version}-%{release}
9b72b791 80Requires: zlib-devel
2da42a2c 81Provides: libpng(APNG)-devel = 0.10
2cfb55ca 82Conflicts: libpng < 1.0.15
6b867543 83
84%description devel
4ef53418
JB
85The header files are only needed for development of programs using the
86PNG library.
6b867543 87
2bdf363b 88%description devel -l de.UTF-8
4ef53418 89Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
2bdf363b 90PNG-Library benötigt.
6b867543 91
2bdf363b
JR
92%description devel -l es.UTF-8
93Archivos de inclusión y bibliotecas estáticas que son necesarios
0fc3dbd2 94solamente para el desarrollo de programas que usan la biblioteca PNG.
95
2bdf363b 96%description devel -l fr.UTF-8
72f15a65 97Fichiers d'en-tete et les librairies qui sont requis seulement pour le
2bdf363b 98développement avec la librairie PNG.
6b867543 99
2bdf363b
JR
100%description devel -l pl.UTF-8
101W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla
102programistów używających bibliotek PNG.
0fc3dbd2 103
2bdf363b
JR
104%description devel -l pt_BR.UTF-8
105Arquivos de inclusão e bibliotecas estáticas que são necessários
0fc3dbd2 106somente para o desenvolvimento de programas que usam a biblioteca PNG.
107
2bdf363b
JR
108%description devel -l tr.UTF-8
109PNG kitaplığını kullanan programlar geliştirmek için gereken
110kitaplıklar ve başlık dosyaları.
6b867543 111
c381bb48 112%package static
00bce163
AM
113Summary: Static PNG library
114Summary(de.UTF-8): Statisch PNG Library
115Summary(pl.UTF-8): Biblioteka statyczna PNG
c09c3034 116Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libpng
714c2522 117Group: Development/Libraries
6fc2747d 118Requires: %{name}-devel = %{epoch}:%{version}-%{release}
2da42a2c 119Provides: libpng(APNG)-static = 0.10
6b867543 120
121%description static
00bce163 122Static PNG library.
4ef53418 123
2bdf363b 124%description static -l de.UTF-8
00bce163 125Statisch PNG Library.
6b867543 126
2bdf363b 127%description static -l pl.UTF-8
00bce163 128Biblioteka statyczna PNG.
6b867543 129
2bdf363b
JR
130%description static -l pt_BR.UTF-8
131Bibliotecas estáticas para desenvolvimento com libpng.
0fc3dbd2 132
0f88fd3d 133%package progs
134Summary: libpng utility programs
c09c3034 135Summary(pl.UTF-8): Narzędzia do plików PNG
0f88fd3d 136Group: Applications/Graphics
3591ed11 137Requires: %{name} = %{epoch}:%{version}-%{release}
0f88fd3d 138
139%description progs
d6af8901
JB
140This package contains utility programs to convert PNG files to and
141from PNM files.
0f88fd3d 142
2bdf363b
JR
143%description progs -l pl.UTF-8
144Narzę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
173rm -rf $RPM_BUILD_ROOT
00bce163 174install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6b867543 175
e75b4e8f 176%{__make} install \
3f01bbdf 177 DESTDIR=$RPM_BUILD_ROOT
6b867543 178
0f88fd3d 179install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
d5026e25 180install 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
191rm -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
This page took 0.180637 seconds and 4 git commands to generate.