# # Conditional build: # _without_svga - don't build ppmsvgalib tool # # TODO: documentation for progs: # - try to get some real man pages (old netpbm? Debian?) # %ifnarch %{ix86} alpha %define _without_svga 1 %endif Summary: A library for handling different graphics file formats Summary(pl): Biblioteki do obs³ugi ró¿nych formatów graficznych Summary(pt_BR): Ferramentas para manipular arquivos graficos nos formatos suportados netpbm Summary(ru): îÁÂÏÒ ÂÉÂÌÉÏÔÅË ÄÌÑ ÒÁÂÏÔÙ Ó ÒÁÚÌÉÞÎÙÍÉ ÇÒÁÆÉÞÅÓËÉÍÉ ÆÁÊÌÁÍÉ Summary(uk): îÁÂ¦Ò Â¦Â̦ÏÔÅË ÄÌÑ ÒÏÂÏÔÉ Ú Ò¦ÚÎÉÍÉ ÇÒÁƦÞÎÉÍÉ ÆÁÊÌÁÍÉ Name: netpbm Version: 10.17 Release: 0.1 License: Freeware Group: Libraries Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tgz # Source0-md5: 2d806c5a71eda87792a8e2754600deba Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 # Source1-md5: 8fb174f8da02ea01bf72a9dc61be10f1 Source2: %{name}-docs-20030520.tar.bz2 # Source2-md5: 2d6a3965d493def21edfbc3e1aa262e9 Patch0: %{name}-make.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: jbigkit-devel BuildRequires: perl BuildRequires: flex %{!?_without_svga:BuildRequires: svgalib-devel} Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: libgr %description The netpbm package contains a library of functions which support programs for handling various graphics file formats, including .pbm (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps), .ppm (portable pixmaps) and others. %description -l pl Pakiet netpbm zawiera biblioteki funkcji obs³uguj±cych ró¿ne formaty graficzne, w tym .pbm, .pgm, .pnm, .ppm. %description -l pt_BR O pacote netpbm contém bibliotecas de funções que suportam programas para manipular vários formatos gráficos, incluindo .pbm (ortable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps), .ppm (portable pixmaps) e outros %description -l ru îÁÂÏÒ ÂÉÂÌÉÏÔÅË ÄÌÑ ÏÂÒÁÂÏÔËÉ ÇÒÁÆÉÞÅÓËÉÈ ÆÁÊÌÏ× ÒÁÚÌÉÞÎÙÈ ÆÏÒÍÁÔÏ× ×ËÌÀÞÁÑ FBM, PBM, PGM, PNM, PPM É REL. %description -l uk îÁÂ¦Ò Â¦Â̦ÏÔÅË ÄÌÑ ÏÂÒÏÂËÉ ÇÒÁƦÞÎÉÈ ÆÁÊÌ¦× Ò¦ÚÎÉÈ ÆÏÒÍÁÔ¦×, ×ËÌÀÞÁÀÞÉ FBM, PBM, PGM, PNM, PPM ÔÁ REL. %package devel Summary: Development tools for programs which will use the netpbm libraries Summary(pl): Biblioteka netpbm - czê¶æ dla programistów Summary(pt_BR): Arquivos de desenvolvimento usados para libnetpbm Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ netpbm Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ netpbm Group: Development/Libraries Requires: %{name} = %{version} Obsoletes: libgr-devel %description devel The netpbm-devel package contains the header files and programmer's documentation for developing programs which can handle the various graphics file formats supported by the netpbm libraries. Install netpbm-devel if you want to develop programs for handling the graphics file formats supported by the netpbm libraries. You'll also need to have the netpbm package installed. %description devel -l pl Pakiet netpbm-devel zawiera pliki nag³ówkowe i dokumentacjê dla programistów do tworzenia programów obs³uguj±cych formaty graficzne wspierane przez netpbm. %description devel -l pt_BR The netpbm-devel package contains the header files and programmer's documentation for developing programs which can handle the various graphics file formats supported by the netpbm libraries. Install netpbm-devel if you want to develop programs for handling the graphics file formats supported by the netpbm libraries. You'll also need to have the netpbm package installed. %description devel -l ru üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ×ÓÅ ÎÅÏÂÈÏÄÉÍÏÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó ÇÒÁÆÉÞÅÓËÉÍÉ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm. %description devel -l uk ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ×ÓÅ ÎÅÏÂȦÄÎÅ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÇÒÁƦÞÎÉÍÉ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÝÏ §È ЦÄÔÒÉÍÕ¤ netpbm. %package static Summary: Static netpbm libraries Summary(pl): Statyczne biblioteki netpbm Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libnetpbm Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó netpbm Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú netpbm Group: Development/Libraries Requires: %{name}-devel = %{version} Obsoletes: libgr-static %description static Static netpbm libraries. %description static -l pl Statyczne biblioteki netpbm. %description static -l pt_BR Bibliotecas estáticas para desenvolvimento com libnetpbm. %description static -l ru üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ netpbm. %description static -l uk ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÎÁÐÉÓÁÎÎÑ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ netpbm. %package rle-static Summary: Limited rle library Summary(pl): Okrojona biblioteka rle Group: Development/Libraries Requires: %{name}-devel = %{version} Obsoletes: urt-static %description rle-static Limited version of rle library from netpbm. %description rle-static -l pl Okrojona wersja biblioteki rle z netpbm. %package progs Summary: Tools for manipulating graphics files in netpbm supported formats Summary(pl): Narzêdzia do konwersji plików graficznych Summary(ru): õÔÉÌÉÔÙ ÍÁÎÉÐÕÌÉÒÏ×ÁÎÉÑ ÆÁÊÌÁÍÉ ÆÏÒÍÁÔÏ×, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm Summary(uk): õÔÉ̦ÔÉ ÍÁΦÐÕÌÀ×ÁÎÎÑ ÆÁÊÌÁÍÉ ÆÏÒÍÁÔ¦×, ЦÄÔÒÉÍÕ×ÁÎÉÈ netpbm Group: Applications/Graphics Requires: %{name} = %{version} Obsoletes: libgr-progs %description progs The netpbm-progs package contains a group of scripts for manipulating the graphics files in formats which are supported by the netpbm libraries. For example, netpbm-progs includes the rasttopnm script, which will convert a Sun rasterfile into a portable anymap. Netpbm-progs contains many other scripts for converting from one graphics file format to another. If you need to use these conversion scripts, you should install netpbm-progs. You'll also need to install the netpbm package. %description progs -l pl Pakiet netpbm-progs zawiera programy konwertuj±ce pliki graficzne do oraz z formatów obs³ugiwanych przez biblioteki netpbm. %description progs -l ru üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÒÁÂÏÔÙ Ó ÇÒÁÆÉÞÅÓËÉÍÉ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ netpbm. %description progs -l uk ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ÒÏÂÏÔÉ Ú ÇÒÁƦÞÎÉÍ ÆÁÊÌÁÍÉ × ÆÏÒÍÁÔÁÈ, ЦÄÔÒÉÍÕ×ÁÎÉÈ netpbm. %package ppmsvgalib Summary: ppmsvgalib - display PPM image on Linux console using svgalib Summary(pl): ppmsvgalib - wy¶wietlanie obrazków PPM na konsoli przy u¿yciu svgalib Group: Applications/Graphics Requires: %{name} = %{version} %description ppmsvgalib ppmsvgalib - display PPM image on Linux console using svgalib. %description ppmsvgalib -l pl ppmsvgalib - wy¶wietlanie obrazków PPM na konsoli linuksowej przy u¿yciu svgalib. %prep %setup -q -a2 %patch0 -p1 %build %{__make} \ CC=%{__cc} \ CFLAGS="%{rpmcflags} -fPIC" \ JBIGHDR_DIR=%{_includedir} \ JPEGHDR_DIR=%{_includedir} \ PNGHDR_DIR=%{_includedir} \ TIFFHDR_DIR=%{_includedir} \ JBIGLIB=/usr/lib/libjbig.so << EOF gnu regular shared yes libjpeg.so libtiff.so libpng.so libz.so %{_docdir}/%{name}-%{version}/netpbm.sourceforge.net/doc/ EOF %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir}/man{1,3,5}} %{__make} package pkgdir=`pwd`/PKG rm -f PKG/bin/doc.url cp -df PKG/bin/* $RPM_BUILD_ROOT%{_bindir} cp -df PKG/lib/* $RPM_BUILD_ROOT%{_libdir} install PKG/link/*.a $RPM_BUILD_ROOT%{_libdir} install PKG/include/*.h $RPM_BUILD_ROOT%{_includedir} install PKG/man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 install PKG/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3 install PKG/man/man5/*.5 $RPM_BUILD_ROOT%{_mandir}/man5 # Install the static-only librle.a install urt/{rle,rle_config}.h $RPM_BUILD_ROOT%{_includedir} install urt/librle.a $RPM_BUILD_ROOT%{_libdir} bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc README doc/{COPYRIGHT.PATENT,HISTORY,USERDOC} netpbm.sourceforge.net %attr(755,root,root) %{_libdir}/libnetpbm.so.*.* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libnetpbm.so %{_includedir}/*.h %{_mandir}/man3/* %files static %defattr(644,root,root,755) %{_libdir}/libnetpbm.a %files rle-static %defattr(644,root,root,755) %{_libdir}/librle.a %files progs %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %{_mandir}/man[15]/* %lang(fi) %{_mandir}/fi/man[15]/* %lang(pl) %{_mandir}/pl/man[15]/* %{!?_without_svga:%exclude %{_bindir}/ppmsvgalib} %{!?_without_svga:%exclude %{_mandir}/man1/ppmsvgalib.1*} %if 0%{!?_without_svga:1} %files ppmsvgalib %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/ppmsvgalib %{_mandir}/man1/ppmsvgalib.1* %endif