-Summary: getty and uugetty
-Summary(de): getty und uugetty
-Summary(fr): getty et uugetty
-Summary(pl): getty i uugetty
-Summary(tr): getty ve uugetty
-Name: getty_ps
-Version: 2.0.7j
-Release: 5
-Group: Utilities/System
-Copyright: Distributable - Copyright 1989,1990 by Paul Sutcliffe Jr.
-Source: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.gz
-Patch0: getty_ps-make.patch
-Patch1: getty_ps-jpm.patch
-Patch2: getty_ps-pipe.patch
-Patch3: getty_ps-glibc.patch
-Patch4: getty_ps-signal.patch
-Patch5: getty_ps-ncurses.patch
-Buildroot: /tmp/%{name}-%{version}-%{release}-root
+Summary: getty and uugetty
+Summary(de): getty und uugetty
+Summary(fr): getty et uugetty
+Summary(pl): getty i uugetty
+Summary(tr): getty ve uugetty
+Name: getty_ps
+Version: 2.0.7j
+Release: 16
+License: distributable - Copyright 1989,1990 by Paul Sutcliffe Jr.
+Group: Applications/System
+Source0: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.gz
+# Source0-md5: 56bd3fd2f9a23ffdf96503f664f5c914
+Patch0: %{name}-misc.patch
+Patch1: %{name}-y2k.patch
+Patch2: %{name}-rb.patch
+Patch3: %{name}-hangup.patch
+Patch4: %{name}-mktemp.patch
+URL: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.lsm
+BuildRequires: ncurses-devel >= 5.2
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-getty and uugetty are used to accept logins on the console or
-a terminal. They can handle answer a modem for dialup connections
+getty and uugetty are used to accept logins on the console or a
+terminal. They can handle answer a modem for dialup connections
(although mgetty is recommended for that purpose).
%description -l de
recommandé pour cet usage.
%description -l pl
-Programy getty i uugetty s± u¿ywane do kontroli logowania na terminalu lub
-konsoli. Mog± odpowiedzieæ na ¿±danie modemu podczas po³±czenia dialup.
-(W tym wypadku jednak mgetty jest polecane w miejsce getty_ps)
+Programy getty i uugetty s± u¿ywane do kontroli logowania na terminalu
+lub konsoli. Mog± odpowiedzieæ na ¿±danie modemu podczas po³±czenia
+dialup. (W tym wypadku jednak mgetty jest polecane w miejsce getty_ps)
%description -l tr
-getty ve uugetty konsol veya terminalerde sisteme giriþ sürecini baþlatmakta
-kullanýlýr. Ayný zamanda çevirmeli að tipi baðlantýlar için modeme yanýt
-verme özelliklerine de sahiptirler (ama bunun için mgetty daha kullanýþlýdýr).
+getty ve uugetty konsol veya terminalerde sisteme giriþ sürecini
+baþlatmakta kullanýlýr. Ayný zamanda çevirmeli að tipi baðlantýlar
+için modeme yanýt verme özelliklerine de sahiptirler (ama bunun için
+mgetty daha kullanýþlýdýr).
%prep
%setup -q
-%patch0 -p1 -b .make
-%patch1 -p1 -b .jpm
-%patch2 -p1 -b .pipe
-%patch3 -p1 -b .noglibc
-%patch4 -p1 -b .signal
-%patch5 -p1 -b .ncurses
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
%build
-make clean
-make
+# clean this ...
+%{__make} clean
+
+%{__make} \
+ CC="%{__cc}" \
+ OPT="%{rpmcflags}" \
+ LIBS="-lncurses"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{sbin,usr/man/{man1,man5},etc,var/log}
+install -d $RPM_BUILD_ROOT/{sbin,usr/share/man/man{1,5},etc}
TOPDIR=$RPM_BUILD_ROOT make install
echo ".so getty.1" > $RPM_BUILD_ROOT%{_mandir}/man1/uugetty.1
-install Examples/gettydefs.high-speed $RPM_BUILD_ROOT/etc/gettydefs
-touch $RPM_BUILD_ROOT/var/log/getty.log
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,5}/*
+install Examples/gettydefs.high-speed $RPM_BUILD_ROOT%{_sysconfdir}/gettydefs
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(644, root, root, 755)
-%doc Examples ANNOUNCE README.linux README.2.0.7j README.hi-speed
-%config(missingok) %verify(not mtime size md5) /etc/gettydefs
-%attr(755, root, root) /sbin/*
+%defattr(644,root,root,755)
+%doc ChangeLog Examples/default/* ANNOUNCE README*
+%config(missingok) %verify(not md5 mtime size) %{_sysconfdir}/gettydefs
+%attr(755,root,root) /sbin/*
%{_mandir}/man[15]/*
-%attr(600, root, man) %ghost /var/log/getty.log
-
-%changelog
-* Sat Dec 19 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.0.7j-5]
-- changed permission on /var/log/getty.log to 600,
-- added gzipping man pages,
-- added using LDFLAGS="-s" to ./configure enviroment,
-- added getty_ps-ncurses.patch for compiling getty_ps against ncurses,
-- added using $RPM_OPT_FLAGS during compile.
-
-* Tue Oct 06 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-- adde pl translation,
-- major modifications of the spec file.
-
-* Mon Aug 10 1998 Jeff Johnson <jbj@redhat.com>
-- rebuilt to include doco.
-
-* Thu May 07 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Wed Mar 26 1997 Erik Troan <ewt@redhat.com>
-- Ported to glibc (I don't know where the last glibc package came from)
-- Rebuilt because it was last built against some broken SPARC headers.