info:mgetty.spec -devel

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Wto, 6 Paź 1998, 18:46:11 CEST


Tym razem cos malego ...

Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu
-------------- następna część ---------
Summary:     Smart getty replacement for data and fax modems
Summary(pl): Zamiennik getty podczas połączeń modemowych
Name:        mgetty
Version:     1.1.14
Release:     4d
Source:      ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/%{name}%{version}-Apr02.tar.gz
Patch:       %{name}-1.1.5-config.patch
Patch1:      %{name}-makefile.patch
Patch2:      %{name}-1.1.5-sendmail.patch
Patch3:      %{name}-1.1.5-strip.patch
Requires:    libgr-progs
Copyright:   distributable
Group:       Networking/Utilities
Buildroot:   /var/tmp/%{name}-%{version}-%{release}-root
Prereq:      /sbin/install-info
Summary(de): Intelligenter Ersatz für Daten- und Faxmodems 
Summary(fr): Remplacement de getty pour les modems données et fax
Summary(tr): Veri ve faks modemleri için yeni ve akýllý bir getty

%package     sendfax
Summary:     Support for sending and receiving faxes via a faxmodem
Requires:    %{name} = %{version}
Group:       Networking/Utilities
Summary(de): Unterstützung zum Versand und Empfang von Faxnachrichten über ein Faxmodem 
Summary(fr): Gestion de l'envoi et de la réception de fax via un faxmodem
Summary(pl): Programy wspomagające podczas wysyłania i odbierania faxów
Summary(tr): 1 veya 2 sýnýfý modemler üzerinden fax gönderme desteđi

%package     voice
Summary:     Support for modems supporting voice mail
Requires:    %{name} = %{version}
Group:       Networking/Utilities
Summary(de): Support für Modems, die Voice-Mail unterstützen 
Summary(fr): Gestionnaire pour les modems vocaux
Summary(pl): Programy wspomagające transmisję głosu przez modem
Summary(tr): Sesli mektup gönderebilen modemlere destek

%description
This package contains an intelligent getty for allowing logins over a
serial line (such as through a modem). It allows automatic callback
and includes fax support (though mgetty-sendfax needs to be installed to
make full use of it's fax support).

%description -l pl
W pakiecie tym znajduje się inteligentny getty, który umożliwia logowanie
się przez modem. Getty pozwala na automatyczny callback (oddzwonienie) oraz
wspiera obsługę fax-modemów.

%description sendfax
This package includes support for FAX Class 2 modems to send and receive
faxes. It also includes simple FAX queueing support.

%description -l pl sendfax
W pakiecie tym znajdują się programy do obsługi FAX Class 2, jak również
programy wspomagające kolejkowanie wysyłanych faxów.

%description voice
This package includes support for some modems which have voice mail
extensions.

%description -l pl voice
W pakiecie tym znajdują się programy wspomagające transmisję głosu
przez modem.

%description -l de voice
Dieses Paket unterstützt bestimmte Modems mit Voice-Mail-
Erweiterung.

%description -l de
Dieses Paket enthält ein intelligentes getty, das das Anmelden über eine
serielle Leitung, z.B. ein Modem, zuläßt. Es unterstützt automatischen Rückruf
und Fax (für vollständige Fax-Unterstützung muß jedoch mgetty-sendfax
installiert werden.

%description -l de sendfax
Dieses Paket schließt Unterstützung für den Versand und Empfang durch 
Modems der FAX Class 2 ein. Ebenfalls enthalten ist der Support für 
eine einfache FAX-Warteschlange. 

%description -l fr voice
Ce paquetage contient les gestionnaires de certains modems disposant
des extensions voice mail.

%description -l fr
Ce paquetage contient un getty intelligent permettant les logins sur une
ligne série (via un modem, par exemple). Il autorise le rappel automatique
et contient une gestion fax (mgetty-sendfax doit ętre installé pour
utiliser pleinement cette gestion fax).

%description -l fr sendfax
Ce paquetage contient la gestion des modems FAX Classe 2 pour émettre et
recevoir des faxs. Il contient aussi une gestion simple des attentes de fax.

%description -l tr voice
Bu paket sesli mektup uzantýsý olan bazý modemler için destek içerir.

%description -l tr
Bu pakette seri bađlantý üzerinden sisteme giriţe olanak veren, akýllý bir
getty sürümü bulunur. Otomatik arama ve faks desteđi içerir (sađladýđý fax
desteđinin tam olarak kullanýlabilmesi için mgetty-sendfax paketi gerekir).

%description -l tr sendfax
Bu paket 'FAX Class 2' modemleri için faks gönderme ve alma desteđi içerir.
Ayný zamanda basit bir faks kuyruđu desteđi vardýr.

%prep
%setup -q
%patch0 -p1 
%patch1 -p1 
%patch2 -p1 
%patch3 -p1 

%build
make 2>/dev/null
cd voice
make 2>/dev/null

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT/{sbin,var/spool}
make prefix=$RPM_BUILD_ROOT/usr spool=$RPM_BUILD_ROOT/var/spool \
	CONFDIR=$RPM_BUILD_ROOT/etc/mgetty+sendfax install
install callback/callback $RPM_BUILD_ROOT/usr/sbin
install callback/ct $RPM_BUILD_ROOT/usr/bin
strip $RPM_BUILD_ROOT/usr/bin/newslock

gzip -9n $RPM_BUILD_ROOT/usr/info/*

mv $RPM_BUILD_ROOT/usr/sbin/mgetty $RPM_BUILD_ROOT/sbin

# this conflicts with efax
mv $RPM_BUILD_ROOT/usr/man/man1/fax.1 $RPM_BUILD_ROOT/usr/man/man1/mgetty_fax.1

# this conflicts with libgr-progs
rm -f $RPM_BUILD_ROOT/usr/bin/g3topbm
rm -f $RPM_BUILD_ROOT/usr/bin/pbmtog3

# some helpful tools
(cd tools
make prefix=$RPM_BUILD_ROOT/usr spool=$RPM_BUILD_ROOT/var/spool \
	CONFDIR=$RPM_BUILD_ROOT/etc/mgetty+sendfax install
)
# voice mail extensions
(cd voice
install -d $RPM_BUILD_ROOT/var/spool/voice/{messages,incoming}

make prefix=$RPM_BUILD_ROOT/usr spool=$RPM_BUILD_ROOT/var/spool \
	CONFDIR=$RPM_BUILD_ROOT/etc/mgetty+sendfax install

mv $RPM_BUILD_ROOT/usr/sbin/vgetty $RPM_BUILD_ROOT/sbin
install -c voice.conf-dist $RPM_BUILD_ROOT/etc/mgetty+sendfax/voice.conf
)
# don't ship documentation that is executable...
find samples -type f -exec chmod 644 {} \;

for i in autopvf.1 basictopvf.1 lintopvf.1 pvfamp.1 pvfcut.1 pvfecho.1 \
pvffft.1 pvffile.1 pvfmix.1 pvfreverse.1 pvfsine.1 pvfspeed.1 pvftoau.1 \
pvftobasic.1 pvftolin.1 pvftormd.1 pvftovoc.1 pvftowav.1 rmdfile.1 rmdtopvf.1 \
voctopvf.1 wavtopvf.1; do echo .so pvf.1 > $RPM_BUILD_ROOT/usr/man/man1/$i; done

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/install-info /usr/info/mgetty.info.gz /usr/info/dir --entry="* mgetty: (mgetty).		Package to handle faxes, voicemail and more."

%preun
if [ "$1" = 0 ]; then
    /sbin/install-info --delete /usr/info/mgetty.info.gz /usr/info/dir --entry="* mgetty: (mgetty). 	Package to handle faxes, voicemail and more."
fi

%files
%defattr(644, root, root, 755)
%doc FAQ ChangeLog README.1st doc/modems.db samples doc/*.txt
%attr(711, root, root) /sbin/mgetty
%attr(644, root, man) /usr/man/man8/mgetty.8
%attr(644, root, man) /usr/man/man8/callback.8
%attr(644, root, man) /usr/man/man4/mgettydefs.4
/usr/info/mgetty.info-2.gz
/usr/info/mgetty.info-3.gz
/usr/info/mgetty.info-4.gz
/usr/info/mgetty.info.gz
/usr/info/mgetty.info-1.gz
%dir /etc/mgetty+sendfax
%attr(640, root, root) %config %verify(not size mtime md5) /etc/mgetty+sendfax/login.config
%attr(640, root, root) %config %verify(not size mtime md5) /etc/mgetty+sendfax/mgetty.config
%attr(640, root, root) %config %verify(not size mtime md5) /etc/mgetty+sendfax/dialin.config

%files sendfax
%dir /var/spool/fax
%dir /var/spool/fax/incoming
%dir /var/spool/fax/outgoing
%dir /var/spool/fax/outgoing/locks

%attr(755, root, root) /usr/bin/kvg
%attr(711, root, root) /usr/bin/newslock
%attr(711, root, root) /usr/bin/g3cat
%attr(711, root, root) /usr/bin/g32pbm
%attr(755, root, root) /usr/bin/faxspool
%attr(755, root, root) /usr/bin/faxrunq
%attr(755, root, root) /usr/bin/faxq
%attr(755, root, root) /usr/bin/faxrm
%attr(711, root, root) /usr/bin/ct
%attr(711, root, root) /usr/sbin/sendfax
%attr(755, root, root) /usr/sbin/faxrunqd
%attr(711, root, root) /usr/sbin/callback
%dir /usr/lib/mgetty+sendfax
/usr/lib/mgetty+sendfax/*
%attr(644, root, man) /usr/man/man1/g32pbm.1
%attr(644, root, man) /usr/man/man1/g3cat.1
%attr(644, root, man) /usr/man/man1/mgetty_fax.1
%attr(644, root, man) /usr/man/man1/faxspool.1
%attr(644, root, man) /usr/man/man1/faxrunq.1
%attr(644, root, man) /usr/man/man1/faxq.1
%attr(644, root, man) /usr/man/man1/faxrm.1
%attr(644, root, man) /usr/man/man1/coverpg.1
%attr(644, root, man) /usr/man/man5/faxqueue.5
%attr(644, root, man) /usr/man/man8/sendfax.8
%attr(640, root, root) %config %verify(not size mtime md5) /etc/mgetty+sendfax/sendfax.config
%attr(640, root, root) %config %verify(not size mtime md5) /etc/mgetty+sendfax/faxrunq.config
%attr(640, root, root) %config %verify(not size mtime md5) /etc/mgetty+sendfax/faxheader

%files voice
%dir /var/spool/voice
%dir /var/spool/voice/incoming
%dir /var/spool/voice/messages

%attr(711, root, root) /sbin/vgetty
%attr(711, root, root) /usr/bin/vm
%attr(711, root, root) /usr/bin/pvfamp
%attr(711, root, root) /usr/bin/pvfcut
%attr(711, root, root) /usr/bin/pvfecho
%attr(711, root, root) /usr/bin/pvffile
%attr(711, root, root) /usr/bin/pvffft
%attr(711, root, root) /usr/bin/pvfmix
%attr(711, root, root) /usr/bin/pvfreverse
%attr(711, root, root) /usr/bin/pvfsine
%attr(711, root, root) /usr/bin/pvfspeed
%attr(711, root, root) /usr/bin/pvftormd
%attr(711, root, root) /usr/bin/rmdtopvf
%attr(711, root, root) /usr/bin/rmdfile
%attr(711, root, root) /usr/bin/pvftovoc
%attr(711, root, root) /usr/bin/voctopvf
%attr(711, root, root) /usr/bin/pvftolin
%attr(711, root, root) /usr/bin/lintopvf
%attr(711, root, root) /usr/bin/pvftobasic
%attr(711, root, root) /usr/bin/basictopvf
%attr(711, root, root) /usr/bin/pvftoau
%attr(711, root, root) /usr/bin/autopvf
%attr(711, root, root) /usr/bin/pvftowav
%attr(711, root, root) /usr/bin/wavtopvf
%attr(644, root, man) /usr/man/man1/zplay.1
%attr(644, root, man) /usr/man/man1/pvf.1
%attr(644, root, man) /usr/man/man1/pvfamp.1
%attr(644, root, man) /usr/man/man1/pvfcut.1
%attr(644, root, man) /usr/man/man1/pvfecho.1
%attr(644, root, man) /usr/man/man1/pvffile.1
%attr(644, root, man) /usr/man/man1/pvffft.1
%attr(644, root, man) /usr/man/man1/pvfmix.1
%attr(644, root, man) /usr/man/man1/pvfreverse.1
%attr(644, root, man) /usr/man/man1/pvfsine.1
%attr(644, root, man) /usr/man/man1/pvfspeed.1
%attr(644, root, man) /usr/man/man1/pvftormd.1
%attr(644, root, man) /usr/man/man1/rmdtopvf.1
%attr(644, root, man) /usr/man/man1/rmdfile.1
%attr(644, root, man) /usr/man/man1/pvftovoc.1
%attr(644, root, man) /usr/man/man1/voctopvf.1
%attr(644, root, man) /usr/man/man1/pvftolin.1
%attr(644, root, man) /usr/man/man1/lintopvf.1
%attr(644, root, man) /usr/man/man1/pvftobasic.1
%attr(644, root, man) /usr/man/man1/basictopvf.1
%attr(644, root, man) /usr/man/man1/pvftoau.1
%attr(644, root, man) /usr/man/man1/autopvf.1
%attr(644, root, man) /usr/man/man1/pvftowav.1
%attr(644, root, man) /usr/man/man1/wavtopvf.1
%attr(640, root, root) %config %verify(not size mtime md5) /etc/mgetty+sendfax/voice.conf

%changelog
* Tue Oct 06 1998 Wojtek Ślusarczyk <wojtek w shadow.eu.org>
[1.1.14-4d]
- translation modified for pl,
- added %defattr support,
- major changes of the spec file,
- build from non root's account.

* Tue Jun 30 1998 Wojtek Slusarczyk <wojtek w shadow.eu.org>
[1.1.14-4]
- build against glibc-2.1

* Fri Apr 24 1998 Prospector System <bugs w redhat.com>

- translations modified for de, fr, tr

* Fri Apr 10 1998 Cristian Gafton <gafton w redhat.com>
- updated to 1.1.14
- AutoPPP patch
 
* Thu Dec 18 1997 Mike Wangsmo <wanger w redhat.com>
- added more of the documentation files to the rpm

* Wed Oct 29 1997 Otto Hammersmith <otto w redhat.com>
- added install-info support

* Tue Oct 21 1997 Otto Hammersmith <otto w redhat.com>
- updated version

* Wed Oct 15 1997 Erik Troan <ewt w redhat.com>
- now requires libgr-progs instead of netpbm

* Mon Aug 25 1997 Erik Troan <ewt w redhat.com>
- built against glibc



Więcej informacji o liście dyskusyjnej pld-devel-pl