Name: wtmptail Version: 1.6 Release: 1 Summary: See users login and logout. Group: Applications/Networking License: GPL URL: http://www.vanheusden.com/wtmptail Source0: http://www.vanheusden.com/wtmptail/%{name}-%{version}.tgz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: make %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 %patch0 %build gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 cp %{name} ${RPM_BUILD_ROOT}%{_bindir} chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* cp %{name}.1 ${RPM_BUILD_ROOT}%{_mandir}/man1 chmod 0644 ${RPM_BUILD_ROOT}%{_mandir}/man1/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc license.txt %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* /usr/bin/%{name} %changelog * Mon Aug 31 2009 Michael Perzl - 1.6-1 - first version for AIX V5.1 and higher