Summary: A utility for removing files based on when they were last accessed Name: tmpwatch Version: 2.11 Release: 1 URL: https://fedorahosted.org/tmpwatch/ Source0: https://fedorahosted.org/releases/t/m/tmpwatch/%{name}-%{version}.tar.bz2 License: GPLv2 Group: System Environment/Base BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description The tmpwatch utility recursively searches through specified directories and removes files which have not been accessed in a specified period of time. Tmpwatch is normally used to clean up directories which are used for temporarily holding files (for example, /tmp). Tmpwatch ignores symlinks, won't switch filesystems and only removes empty directories and regular files. %prep %setup -q # fake a as AIX5L V5.1 and XLC/C++ V7 doesn't have one cat > stdbool.h << EOF #ifndef stdbool_h_wrapper #define stdbool_h_wrapper typedef enum {false = 0, true = 1} bool; #endif EOF %build ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip ${RPM_BUILD_ROOT}%{_sbindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/sbin cd usr/sbin ln -sf ../..%{_sbindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AUTHORS COPYING ChangeLog NEWS README %{_sbindir}/* %{_mandir}/man8/* /usr/sbin/* %changelog * Tue Jun 12 2012 Michael Perzl - 2.11-1 - updated to version 2.11 * Thu Sep 22 2011 Michael Perzl - 2.10.3-1 - updated to version 2.10.3 * Fri Feb 11 2011 Michael Perzl - 2.10.1-1 - first version for AIX V5.1 and higher