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