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