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