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