]> git.pld-linux.org Git - packages/libpng.git/blob - libpng.spec
469a4342518c0da3bb523cffdce0418f3baaa07c
[packages/libpng.git] / libpng.spec
1 Summary:        PNG library
2 Summary(de):    PNG-Library
3 Summary(es):    Biblioteca PNG
4 Summary(fr):    Librarie PNG
5 Summary(pl):    Biblioteka PNG
6 Summary(pt_BR): Biblioteca PNG
7 Summary(tr):    PNG kitaplýðý
8 Name:           libpng
9 Version:        1.2.5
10 Release:        0.3
11 Epoch:          2
12 License:        distributable
13 Group:          Libraries
14 Source0:        ftp://download.sourceforge.net/pub/sourceforge/libpng/%{name}-%{version}.tar.bz2
15 Patch0:         %{name}-pngminus.patch
16 Patch1:         %{name}-badchunks.patch
17 Patch2:         %{name}-opt.patch
18 Patch3:         %{name}-revert.patch
19 Provides:       libpng.so.3
20 URL:            http://www.libpng.org/pub/png/libpng.html
21 BuildRequires:  zlib-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The PNG library is a collection of routines used to create and
26 manipulate PNG format graphics files. The PNG format was designed as a
27 replacement for GIF, with many improvements and extensions.
28
29 %description -l de
30 Die PNG-Library ist eine Sammlung von Routinen zum Erstellen und
31 Bearbeiten von Grafiken im PNG-Format. Das PNG-Format wurde als Ersatz
32 für GIF entwickelt und enthält viele Verbesserungen und Erweiterungen.
33
34 %description -l es
35 Esta biblioteca es una colección de rutinas para crear y manipular
36 archivos gráficos en el formato PNG. Este formato fue proyectado para
37 substituir el
38
39 %description -l fr
40 La librairie PNG est un ensemble de routines utilisées pour créer et
41 manipuler des fichiers graphiques au format PNG. Le format PNG a été
42 élaboré pour remplacer le GIF, avec de nombreuses améliorations et
43 extensions.
44
45 %description -l pl
46 Biblioteki PNG s± kolekcj± form u¿ywanych do tworzenia i manipulowania
47 plikami w formacie graficznym PNG. Format ten zosta³ stworzony jako
48 zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowo¶ciami.
49
50 %description -l pt_BR
51 Esta biblioteca é uma coleção de rotinas para criar e manipular
52 arquivos gráficos no formato PNG. Este formato foi projetado para
53 substituir o formato GIF, com extensões e melhorias.
54
55 %description -l tr
56 PNG kitaplýðý, PNG formatýndaki resim dosyalarýný iþlemeye yönelik
57 yordamlarý içerir. PNG, GIF formatýnýn yerini almak üzere tasarlanmýþ
58 bir resim formatýdýr.
59
60 %package devel
61 Summary:        Header files for libpng
62 Summary(de):    libpng Headers
63 Summary(es):    Archivos de inclusión y bibliotecas estáticas
64 Summary(fr):    en-têtes et bibliothèques statiques
65 Summary(pl):    Pliki nag³ówkowe libpng
66 Summary(pt_BR): Arquivos de inclusão e bibliotecas estáticas
67 Summary(tr):    baþlýk dosyalarý ve statik kitaplýklar
68 Group:          Development/Libraries
69 Requires:       %{name} = %{version}
70 Requires:       zlib-devel
71
72 %description devel
73 The header files are only needed for development of programs using the
74 PNG library.
75
76 %description devel -l de
77 Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
78 PNG-Library benötigt.
79
80 %description devel -l es
81 Archivos de inclusión y bibliotecas estáticas que son necesarios
82 solamente para el desarrollo de programas que usan la biblioteca PNG.
83
84 %description devel -l fr
85 Fichiers d'en-tete et les librairies qui sont requis seulement pour le
86 développement avec la librairie PNG.
87
88 %description devel -l pl
89 W pakiecie tym znajduj± siê pliki nag³ówkowe, przeznaczone dla
90 programistów u¿ywaj±cych bibliotek PNG.
91
92 %description devel -l pt_BR
93 Arquivos de inclusão e bibliotecas estáticas que são necessários
94 somente para o desenvolvimento de programas que usam a biblioteca PNG.
95
96 %description devel -l tr
97 PNG kitaplýðýný kullanan programlar geliþtirmek için gereken
98 kitaplýklar ve baþlýk dosyalarý.
99
100 %package static
101 Summary:        Static PNG libraries
102 Summary(de):    Statischen PNG Libraries
103 Summary(es):    Static libraries for libpng development
104 Summary(pl):    Biblioteki statyczne PNG
105 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libpng
106 Group:          Development/Libraries
107 Requires:       %{name}-devel = %{version}
108
109 %description static
110 Static PNG libraries.
111
112 %description static -l de
113 Statischen PNG Libraries.
114
115 %description static -l es
116 Static libraries for libpng development.
117
118 %description static -l pl
119 Biblioteki statyczne PNG.
120
121 %description static -l pt_BR
122 Bibliotecas estáticas para desenvolvimento com libpng.
123
124 %package progs
125 Summary:        libpng utility programs
126 Summary(pl):    Narzêdzia do plików PNG
127 Group:          Applications/Graphics
128
129 %description progs
130 This package contains utility programs to convert png files to and
131 from pnm files.
132
133 %description progs -l pl
134 Narzêdzia do konwersji plików png z lub do plików pnm.
135
136 %prep
137 %setup -q
138 %patch0 -p1
139 %patch1 -p1
140 %patch2 -p1
141 %patch3 -p1
142
143 %ifarch %{ix86}
144 ln -sf scripts/makefile.gcmmx ./Makefile
145 %else
146 ln -sf scripts/makefile.linux ./Makefile
147 %endif
148
149 %build
150 %{__make} \
151         prefix=%{_prefix} \
152         OPT_FLAGS="%{rpmcflags}"
153 %{__make} -C contrib/pngminus -f makefile.std \
154         OPT_FLAGS="%{rpmcflags}"
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{3,5},%{_pkgconfigdir}}
159
160 %{__make} install \
161         DESTDIR=$RPM_BUILD_ROOT \
162         prefix=%{_prefix} \
163         MANPATH=%{_mandir}
164
165 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
166
167 %clean
168 rm -rf $RPM_BUILD_ROOT
169
170 %post   -p /sbin/ldconfig
171 %postun -p /sbin/ldconfig
172
173 %files
174 %defattr(644,root,root,755)
175 %doc ANNOUNCE CHANGES KNOWNBUG README
176 %attr(755,root,root) %{_libdir}/*.so.*.*
177 %{_libdir}/libpng.so.3
178
179 %files devel
180 %defattr(644,root,root,755)
181 %doc *.txt
182 %attr(755,root,root) %{_bindir}/libpng*-config
183 %attr(755,root,root) %{_libdir}/lib*.so
184 %{_pkgconfigdir}/*
185 %{_includedir}/*
186 %{_mandir}/man?/*
187
188 %files static
189 %defattr(644,root,root,755)
190 %{_libdir}/lib*.a
191
192 %files progs
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/p*
This page took 0.083024 seconds and 3 git commands to generate.