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