Name: wtmptail Version: 1.4 Release: 1%{?dist} Summary: See users login and logout. Group: Applications/Networking License: GPL URL: http://www.vanheusden.com/wtmptail Source: http://www.vanheusden.com/wtmptail/wtmptail-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Wtmptail is tail for the wtmp-file in a human readable format. The wtmp-file contains information (accounting) on users that have logged-in and out. %prep %setup -q %build CFLAGS="%{optflags}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} # real destination %{__mkdir_p} %{buildroot}%{_bindir} %{__mkdir_p} %{buildroot}%{_mandir}/man1/ # temp dirs in which the makefile puts the output %{__mkdir_p} %{buildroot}/usr/bin %{__mkdir_p} %{buildroot}/usr/share/man/man1/ %{__make} install DESTDIR="%{buildroot}" # now move the files to where the aix toolbox wants them %{__mv} -f %{buildroot}/usr/bin/* %{buildroot}%{_bindir} %{__mv} -f %{buildroot}/usr/share/man/man1/* %{buildroot}%{_mandir}/man1/ %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc license.txt %{_bindir}/wtmptail %{_mandir}/man1/wtmptail.1* %changelog * Fri Mar 09 2007 Folkert van Heusden - 1.4-1 - Adapted for AIX