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