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