1 # TODO: documentation for progs:
2 # - try to get some real man pages (old netpbm? Debian?)
5 %bcond_without svga # don't build ppmsvgalib tool
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): îÁÂ¦Ò Â¦Â̦ÏÔÅË ÄÌÑ ÒÏÂÏÔÉ Ú Ò¦ÚÎÉÍÉ ÇÒÁƦÞÎÉÍÉ ÆÁÊÌÁÍÉ
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
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}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
43 Pakiet netpbm zawiera biblioteki funkcji obs³uguj±cych ró¿ne formaty
44 graficzne, w tym .pbm, .pgm, .pnm, .ppm.
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
53 îÁÂÏÒ ÂÉÂÌÉÏÔÅË ÄÌÑ ÏÂÒÁÂÏÔËÉ ÇÒÁÆÉÞÅÓËÉÈ ÆÁÊÌÏ× ÒÁÚÌÉÞÎÙÈ ÆÏÒÍÁÔÏ×
54 ×ËÌÀÞÁÑ FBM, PBM, PGM, PNM, PPM É REL.
57 îÁÂ¦Ò Â¦Â̦ÏÔÅË ÄÌÑ ÏÂÒÏÂËÉ ÇÒÁƦÞÎÉÈ ÆÁÊÌ¦× Ò¦ÚÎÉÈ ÆÏÒÍÁÔ¦×,
58 ×ËÌÀÞÁÀÞÉ FBM, PBM, PGM, PNM, PPM ÔÁ REL.
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
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.
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.
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.
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.
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.
93 %description devel -l ru
94 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ×ÓÅ ÎÅÏÂÈÏÄÉÍÏÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
95 ÒÁÂÏÔÁÀÝÉÈ Ó ÇÒÁÆÉÞÅÓËÉÍÉ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm.
97 %description devel -l uk
98 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ×ÓÅ ÎÅÏÂȦÄÎÅ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú
99 ÇÒÁƦÞÎÉÍÉ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÝÏ §È ЦÄÔÒÉÍÕ¤ netpbm.
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
112 Static netpbm libraries.
114 %description static -l pl
115 Statyczne biblioteki netpbm.
117 %description static -l pt_BR
118 Bibliotecas estáticas para desenvolvimento com libnetpbm.
120 %description static -l ru
121 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ
122 ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ netpbm.
124 %description static -l uk
125 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÎÁÐÉÓÁÎÎÑ
126 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ netpbm.
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
135 %description rle-static
136 Limited version of rle library from netpbm.
138 %description rle-static -l pl
139 Okrojona wersja biblioteki rle z netpbm.
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
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.
158 If you need to use these conversion scripts, you should install
159 netpbm-progs. You'll also need to install the netpbm package.
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.
165 %description progs -l ru
166 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÒÁÂÏÔÙ Ó ÇÒÁÆÉÞÅÓËÉÍÉ
167 ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm.
169 %description progs -l uk
170 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ÒÏÂÏÔÉ Ú ÇÒÁƦÞÎÉÍ ÆÁÊÌÁÍÉ
171 × ÆÏÒÍÁÔÁÈ, ЦÄÔÒÉÍÕ×ÁÎÉÈ netpbm.
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}
179 %description ppmsvgalib
180 ppmsvgalib - display PPM image on Linux console using svgalib.
182 %description ppmsvgalib -l pl
183 ppmsvgalib - wy¶wietlanie obrazków PPM na konsoli linuksowej przy
194 CFLAGS="%{rpmcflags} -fPIC" \
195 JBIGHDR_DIR=%{_includedir} \
196 JPEGHDR_DIR=%{_includedir} \
197 PNGHDR_DIR=%{_includedir} \
198 TIFFHDR_DIR=%{_includedir} \
199 JBIGLIB=/usr/%{_lib}/libjbig.so << EOF
217 %if "%{_lib}" != "lib"
218 /usr/%{_lib}/libvga.so
221 %{_docdir}/%{name}-%{version}/netpbm.sourceforge.net/doc/
225 rm -rf $RPM_BUILD_ROOT
226 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir}/man{1,3,5}}
231 rm -f PKG/bin/doc.url
232 cp -df PKG/bin/* $RPM_BUILD_ROOT%{_bindir}
233 cp -df PKG/lib/* $RPM_BUILD_ROOT%{_libdir}
234 install PKG/link/*.a $RPM_BUILD_ROOT%{_libdir}
235 install PKG/include/*.h $RPM_BUILD_ROOT%{_includedir}
236 install PKG/man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
237 install PKG/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
238 install PKG/man/man5/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
240 # Install the static-only librle.a
241 install urt/{rle,rle_config}.h $RPM_BUILD_ROOT%{_includedir}
242 install urt/librle.a $RPM_BUILD_ROOT%{_libdir}
244 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
247 rm -rf $RPM_BUILD_ROOT
249 %post -p /sbin/ldconfig
250 %postun -p /sbin/ldconfig
253 %defattr(644,root,root,755)
254 %doc README doc/{COPYRIGHT.PATENT,HISTORY,USERDOC} netpbm.sourceforge.net
255 %attr(755,root,root) %{_libdir}/libnetpbm.so.*.*
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_libdir}/libnetpbm.so
264 %defattr(644,root,root,755)
265 %{_libdir}/libnetpbm.a
268 %defattr(644,root,root,755)
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/*
275 %lang(fi) %{_mandir}/fi/man[15]/*
276 %lang(pl) %{_mandir}/pl/man[15]/*
277 %{?with_svga:%exclude %{_bindir}/ppmsvgalib}
278 %{?with_svga:%exclude %{_mandir}/man1/ppmsvgalib.1*}
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_bindir}/ppmsvgalib
284 %{_mandir}/man1/ppmsvgalib.1*