]> git.pld-linux.org Git - SPECS.git/blob - mgetty.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / mgetty.spec
1 # TODO:
2 #       - test if it is really usable with system libgsm
3 #       - fix Makefile to remove BR: xorg-lib-libXext-devel
4 #       - check BR: groff
5
6 %define         ver_date        Jun15
7 Summary:        A getty replacement for use with data and fax modems
8 Summary(de.UTF-8):      Intelligenter Ersatz für Daten- und Faxmodems
9 Summary(es.UTF-8):      Un substituto mejor que el getty para módems de datos y fax
10 Summary(fr.UTF-8):      Remplacement de getty pour les modems données et fax
11 Summary(pl.UTF-8):      Zamiennik getty dla modemów i faksmodemów
12 Summary(pt_BR.UTF-8):   Um substituto melhor do que o getty para modems de dados e fax
13 Summary(tr.UTF-8):      Veri ve faks modemleri için yeni ve akıllı bir getty
14 Name:           mgetty
15 Version:        1.1.36
16 Release:        0.3
17 License:        distributable
18 Group:          Applications/Communications
19 Source0:        ftp://alpha.greenie.net/pub/mgetty/source/1.1/%{name}%{version}-%{ver_date}.tar.gz
20 # Source0-md5:  0320e98c6b86bcca48fc5f355b94ead4
21 Source1:        %{name}-sendfax.logrotate
22 Source2:        %{name}-vm.logrotate
23 Source3:        %{name}-ttyS.logrotate
24 Patch0:         %{name}-config.patch
25 Patch1:         %{name}-makekvg.patch
26 Patch2:         %{name}-policy.patch
27 Patch3:         %{name}-imakefile.patch
28 Patch4:         %{name}-install.patch
29 Patch5:         %{name}-manpages.patch
30 Patch6:         %{name}-issue-doc.patch
31 Patch7:         %{name}-makedoc.patch
32 Patch8:         %{name}-system_libgsm.patch
33 Patch9:         %{name}-called-id-patch-current
34 Patch10:        %{name}-voiceconfig.patch
35 Patch11:        %{name}-issue.patch
36 Patch12:        %{name}-force_detect.patch
37 URL:            http://alpha.greenie.net/mgetty/
38 BuildRequires:  libgsm-devel
39 BuildRequires:  texlive
40 BuildRequires:  texinfo
41 BuildRequires:  texi2html
42 BuildRequires:  xorg-cf-files
43 BuildRequires:  xorg-lib-libX11-devel
44 BuildRequires:  xorg-lib-libXext-devel
45 BuildRequires:  xorg-util-gccmakedep
46 BuildRequires:  xorg-util-imake
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %define         viewfax_version         2.5
50
51 %description
52 The mgetty package contains a "smart" getty which allows logins over a
53 serial line (i.e., through a modem). If you're using a Class 2 or 2.0
54 modem, mgetty can receive faxes. If you also need to send faxes,
55 you'll need to install the sendfax program.
56
57 If you'll be dialing in to your system using a modem, you should
58 install the mgetty package. If you'd like to send faxes using mgetty
59 and your modem, you'll need to install the mgetty-sendfax program. If
60 you need a viewer for faxes, you'll also need to install the
61 mgetty-viewfax package.
62
63 %description -l es.UTF-8
64 Este paquete contiene el programa inteligente 'getty' que permite
65 logins a través de una línea serial (usadas con un módem por ejemplo).
66 El programa permite el uso automático de callback y incluye soporte a
67 FAX (el paquete mgetty-sendfax necesita ser instalado para hacer uso
68 total del soporte a FAX).
69
70 %description -l de.UTF-8
71 Dieses Paket enthält ein intelligentes getty, das das Anmelden über
72 eine serielle Leitung, z.B. ein Modem, zuläßt. Es unterstützt
73 automatischen Rückruf und Fax (für vollständige Fax-Unterstützung muß
74 jedoch mgetty-sendfax installiert werden.
75
76 %description -l fr.UTF-8
77 Ce paquetage contient un getty intelligent permettant les logins sur
78 une ligne série (via un modem, par exemple). Il autorise le rappel
79 automatique et contient une gestion fax (mgetty-sendfax doit être
80 installé pour utiliser pleinement cette gestion fax).
81
82 %description -l pl.UTF-8
83 Pakiet mgetty zawiera "mądry" getty, który pozwala na połączenia przez
84 linie szeregowe (tj. przez modem). Jeśli twój modem obsługuje standard
85 Class 2 lub 2.0, mgetty może odbierać faksy. Jeśli potrzebujesz
86 również wysyłać faksy, musisz zainstalować program sendfax.
87
88 Jeśli będziesz się łączył ze swoim systemem używając modemu,
89 powinieneś zainstalować pakiet mgetty. Jeśli chcesz wysyłać faksy
90 używając mgetty, musisz zainstalować pakiet mgetty-sendfax. Jeśli
91 potrzebujesz przeglądarki otrzymanych faksów, musisz również
92 zainstalować pakiet mgetty-viewfax.
93
94 %description -l pt_BR.UTF-8
95 Este pacote contém o programa inteligente 'getty' que permite logins
96 através de uma linha serial (usadas com um modem por exemplo). O
97 programa permite o uso automático de callback e inclui suporte a FAX
98 (o pacote mgetty-sendfax precisa ser instalado para fazer uso total de
99 seu suporte a FAX).
100
101 %description -l tr.UTF-8
102 Bu pakette seri bağlantı üzerinden sisteme girişe olanak veren, akıllı
103 bir getty sürümü bulunur. Otomatik arama ve faks desteği içerir
104 (sağladığı fax desteğinin tam olarak kullanılabilmesi için
105 mgetty-sendfax paketi gerekir).
106
107 %package sendfax
108 Summary:        Provides support for sending faxes over a modem
109 Summary(de.UTF-8):      Unterstützung zum Versand und Empfang von Faxnachrichten über ein Faxmodem
110 Summary(es.UTF-8):      Soporte a envío y recepción de faxes vía faxmódem
111 Summary(fr.UTF-8):      Gestion de l'envoi et de la réception de fax via un faxmodem
112 Summary(pl.UTF-8):      Umożliwia wysyłanie faksów przez modem
113 Summary(pt_BR.UTF-8):   Suporte ao envio e recepção de faxes via faxmodem
114 Summary(tr.UTF-8):      1 veya 2 sınıfı modemler üzerinden fax gönderme desteği
115 Group:          Applications/Communications
116 Requires:       %{name} = %{version}-%{release}
117 Requires:       netpbm-progs
118
119 %description sendfax
120 Sendfax is a standalone backend program for sending fax files. The
121 mgetty program (a getty replacement for handling logins over a serial
122 line) plus sendfax will allow you to send faxes through a Class 2
123 modem.
124
125 If you'd like to send faxes over a Class 2 modem, you'll need to
126 install the mgetty-sendfax and the mgetty packages.
127
128 %description sendfax -l de.UTF-8
129 Dieses Paket schließt Unterstützung für den Versand und Empfang durch
130 Modems der FAX Class 2 ein. Ebenfalls enthalten ist der Support für
131 eine einfache FAX-Warteschlange.
132
133 %description sendfax -l es.UTF-8
134 Este paquete incluye soporte al envío y recepción de faxes en
135 fax-módems clase 2. También incluye soporte sencillo a encadenamiento
136 de faxes.
137
138 %description sendfax -l fr.UTF-8
139 Ce paquetage contient la gestion des modems FAX Classe 2 pour émettre
140 et recevoir des faxs. Il contient aussi une gestion simple des
141 attentes de fax.
142
143 %description sendfax -l pl.UTF-8
144 Sendfax jest samodzielnym programem do wysyłania faksów. Program
145 mgetty (zamiennik getty dla przyjmowania połączeń przez linie
146 szeregowe) + sendfax pozwolą na wysyłanie faksów w standardzie Class
147 2.
148
149 Jeśli chcemy wysyłać faksy przez modem obsługujący standard Class 2,
150 musimy zainstalować pakiety: mgetty-sendfax i mgetty.
151
152 %description sendfax -l pt_BR.UTF-8
153 Este pacote inclui suporte para o envio e recepção de faxes em
154 fax-modems classe 2. Também inclui suporte simples a enfileiramento de
155 faxes.
156
157 %description sendfax -l tr.UTF-8
158 Bu paket 'FAX Class 2' modemleri için faks gönderme ve alma desteği
159 içerir. Aynı zamanda basit bir faks kuyruğu desteği vardır.
160
161 %package voice
162 Summary:        A program for using your modem and mgetty as an answering machine
163 Summary(de.UTF-8):      Support für Modems, die Voice-Mail unterstützen
164 Summary(es.UTF-8):      Soporte para módems con capacidad de mail por voz
165 Summary(fr.UTF-8):      Gestionnaire pour les modems vocaux
166 Summary(pl.UTF-8):      Program pozwalający na wykorzystanie mgetty i modemu jako automatycznej sekretarki
167 Summary(pt_BR.UTF-8):   Suporte para modems com capacidade de mail por voz
168 Summary(tr.UTF-8):      Sesli mektup gönderebilen modemlere destek
169 Group:          Applications/Communications
170 Requires:       %{name} = %{version}-%{release}
171
172 %description voice
173 The mgetty-voice package contains the vgetty system, which enables
174 mgetty and your modem to support voice capabilities. In simple terms,
175 vgetty lets your modem act as an answering machine. How well the
176 system will work depends upon your modem, which may or may not be able
177 to handle this kind of implementation.
178
179 Install mgetty-voice along with mgetty if you'd like to try having
180 your modem act as an answering machine.
181
182 %description voice -l de.UTF-8
183 Dieses Paket unterstützt bestimmte Modems mit Voice-Mail- Erweiterung.
184
185 %description voice -l es.UTF-8
186 Este paquete incluye soporte a algunos módems que tiene extensiones de
187 voice mail.
188
189 %description voice -l fr.UTF-8
190 Ce paquetage contient les gestionnaires de certains modems disposant
191 des extensions voice mail.
192
193 %description voice -l pl.UTF-8
194 Pakiet mgetty-voice zawiera system vgetty, który zezwala mgetty i
195 modemowi na obsługę głosu. Mówiąc krótko, vgetty pozwala modemowi
196 pracować jako automatyczna sekretarka. To, jak dobrze będzie ten
197 system działał, zależy od tego, czy modem obsługuje tego rodzaju
198 funkcje.
199
200 Należy zainstalować mgetty-voice razem z mgetty, jeśli chcemy
201 przemienić swój modem w automatyczną sekretarkę.
202
203 %description voice -l pt_BR.UTF-8
204 Este pacote inclui suporte a alguns modems que têm extensões de voice
205 mail.
206
207 %description voice -l tr.UTF-8
208 Bu paket sesli mektup uzantısı olan bazı modemler için destek içerir.
209
210 %package viewfax
211 Summary:        An X Window System fax viewer
212 Summary(es.UTF-8):      Visualizador de faxes para X11
213 Summary(pl.UTF-8):      Przeglądarka faksów dla X Window System
214 Summary(pt_BR.UTF-8):   Visualizador de faxes para X11
215 Epoch:          1
216 Group:          Applications/Communications
217 Requires:       %{name} = %{version}-%{release}
218
219 %description viewfax
220 Viewfax displays the fax files received using mgetty in an X11 window.
221 Viewfax is capable of zooming in and out on the displayed fax.
222
223 %description viewfax -l es.UTF-8
224 Este paquete ofrece un visor de faxes para X11 con capacidad de zoom.
225
226 %description viewfax -l pl.UTF-8
227 Viewfax jest narzędziem dla X11, którym można przeglądać otrzymane
228 przy pomocy mgetty faksy.
229
230 %description viewfax -l pt_BR.UTF-8
231 Este pacote fornece um visualizador de faxes para X11 com capacidade
232 de zoom.
233
234 %prep
235 %setup -q
236 cp -f policy.h-dist policy.h
237
238 %patch0 -p0
239 %patch1 -p0
240 %patch2 -p1
241 %patch3 -p1
242 %patch4 -p1
243 %patch5 -p1
244 %patch6 -p1
245 %patch7 -p0
246 %patch8 -p1
247 %patch9 -p1
248 %patch10 -p1
249 %patch11 -p1
250 %patch12 -p1
251
252 rm -rf voice/libmgsm
253
254 %build
255 %{__make} \
256         LDFLAGS="%{rpmldflags}"
257 cd voice
258 %{__make} \
259         LDFLAGS="%{rpmldflags}"
260
261 cd ../frontends/X11/viewfax
262 xmkmf
263 %{__make} depend
264 %{__make} \
265         CDEBUGFLAGS="%{rpmcflags}" \
266         EXTRA_LDOPTIONS="%{rpmldflags}"
267
268 %install
269 rm -rf $RPM_BUILD_ROOT
270 install -d $RPM_BUILD_ROOT{/var/spool/voice/{messages,incoming},/sbin,/etc/logrotate.d} \
271         $RPM_BUILD_ROOT%{_libdir}/mgetty+sendfax
272
273 %{__make} install \
274         prefix=$RPM_BUILD_ROOT%{_prefix} \
275         spool=$RPM_BUILD_ROOT/var/spool \
276         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
277         INFODIR=$RPM_BUILD_ROOT%{_infodir} \
278         CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir}/mgetty+sendfax
279
280 install callback/callback $RPM_BUILD_ROOT%{_sbindir}
281 install callback/ct $RPM_BUILD_ROOT%{_bindir}
282
283 mv -f $RPM_BUILD_ROOT%{_sbindir}/mgetty $RPM_BUILD_ROOT/sbin
284
285 # this conflicts with efax
286 mv -f $RPM_BUILD_ROOT%{_mandir}/man1/fax.1 \
287         $RPM_BUILD_ROOT%{_mandir}/man1/mgetty_fax.1
288
289 # voice mail extensions
290 %{__make} install -C voice \
291         prefix=$RPM_BUILD_ROOT%{_prefix} \
292         spool=$RPM_BUILD_ROOT/var/spool \
293         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
294         INFODIR=$RPM_BUILD_ROOT%{_infodir} \
295         CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir}/mgetty+sendfax
296
297 mv -f $RPM_BUILD_ROOT%{_sbindir}/vgetty $RPM_BUILD_ROOT/sbin
298 install voice/voice.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/mgetty+sendfax/voice.conf
299
300 %{__make} install -C frontends/X11/viewfax \
301         DESTDIR=$RPM_BUILD_ROOT
302 %{__make} install.man -C frontends/X11/viewfax \
303         DESTDIR=$RPM_BUILD_ROOT
304
305 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/sendfax
306 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/vm
307 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/ttyS
308
309 mv $RPM_BUILD_ROOT%{_sysconfdir}/mgetty+sendfax/faxspool.rules.sample \
310         $RPM_BUILD_ROOT%{_sysconfdir}/mgetty+sendfax/faxspool.rules
311
312 # make the html documenatation
313 texi2html -monolithic doc/mgetty.texi
314
315 # g3topbm is provided by netpbm-progs (required by mgetty-sendfax)
316 rm -f $RPM_BUILD_ROOT%{_bindir}/g3topbm
317
318 %clean
319 rm -rf $RPM_BUILD_ROOT
320
321 %post   -p      /sbin/postshell
322 -/usr/sbin/fix-info-dir -c %{_infodir}
323
324 %postun -p      /sbin/postshell
325 -/usr/sbin/fix-info-dir -c %{_infodir}
326
327 %files
328 %defattr(644,root,root,755)
329 %doc BUGS ChangeLog README.1st THANKS doc/modems.db
330 %doc samples doc/*.txt mgetty.html faq/SGML/FAQ.sgml
331 %attr(700,root,root) /sbin/mgetty
332 %{_mandir}/man8/mgetty.8*
333 %{_mandir}/man4/mgettydefs.4*
334 %{_infodir}/mgetty.info*
335 %dir %{_sysconfdir}/mgetty+sendfax
336 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mgetty+sendfax/login.config
337 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mgetty+sendfax/mgetty.config
338 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mgetty+sendfax/dialin.config
339 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ttyS
340
341 %files sendfax
342 %defattr(644,root,root,755)
343 %dir /var/spool/fax
344 %dir /var/spool/fax/incoming
345 %attr(1777,root,root) %dir /var/spool/fax/outgoing
346 #%attr(777,root,root) %dir /var/spool/fax/outgoing/locks
347 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mgetty+sendfax/faxspool.rules
348
349 %attr(755,root,root) %{_bindir}/kvg
350 %attr(755,root,root) %{_bindir}/newslock
351 %attr(755,root,root) %{_bindir}/g3cat
352 %attr(755,root,root) %{_bindir}/g32pbm
353 %attr(755,root,root) %{_bindir}/pbm2g3
354 %attr(755,root,root) %{_bindir}/sff2g3
355 %attr(755,root,root) %{_bindir}/faxspool
356 %attr(700,root,root) %{_bindir}/faxrunq
357 %attr(755,root,root) %{_bindir}/faxq
358 %attr(755,root,root) %{_bindir}/faxrm
359 %attr(755,root,root) %{_bindir}/ct
360 %attr(755,root,root) %{_sbindir}/sendfax
361 %attr(755,root,root) %{_sbindir}/faxrunqd
362 %attr(755,root,root) %{_sbindir}/callback
363 %dir %{_libdir}/mgetty+sendfax
364 %{_prefix}/lib/mgetty+sendfax/cour25.pbm
365 %{_prefix}/lib/mgetty+sendfax/cour25n.pbm
366 %{_prefix}/lib/mgetty+sendfax/faxq-helper
367 %{_mandir}/man1/g32pbm.1*
368 %{_mandir}/man1/pbm2g3.1*
369 %{_mandir}/man1/sff2g3.1*
370 %{_mandir}/man1/g3cat.1*
371 %{_mandir}/man1/mgetty_fax.1*
372 %{_mandir}/man1/faxspool.1*
373 %{_mandir}/man1/faxrunq.1*
374 %{_mandir}/man1/faxq.1*
375 %{_mandir}/man1/faxrm.1*
376 %{_mandir}/man1/coverpg.1*
377 %{_mandir}/man5/faxqueue.5*
378 %{_mandir}/man8/sendfax.8*
379 %{_mandir}/man8/callback.8*
380 %{_mandir}/man8/faxrunqd.8*
381 %{_mandir}/man8/faxq-helper.8*
382 %config %{_sysconfdir}/mgetty+sendfax/sendfax.config
383 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mgetty+sendfax/faxrunq.config
384 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mgetty+sendfax/faxheader
385 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/sendfax
386
387 %files voice
388 %defattr(644,root,root,755)
389 %doc voice/doc/* voice/scripts
390 %dir /var/spool/voice
391 %dir /var/spool/voice/incoming
392 %dir /var/spool/voice/messages
393
394 %attr(700,root,root) /sbin/vgetty
395 %attr(755,root,root) %{_bindir}/vm
396 %attr(755,root,root) %{_bindir}/pvfamp
397 %attr(755,root,root) %{_bindir}/pvfcut
398 %attr(755,root,root) %{_bindir}/pvfecho
399 %attr(755,root,root) %{_bindir}/pvffile
400 %attr(755,root,root) %{_bindir}/pvffft
401 %attr(755,root,root) %{_bindir}/pvfmix
402 %attr(755,root,root) %{_bindir}/pvfreverse
403 %attr(755,root,root) %{_bindir}/pvfsine
404 %attr(755,root,root) %{_bindir}/pvfspeed
405 %attr(755,root,root) %{_bindir}/pvftormd
406 %attr(755,root,root) %{_bindir}/rmdtopvf
407 %attr(755,root,root) %{_bindir}/rmdfile
408 %attr(755,root,root) %{_bindir}/pvftovoc
409 %attr(755,root,root) %{_bindir}/voctopvf
410 %attr(755,root,root) %{_bindir}/pvftolin
411 %attr(755,root,root) %{_bindir}/lintopvf
412 %attr(755,root,root) %{_bindir}/pvftobasic
413 %attr(755,root,root) %{_bindir}/basictopvf
414 %attr(755,root,root) %{_bindir}/pvftoau
415 %attr(755,root,root) %{_bindir}/autopvf
416 %attr(755,root,root) %{_bindir}/pvftowav
417 %attr(755,root,root) %{_bindir}/wavtopvf
418 %attr(755,root,root) %{_bindir}/cutbl
419 %attr(755,root,root) %{_bindir}/pvffilter
420 %attr(755,root,root) %{_bindir}/pvfnoise
421
422 %{_mandir}/man1/zplay.1*
423 %{_mandir}/man1/pvf.1*
424 %{_mandir}/man1/pvfamp.1*
425 %{_mandir}/man1/pvfcut.1*
426 %{_mandir}/man1/pvfecho.1*
427 %{_mandir}/man1/pvffile.1*
428 %{_mandir}/man1/pvffft.1*
429 %{_mandir}/man1/pvfmix.1*
430 %{_mandir}/man1/pvfreverse.1*
431 %{_mandir}/man1/pvfsine.1*
432 %{_mandir}/man1/pvfspeed.1*
433 %{_mandir}/man1/pvftormd.1*
434 %{_mandir}/man1/rmdtopvf.1*
435 %{_mandir}/man1/rmdfile.1*
436 %{_mandir}/man1/pvftovoc.1*
437 %{_mandir}/man1/voctopvf.1*
438 %{_mandir}/man1/pvftolin.1*
439 %{_mandir}/man1/lintopvf.1*
440 %{_mandir}/man1/pvftobasic.1*
441 %{_mandir}/man1/basictopvf.1*
442 %{_mandir}/man1/pvftoau.1*
443 %{_mandir}/man1/autopvf.1*
444 %{_mandir}/man1/pvftowav.1*
445 %{_mandir}/man1/wavtopvf.1*
446 %{_mandir}/man1/pvffilter.1*
447 %{_mandir}/man1/pvfnoise.1*
448 %{_mandir}/man8/vgetty.8*
449 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mgetty+sendfax/voice.conf
450 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/vm
451
452 %files viewfax
453 %defattr(644,root,root,755)
454 %doc frontends/X11/viewfax/C* frontends/X11/viewfax/README
455 %attr(755,root,root) %{_bindir}/viewfax
456 %dir %{_libdir}/mgetty+sendfax
457 %{_libdir}/mgetty+sendfax/viewfax.tif
458 %{_mandir}/man1/viewfax.1x*
This page took 0.38476 seconds and 3 git commands to generate.