]> git.pld-linux.org Git - packages/netpbm.git/blob - netpbm.spec
- added URL
[packages/netpbm.git] / netpbm.spec
1 # TODO: documentation for progs:
2 # - try to get some real man pages (old netpbm? Debian?)
3 #
4 # Conditional build:
5 %bcond_without  svga    # don't build ppmsvgalib tool
6 #
7 Summary:        A library for handling different graphics file formats
8 Summary(pl):    Biblioteki do obs³ugi ró¿nych formatów graficznych
9 Summary(pt_BR): Ferramentas para manipular arquivos graficos nos formatos suportados netpbm
10 Summary(ru):    îÁÂÏÒ ÂÉÂÌÉÏÔÅË ÄÌÑ ÒÁÂÏÔÙ Ó ÒÁÚÌÉÞÎÙÍÉ ÇÒÁÆÉÞÅÓËÉÍÉ ÆÁÊÌÁÍÉ
11 Summary(uk):    îÁ¦Ҡ¦Â̦ÏÔÅË ÄÌÑ ÒÏÂÏÔÉ Ú Ò¦ÚÎÉÍÉ ÇÒÁƦÞÎÉÍÉ ÆÁÊÌÁÍÉ
12 Name:           netpbm
13 Version:        10.28
14 Release:        1
15 License:        Freeware
16 Group:          Libraries
17 Source0:        http://dl.sourceforge.net/netpbm/%{name}-%{version}.tgz
18 # Source0-md5:  18ed6d0f1adf75a748df55d5e924fabb
19 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
20 # Source1-md5:  8fb174f8da02ea01bf72a9dc61be10f1
21 Source2:        %{name}-docs-20030520.tar.bz2
22 # Source2-md5:  2d6a3965d493def21edfbc3e1aa262e9
23 Patch0:         %{name}-make.patch
24 Patch1:         %{name}-link.patch
25 URL:            http://netpbm.sourceforge.net/
26 BuildRequires:  flex
27 BuildRequires:  jbigkit-devel
28 BuildRequires:  libjpeg-devel
29 BuildRequires:  libpng-devel
30 BuildRequires:  libtiff-devel
31 BuildRequires:  perl-base
32 %{?with_svga:BuildRequires:     svgalib-devel}
33 %{!?with_svga:BuildConflicts:   svgalib-devel}
34 Obsoletes:      libgr
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 The netpbm package contains a library of functions which support
39 programs for handling various graphics file formats, including .pbm
40 (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps),
41 .ppm (portable pixmaps) and others.
42
43 %description -l pl
44 Pakiet netpbm zawiera biblioteki funkcji obs³uguj±cych ró¿ne formaty
45 graficzne, w tym .pbm, .pgm, .pnm, .ppm.
46
47 %description -l pt_BR
48 O pacote netpbm contém bibliotecas de funções que suportam programas
49 para manipular vários formatos gráficos, incluindo .pbm (ortable
50 bitmaps), .pgm (portable graymaps), .pnm (portable anymaps), .ppm
51 (portable pixmaps) e outros
52
53 %description -l ru
54 îÁÂÏÒ ÂÉÂÌÉÏÔÅË ÄÌÑ ÏÂÒÁÂÏÔËÉ ÇÒÁÆÉÞÅÓËÉÈ ÆÁÊÌÏ× ÒÁÚÌÉÞÎÙÈ ÆÏÒÍÁÔÏ×
55 ×ËÌÀÞÁÑ FBM, PBM, PGM, PNM, PPM É REL.
56
57 %description -l uk
58 îÁ¦Ҡ¦Â̦ÏÔÅË ÄÌÑ ÏÂÒÏÂËÉ ÇÒÁƦÞÎÉÈ ÆÁÊ̦נҦÚÎÉÈ ÆÏÒÍÁÔ¦×,
59 ×ËÌÀÞÁÀÞÉ FBM, PBM, PGM, PNM, PPM ÔÁ REL.
60
61 %package devel
62 Summary:        Development tools for programs which will use the netpbm libraries
63 Summary(pl):    Biblioteka netpbm - czê¶æ dla programistów
64 Summary(pt_BR): Arquivos de desenvolvimento usados para libnetpbm
65 Summary(ru):    èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ netpbm
66 Summary(uk):    èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ netpbm
67 Group:          Development/Libraries
68 Requires:       %{name} = %{version}-%{release}
69 Obsoletes:      libgr-devel
70
71 %description devel
72 The netpbm-devel package contains the header files and programmer's
73 documentation for developing programs which can handle the various
74 graphics file formats supported by the netpbm libraries.
75
76 Install netpbm-devel if you want to develop programs for handling the
77 graphics file formats supported by the netpbm libraries. You'll also
78 need to have the netpbm package installed.
79
80 %description devel -l pl
81 Pakiet netpbm-devel zawiera pliki nag³ówkowe i dokumentacjê dla
82 programistów do tworzenia programów obs³uguj±cych formaty graficzne
83 wspierane przez netpbm.
84
85 %description devel -l pt_BR
86 The netpbm-devel package contains the header files and programmer's
87 documentation for developing programs which can handle the various
88 graphics file formats supported by the netpbm libraries.
89
90 Install netpbm-devel if you want to develop programs for handling the
91 graphics file formats supported by the netpbm libraries. You'll also
92 need to have the netpbm package installed.
93
94 %description devel -l ru
95 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ×ÓÅ ÎÅÏÂÈÏÄÉÍÏÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
96 ÒÁÂÏÔÁÀÝÉÈ Ó ÇÒÁÆÉÞÅÓËÉÍÉ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm.
97
98 %description devel -l uk
99 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÓÅ ÎÅÏÂȦÄÎÅ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú
100 ÇÒÁƦÞÎÉÍÉ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÝÏ §È Ð¦ÄÔÒÉÍÕ¤ netpbm.
101
102 %package static
103 Summary:        Static netpbm libraries
104 Summary(pl):    Statyczne biblioteki netpbm
105 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libnetpbm
106 Summary(ru):    óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó netpbm
107 Summary(uk):    óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú netpbm
108 Group:          Development/Libraries
109 Requires:       %{name}-devel = %{version}-%{release}
110 Obsoletes:      libgr-static
111
112 %description static
113 Static netpbm libraries.
114
115 %description static -l pl
116 Statyczne biblioteki netpbm.
117
118 %description static -l pt_BR
119 Bibliotecas estáticas para desenvolvimento com libnetpbm.
120
121 %description static -l ru
122 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ
123 ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ netpbm.
124
125 %description static -l uk
126 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÎÁÐÉÓÁÎÎÑ
127 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ netpbm.
128
129 %package rle-static
130 Summary:        Limited rle library
131 Summary(pl):    Okrojona biblioteka rle
132 Group:          Development/Libraries
133 Requires:       %{name}-devel = %{version}-%{release}
134 Obsoletes:      urt-static
135
136 %description rle-static
137 Limited version of rle library from netpbm.
138
139 %description rle-static -l pl
140 Okrojona wersja biblioteki rle z netpbm.
141
142 %package progs
143 Summary:        Tools for manipulating graphics files in netpbm supported formats
144 Summary(pl):    Narzêdzia do konwersji plików graficznych
145 Summary(ru):    õÔÉÌÉÔÙ ÍÁÎÉÐÕÌÉÒÏ×ÁÎÉÑ ÆÁÊÌÁÍÉ ÆÏÒÍÁÔÏ×, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm
146 Summary(uk):    õÔÉ̦ÔÉ ÍÁΦÐÕÌÀ×ÁÎÎÑ ÆÁÊÌÁÍÉ ÆÏÒÍÁÔ¦×, Ð¦ÄÔÒÉÍÕ×ÁÎÉÈ netpbm
147 Group:          Applications/Graphics
148 Requires:       %{name} = %{version}-%{release}
149 Obsoletes:      libgr-progs
150
151 %description progs
152 The netpbm-progs package contains a group of scripts for manipulating
153 the graphics files in formats which are supported by the netpbm
154 libraries. For example, netpbm-progs includes the rasttopnm script,
155 which will convert a Sun rasterfile into a portable anymap.
156 Netpbm-progs contains many other scripts for converting from one
157 graphics file format to another.
158
159 If you need to use these conversion scripts, you should install
160 netpbm-progs. You'll also need to install the netpbm package.
161
162 %description progs -l pl
163 Pakiet netpbm-progs zawiera programy konwertuj±ce pliki graficzne do
164 oraz z formatów obs³ugiwanych przez biblioteki netpbm.
165
166 %description progs -l ru
167 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÒÁÂÏÔÙ Ó ÇÒÁÆÉÞÅÓËÉÍÉ
168 ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm.
169
170 %description progs -l uk
171 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ÒÏÂÏÔÉ Ú ÇÒÁƦÞÎÉÍ ÆÁÊÌÁÍÉ
172 × ÆÏÒÍÁÔÁÈ, Ð¦ÄÔÒÉÍÕ×ÁÎÉÈ netpbm.
173
174 %package ppmsvgalib
175 Summary:        ppmsvgalib - display PPM image on Linux console using svgalib
176 Summary(pl):    ppmsvgalib - wy¶wietlanie obrazków PPM na konsoli przy u¿yciu svgalib
177 Group:          Applications/Graphics
178 Requires:       %{name} = %{version}-%{release}
179
180 %description ppmsvgalib
181 ppmsvgalib - display PPM image on Linux console using svgalib.
182
183 %description ppmsvgalib -l pl
184 ppmsvgalib - wy¶wietlanie obrazków PPM na konsoli linuksowej przy
185 u¿yciu svgalib.
186
187 %prep
188 %setup -q -a2
189 %patch0 -p1
190 %patch1 -p1
191
192 %build
193 %{__make} \
194         CC="%{__cc}" \
195         CFLAGS="%{rpmcflags} -fPIC" \
196         JBIGHDR_DIR=%{_includedir} \
197         JPEGHDR_DIR=%{_includedir} \
198         PNGHDR_DIR=%{_includedir} \
199         TIFFHDR_DIR=%{_includedir} \
200         JBIGLIB=/usr/%{_lib}/libjbig.so << EOF
201
202 gnu
203 regular
204 shared
205 y
206
207 libjpeg.so
208
209 libtiff.so
210
211 libpng.so
212
213 libz.so
214
215 %if %{without svga}
216 none
217 %else
218 %if "%{_lib}" != "lib"
219 /usr/%{_lib}/libvga.so
220 %endif
221 %endif
222 %{_docdir}/%{name}-%{version}/netpbm.sourceforge.net/doc/
223 EOF
224
225 %install
226 rm -rf $RPM_BUILD_ROOT
227 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir}/man{1,3,5}}
228
229 %{__make} package \
230         pkgdir=`pwd`/PKG
231
232 rm -f PKG/bin/doc.url
233 cp -df PKG/bin/* $RPM_BUILD_ROOT%{_bindir}
234 cp -df PKG/lib/* $RPM_BUILD_ROOT%{_libdir}
235 install PKG/link/*.a $RPM_BUILD_ROOT%{_libdir}
236 install PKG/include/*.h $RPM_BUILD_ROOT%{_includedir}
237 install PKG/man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
238 install PKG/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
239 install PKG/man/man5/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
240
241 # Install the static-only librle.a
242 install urt/{rle,rle_config}.h $RPM_BUILD_ROOT%{_includedir}
243 install urt/librle.a $RPM_BUILD_ROOT%{_libdir}
244
245 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
246
247 %clean
248 rm -rf $RPM_BUILD_ROOT
249
250 %post   -p /sbin/ldconfig
251 %postun -p /sbin/ldconfig
252
253 %files
254 %defattr(644,root,root,755)
255 %doc README doc/{COPYRIGHT.PATENT,HISTORY,USERDOC} netpbm.sourceforge.net
256 %attr(755,root,root) %{_libdir}/libnetpbm.so.*.*
257
258 %files devel
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_libdir}/libnetpbm.so
261 %{_includedir}/*.h
262 %{_mandir}/man3/*
263
264 %files static
265 %defattr(644,root,root,755)
266 %{_libdir}/libnetpbm.a
267
268 %files rle-static
269 %defattr(644,root,root,755)
270 %{_libdir}/librle.a
271
272 %files progs
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_bindir}/*
275 %{_mandir}/man[15]/*
276 %lang(fi) %{_mandir}/fi/man[15]/*
277 %lang(pl) %{_mandir}/pl/man[15]/*
278 %{?with_svga:%exclude %{_bindir}/ppmsvgalib}
279 %{?with_svga:%exclude %{_mandir}/man1/ppmsvgalib.1*}
280
281 %if %{with svga}
282 %files ppmsvgalib
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_bindir}/ppmsvgalib
285 %{_mandir}/man1/ppmsvgalib.1*
286 %endif
This page took 0.419686 seconds and 4 git commands to generate.