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