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.UTF-8): Biblioteki do obsługi różnych formatów graficznych
9 Summary(pt_BR.UTF-8): Ferramentas para manipular arquivos graficos nos formatos suportados netpbm
10 Summary(ru.UTF-8): Набор библиотек для работы с различными графическими файлами
11 Summary(uk.UTF-8): Набір бібліотек для роботи з різними графічними файлами
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: xorg-lib-libX11-devel
27 BuildRequires: jbigkit-devel
28 BuildRequires: libjpeg-devel
29 BuildRequires: libpng-devel
30 BuildRequires: libtiff-devel
31 BuildRequires: libxml2-devel
32 BuildRequires: perl-base
33 %{?with_svga:BuildRequires: svgalib-devel}
34 %{!?with_svga:BuildConflicts: svgalib-devel}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
44 %description -l pl.UTF-8
45 Pakiet netpbm zawiera biblioteki funkcji obsługujących różne formaty
46 graficzne, w tym .pbm, .pgm, .pnm, .ppm.
48 %description -l pt_BR.UTF-8
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
54 %description -l ru.UTF-8
55 Набор библиотек для обработки графических файлов различных форматов
56 включая FBM, PBM, PGM, PNM, PPM и REL.
58 %description -l uk.UTF-8
59 Набір бібліотек для обробки графічних файлів різних форматів,
60 включаючи FBM, PBM, PGM, PNM, PPM та REL.
63 Summary: Development tools for programs which will use the netpbm libraries
64 Summary(pl.UTF-8): Biblioteka netpbm - część dla programistów
65 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento usados para libnetpbm
66 Summary(ru.UTF-8): Хедеры и библиотеки для разработки программ, использующих netpbm
67 Summary(uk.UTF-8): Хедери та бібліотеки для розробки програм, що використовують netpbm
68 Group: Development/Libraries
69 Requires: %{name} = %{version}-%{release}
70 Obsoletes: libgr-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.
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.
81 %description devel -l pl.UTF-8
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.
86 %description devel -l pt_BR.UTF-8
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.
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.
95 %description devel -l ru.UTF-8
96 Этот пакет содержит все необходимое для разработки программ,
97 работающих с графическими файлами в форматах, поддерживаемых netpbm.
99 %description devel -l uk.UTF-8
100 Цей пакет містить все необхідне для розробки програм, що працюють з
101 графічними файлами в форматах, що їх підтримує netpbm.
104 Summary: Static netpbm libraries
105 Summary(pl.UTF-8): Statyczne biblioteki netpbm
106 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libnetpbm
107 Summary(ru.UTF-8): Статическая библиотека для программирования с netpbm
108 Summary(uk.UTF-8): Статична бібліотека для програмування з netpbm
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{version}-%{release}
111 Obsoletes: libgr-static
114 Static netpbm libraries.
116 %description static -l pl.UTF-8
117 Statyczne biblioteki netpbm.
119 %description static -l pt_BR.UTF-8
120 Bibliotecas estáticas para desenvolvimento com libnetpbm.
122 %description static -l ru.UTF-8
123 Этот пакет содержит статические библиотеки, необходимые для написания
124 программ, использующих netpbm.
126 %description static -l uk.UTF-8
127 Цей пакет містить статичні бібліотеки, необхідні для написання
128 програм, що використовують netpbm.
131 Summary: Limited rle library
132 Summary(pl.UTF-8): Okrojona biblioteka rle
133 Group: Development/Libraries
134 Requires: %{name}-devel = %{version}-%{release}
135 Obsoletes: urt-static
137 %description rle-static
138 Limited version of rle library from netpbm.
140 %description rle-static -l pl.UTF-8
141 Okrojona wersja biblioteki rle z netpbm.
144 Summary: Tools for manipulating graphics files in netpbm supported formats
145 Summary(pl.UTF-8): Narzędzia do konwersji plików graficznych
146 Summary(ru.UTF-8): Утилиты манипулирования файлами форматов, поддерживаемых netpbm
147 Summary(uk.UTF-8): Утиліти маніпулювання файлами форматів, підтримуваних netpbm
148 Group: Applications/Graphics
149 Requires: %{name} = %{version}-%{release}
150 Obsoletes: libgr-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.
160 If you need to use these conversion scripts, you should install
161 netpbm-progs. You'll also need to install the netpbm package.
163 %description progs -l pl.UTF-8
164 Pakiet netpbm-progs zawiera programy konwertujące pliki graficzne do
165 oraz z formatów obsługiwanych przez biblioteki netpbm.
167 %description progs -l ru.UTF-8
168 Этот пакет включает разнообразные утилиты для работы с графическими
169 файлами в форматах, поддерживаемых netpbm.
171 %description progs -l uk.UTF-8
172 Цей пакет містить різноманітні утиліти для роботи з графічним файлами
173 в форматах, підтримуваних netpbm.
176 Summary: ppmsvgalib - display PPM image on Linux console using svgalib
177 Summary(pl.UTF-8): ppmsvgalib - wyświetlanie obrazków PPM na konsoli przy użyciu svgalib
178 Group: Applications/Graphics
179 Requires: %{name} = %{version}-%{release}
181 %description ppmsvgalib
182 ppmsvgalib - display PPM image on Linux console using svgalib.
184 %description ppmsvgalib -l pl.UTF-8
185 ppmsvgalib - wyświetlanie obrazków PPM na konsoli linuksowej przy
193 # it appends defines to pm_config.h twice if -j > 1
196 CFLAGS="%{rpmcflags} -fPIC" \
197 LDFLAGS="%{rpmldflags}" \
198 JBIGHDR_DIR=%{_includedir} \
199 JPEGHDR_DIR=%{_includedir} \
200 PNGHDR_DIR=%{_includedir} \
201 TIFFHDR_DIR=%{_includedir} \
202 X11LIB=%{_libdir}/libX11.so \
203 JBIGLIB=/usr/%{_lib}/libjbig.so << EOF
223 %if "%{_lib}" != "lib"
224 /usr/%{_lib}/libvga.so
228 %{_docdir}/%{name}-%{version}/netpbm.sourceforge.net/doc/
233 rm -rf $RPM_BUILD_ROOT
234 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir}/man{1,3,5}}
240 rm -f PKG/bin/doc.url
241 cp -df PKG/bin/* $RPM_BUILD_ROOT%{_bindir}
242 cp -df PKG/lib/* $RPM_BUILD_ROOT%{_libdir}
243 install PKG/link/*.a $RPM_BUILD_ROOT%{_libdir}
244 install PKG/include/*.h $RPM_BUILD_ROOT%{_includedir}
245 install PKG/man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
246 install PKG/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
247 install PKG/man/man5/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
249 # Install the static-only librle.a
250 install urt/{rle,rle_config}.h $RPM_BUILD_ROOT%{_includedir}
251 install urt/librle.a $RPM_BUILD_ROOT%{_libdir}
253 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
254 rm -f $RPM_BUILD_ROOT%{_mandir}/README.netpbm-non-english-man-pages
257 rm -rf $RPM_BUILD_ROOT
259 %post -p /sbin/ldconfig
260 %postun -p /sbin/ldconfig
263 %defattr(644,root,root,755)
264 %doc README doc/{COPYRIGHT.PATENT,HISTORY,USERDOC} netpbm.sourceforge.net
265 %attr(755,root,root) %{_libdir}/libnetpbm.so.*.*
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/libnetpbm.so
274 %defattr(644,root,root,755)
275 %{_libdir}/libnetpbm.a
278 %defattr(644,root,root,755)
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_bindir}/*
285 %lang(fi) %{_mandir}/fi/man[15]/*
286 %lang(pl) %{_mandir}/pl/man[15]/*
287 %{?with_svga:%exclude %{_bindir}/ppmsvgalib}
288 %{?with_svga:%exclude %{_mandir}/man1/ppmsvgalib.1*}
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_bindir}/ppmsvgalib
294 %{_mandir}/man1/ppmsvgalib.1*