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