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