a008b5
Summary: A utility for removing files based on when they were last accessed
a008b5
Name: tmpwatch
a008b5
Version: 2.11
a008b5
Release: 14%{?dist}
a008b5
URL: https://pagure.io/%{name}/
a008b5
Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
a008b5
License: GPLv2
a008b5
Group: System Environment/Base
a008b5
Requires: psmisc
a008b5
Provides: bundled(gnulib)
a008b5
# configure is looking for /sbin/fuser
a008b5
BuildRequires: psmisc
a008b5
a008b5
%description
a008b5
The tmpwatch utility recursively searches through specified
a008b5
directories and removes files which have not been accessed in a
a008b5
specified period of time.  Tmpwatch is normally used to clean up
a008b5
directories which are used for temporarily holding files (for example,
a008b5
/tmp).  Tmpwatch ignores symlinks, won't switch filesystems and only
a008b5
removes empty directories and regular files.
a008b5
a008b5
%prep
a008b5
%setup -q
a008b5
a008b5
%build
a008b5
%configure
a008b5
make %{?_smp_mflags}
a008b5
a008b5
%install
a008b5
make DESTDIR=%{buildroot} INSTALL='install -p' install
a008b5
a008b5
mkdir -p %{buildroot}%{_bindir}
a008b5
# The $(...) computes /usr/bin => ../../
a008b5
ln -s $(echo %{_bindir} |sed 's,/[^/]\+,/..,g; s,^/,,')%{_sbindir}/tmpwatch \
a008b5
   %{buildroot}%{_bindir}/tmpwatch
a008b5
a008b5
%files
a008b5
%doc AUTHORS COPYING ChangeLog NEWS README
a008b5
%{_bindir}/tmpwatch
a008b5
%{_sbindir}/tmpwatch
a008b5
%{_mandir}/man8/tmpwatch.8*
a008b5
a008b5
%changelog
a008b5
* Thu Aug 09 2018 Jiri Kucera <jkucera@redhat.com> - 2.11-14
a008b5
- Fixed bogus date in %%changelog
a008b5
  Resolves: #1614366
a008b5
a008b5
* Tue Jul 31 2018 Jiri Kucera <jkucera@redhat.com> - 2.11-13
a008b5
- Fix incorrect URL and Source
a008b5
a008b5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-12
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a008b5
a008b5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-11
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a008b5
a008b5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-10
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a008b5
a008b5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-9
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a008b5
a008b5
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-8
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a008b5
a008b5
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-7
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a008b5
a008b5
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-6
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a008b5
a008b5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-5
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a008b5
a008b5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a008b5
a008b5
* Mon Feb 11 2013 Miloslav Trmač <mitr@redhat.com> - 2.11-3
a008b5
- Drop the cron.daily script, systemd default configuration handles the same
a008b5
  places.
a008b5
  Resolves: #906455
a008b5
a008b5
* Tue Aug 21 2012 Miloslav Trmač <mitr@redhat.com> - 2.11-3
a008b5
- Drop no longer necessary %%clean and %%defattr commands.
a008b5
a008b5
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-2
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a008b5
a008b5
* Fri May 25 2012 Miloslav Trmač <mitr@redhat.com> - 2.11-1
a008b5
- Update to tmpwatch-2.11.
a008b5
  Resolves: #694838
a008b5
a008b5
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.3-2
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a008b5
a008b5
* Tue Jul 19 2011 Miloslav Trmač <mitr@redhat.com> - 2.10.3-1
a008b5
- Update to tmpwatch-2.10.3.
a008b5
  Resolves: #722856
a008b5
a008b5
* Thu Mar 31 2011 Miloslav Trmač <mitr@redhat.com> - 2.10.2-1
a008b5
- Update to tmpwatch-2.10.2.
a008b5
  Resolves: #585216
a008b5
a008b5
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-4
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a008b5
a008b5
* Fri Feb  4 2011 Miloslav Trmač <mitr@redhat.com> - 2.10-3
a008b5
- Add Provides: bundled(gnulib)
a008b5
a008b5
* Sat Aug  7 2010 Miloslav Trmač <mitr@redhat.com> - 2.10-2
a008b5
- Document --exclude-pattern in more places
a008b5
  Related: #527425
a008b5
a008b5
* Tue Mar 23 2010 Miloslav Trmač <mitr@redhat.com> - 2.10-1
a008b5
- Update to tmpwatch-2.10.
a008b5
- Drop no longer neceessary references to BuildRoot:
a008b5
a008b5
* Mon Feb  1 2010 Miloslav Trmač <mitr@redhat.com> - 2.9.17-2
a008b5
- Ship COPYING
a008b5
  Resolves: #560690
a008b5
a008b5
* Tue Dec 22 2009 Miloslav Trmač <mitr@redhat.com> - 2.9.17-1
a008b5
- Update to tmpwatch-2.9.17.
a008b5
  Resolves: #548932
a008b5
a008b5
* Thu Oct 15 2009 Miloslav Trmač <mitr@redhat.com> - 2.9.16-1
a008b5
- Update to tmpwatch-2.9.16.
a008b5
- Exclude /tmp/hsperfdata_*.
a008b5
  Resolves: #527425
a008b5
- Preserve timestamps where possible.
a008b5
a008b5
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.15-2
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a008b5
a008b5
* Fri May 22 2009 Miloslav Trmač <mitr@redhat.com> - 2.9.15-1
a008b5
- Update to tmpwatch-2.9.15.
a008b5
- Add a symlink to %%{_bindir}.
a008b5
  Resolves: #494239
a008b5
a008b5
* Mon Mar 23 2009 Miloslav Trmač <mitr@redhat.com> - 2.9.14-1
a008b5
- Update to tmpwatch-2.9.14.
a008b5
a008b5
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.13-3
a008b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a008b5
a008b5
* Sat Feb 23 2008 Miloslav Trmač <mitr@redhat.com> - 2.9.13-2
a008b5
- Package the new documentation files.
a008b5
a008b5
* Sat Feb 23 2008 Miloslav Trmač <mitr@redhat.com> - 2.9.13-1
a008b5
- New home page at https://fedorahosted.org/tmpwatch/ .
a008b5
- tmpwatch is now licensed under GPLv2.
a008b5
- Address issues from reviews by Adel Gadllah and Jason Tibbitts:
a008b5
  - Run (make) with %%{?_smp_mflags}
a008b5
  - Add a comment describing the origin of the tarball to the spec file
a008b5
  - Use a better BuildRoot:
a008b5
a008b5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.9.12-3
a008b5
- Autorebuild for GCC 4.3
a008b5
a008b5
* Fri Dec 14 2007 Miloslav Trmač <mitr@redhat.com> - 2.9.12-2
a008b5
- --atime is -u.  Doh.
a008b5
a008b5
* Fri Dec 14 2007 Miloslav Trmač <mitr@redhat.com> - 2.9.12-1
a008b5
- Fix --nosymlinks description in the man page
a008b5
- Use the maximum of atime, mtime and ctime when checking whether a file is
a008b5
  obsolete
a008b5
  Resolves: #373301
a008b5
a008b5
* Tue Oct 16 2007 Miloslav Trmač <mitr@redhat.com> - 2.9.11-2
a008b5
- Update License:
a008b5
a008b5
* Sat Mar 31 2007 Miloslav Trmac <mitr@redhat.com> - 2.9.11-1
a008b5
- Fix a misleading message in --test
a008b5
  Resolves: 234596
a008b5
- Compress the tarball using bzip2
a008b5
- Move the cron.daily script to a separate source file
a008b5
a008b5
* Sun Nov  5 2006 Miloslav Trmac <mitr@redhat.com> - 2.9.10-1
a008b5
- Reallow --exclude with nonexistent paths
a008b5
  Resolves: 214034
a008b5
a008b5
* Thu Nov  2 2006 Miloslav Trmac <mitr@redhat.com> - 2.9.9-1
a008b5
- Exclude aquota.group and aquota.user files
a008b5
  Resolves: 206258
a008b5
- Don't require the user-specified paths to be absolute
a008b5
a008b5
* Wed Nov  1 2006 Miloslav Trmac <mitr@redhat.com> - 2.9.8-1
a008b5
- Add optional unit suffix to the "hours" (now "time") parameter (original
a008b5
  patch by Alan J Rosenthal <flaps@dgp.toronto.edu>)
a008b5
- Fix some format string vs. arguments mismatches
a008b5
- Fix some rpmlint warnings
a008b5
a008b5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.9.7-1.1
a008b5
- rebuild
a008b5
a008b5
* Sat May  6 2006 Miloslav Trmac <mitr@redhat.com> - 2.9.7-1
a008b5
- Add --nosymlinks (#190691)
a008b5
a008b5
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.9.6-1.2.1
a008b5
- bump again for double-long bug on ppc(64)
a008b5
a008b5
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.9.6-1.2
a008b5
- rebuilt for new gcc4.1 snapshot and glibc changes
a008b5
a008b5
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a008b5
- rebuilt
a008b5
a008b5
* Tue Nov 29 2005 Miloslav Trmac <mitr@redhat.com> - 2.9.6-1
a008b5
- Add --exclude-user (original patch by Brett Pemberton)
a008b5
- Fix too long line in /etc/cron.daily/tmpwatch
a008b5
a008b5
* Fri Nov 11 2005 Miloslav Trmac <mitr@redhat.com> - 2.9.5-1
a008b5
- Fix GPL reference in usage message (#163531, patch by Ville Skyttä)
a008b5
- Convert changelog to UTF-8
a008b5
a008b5
* Mon Jun 20 2005 Miloslav Trmac <mitr@redhat.com> - 2.9.4-1
a008b5
- Add --dirmtime (#91096)
a008b5
- Handle fchdir () failures
a008b5
a008b5
* Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.9.3-1
a008b5
- Silently ignore ENOENT if somebody removes files faster than us (#154960)
a008b5
- Handle failures to exec fuser
a008b5
- Fix check for negative grace periods
a008b5
a008b5
* Sat Mar  5 2005 Miloslav Trmac <mitr@redhat.com> - 2.9.2-2
a008b5
- Rebuild with gcc 4
a008b5
a008b5
* Wed Dec 22 2004 Miloslav Trmac <mitr@redhat.com> - 2.9.2-1
a008b5
- Mention skipping of lost+found in the man page (#143526)
a008b5
a008b5
* Sat Aug 14 2004 Miloslav Trmac <mitr@redhat.com> - 2.9.1-1
a008b5
- Add --exclude, use it to preserve X socket directories (#107069)
a008b5
- Allow multiple directory arguments with relative paths (#91097)
a008b5
- Don't manually strip the binary
a008b5
a008b5
* Fri May 30 2003 Mike A. Harris <mharris@redhat.com> 2.9.0-1
a008b5
- Added Solaris/HPUX support to tmpwatch via patch from Paul Gear (#71288)
a008b5
- Rebuild in rawhide as 2.9.0-1
a008b5
a008b5
* Mon Feb 10 2003 Nalin Dahyabhai <nalin@redhat.com> 2.8.4-5
a008b5
- rebuild
a008b5
a008b5
* Fri Feb  7 2003 Nalin Dahyabhai <nalin@redhat.com> 2.8.4-2
a008b5
- rebuild
a008b5
a008b5
* Tue Oct  8 2002 Mike A. Harris <mharris@redhat.com> 2.8.4-4
a008b5
- All-arch rebuild
a008b5
a008b5
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
a008b5
- automated rebuild
a008b5
a008b5
* Sun May 26 2002 Tim Powers <timp@redhat.com>
a008b5
- automated rebuild
a008b5
a008b5
* Tue May 21 2002 Mike A. Harris <mharris@redhat.com> 2.8.4-1
a008b5
- Bump release and rebuild in new environment
a008b5
a008b5
* Sat Apr 13 2002 Mike A. Harris <mharris@redhat.com> 2.8.3-1
a008b5
- Added support for large files with 64bit offsets by adding to CFLAGS
a008b5
  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 bug (#56961)
a008b5
a008b5
* Sun Jan 27 2002 Mike A. Harris <mharris@redhat.com> 2.8.2-1
a008b5
- Added newlines to logfile messages as per bug #58912
a008b5
a008b5
* Thu Nov  8 2001 Preston Brown <pbrown@redhat.com>
a008b5
- define default SBINDIR in Makefile
a008b5
- incorrect boolean comparison fix
a008b5
a008b5
* Wed Aug 29 2001 Preston Brown <pbrown@redhat.com>
a008b5
- cron script fix (#52785)
a008b5
a008b5
* Tue Aug 28 2001 Preston Brown <pbrown@redhat.com>
a008b5
- rebuild for 5.x, 6.x, 7.x errata
a008b5
a008b5
* Mon Aug 27 2001 Preston Brown <pbrown@redhat.com>
a008b5
- noreplace /etc/cron.daily/tmpwatch
a008b5
a008b5
* Mon Aug  6 2001 Preston Brown <pbrown@redhat.com> 2.8-1
a008b5
- added a "nodirs" option which inhibits removal of empty directories.
a008b5
- Integrated race condition fixes from Martin Macok (#50148)
a008b5
- do not try to remove ext3 journal files (#50522)
a008b5
a008b5
* Tue Jul  3 2001 Preston Brown <pbrown@redhat.com> 2.7.4-1
a008b5
- fix typo in cron script
a008b5
a008b5
* Mon Jul  2 2001 Preston Brown <pbrown@redhat.com>
a008b5
- better checking for directory existence cleaning man cache dirs (#44117)
a008b5
a008b5
* Fri May 11 2001 Trond Eivind Glomsrød <teg@redhat.com>
a008b5
- Handle directories with large files
a008b5
- fix some warnings during compilation
a008b5
a008b5
* Thu Mar 29 2001 Preston Brown <pbrown@redhat.com>
a008b5
- fixed longstanding bug where directories removed while in test mode.
a008b5
a008b5
* Fri Mar  9 2001 Preston Brown <pbrown@redhat.com>
a008b5
- Patch from enrico.scholz@informatik.tu-chemnitz.de allows concurrent 
a008b5
  usage of mtime, ctime, and atime checking (#19550).
a008b5
a008b5
* Fri Jan 05 2001 Preston Brown <pbrown@redhat.com>
a008b5
- increased interval for removal to 30 days for /var/tmp per FHS (#19951)
a008b5
a008b5
* Tue Sep 12 2000 Nalin Dahyabhai <nalin@redhat.com>
a008b5
- use execle() instead of system() to get the correct return code, fixes from
a008b5
  Jeremy Katz <katzj@linuxpower.org>
a008b5
a008b5
* Thu Sep  7 2000 Nalin Dahyabhai <nalin@redhat.com>
a008b5
- rework to not have to fork() (#17286)
a008b5
- set utime() after we're done reading a directory
a008b5
a008b5
* Sat Jun 17 2000 Matt Wilson <msw@redhat.com>
a008b5
- defattr
a008b5
a008b5
* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
a008b5
- FHS compliance
a008b5
a008b5
* Thu May 18 2000 Preston Brown <pbrown@redhat.com>
a008b5
- don't complain about failure to remove non-empty directories.
a008b5
- fix man page path
a008b5
a008b5
* Wed May 17 2000 Preston Brown <pbrown@redhat.com>
a008b5
- support /var/cache/man and /var/catman (FHS 2.1 compliance).
a008b5
a008b5
* Fri May 05 2000 Preston Brown <pbrown@redhat.com>
a008b5
- support for CTIME from jik@kamens.brookline.ma.us
a008b5
- fixes for fuser checks from Ian Burrell <iburrell@digital-integrity.com>.
a008b5
- remove directories when empty without --all flag, to be consistent w/docs.
a008b5
a008b5
* Mon Feb 14 2000 Preston Brown <pbrown@redhat.com>
a008b5
- option to use fuser to see if file in use before removing
a008b5
a008b5
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
a008b5
- fix description
a008b5
- man pages are compressed
a008b5
a008b5
* Tue Jan 18 2000 Preston Brown <pbrown@redhat.com>
a008b5
- null terminal opt struct (#7836)
a008b5
- test flag implies verbose (#2383)
a008b5
a008b5
* Wed Jan 12 2000 Paul Gear <paulgear@bigfoot.com>
a008b5
- HP-UX port (including doco update)
a008b5
- Tweaked Makefile to allow installation into different base directory
a008b5
- Got rid of GETOPT_... defines which didn't do anything, so that short
a008b5
  equivalents for all long options could be defined.
a008b5
- Fixed bug in message() where 'where' file handle was set but unused
a008b5
- Changed most fprintf() calls to message()
a008b5
a008b5
* Mon Aug 30 1999 Preston Brown <pbrown@redhat.com>
a008b5
- skip lost+found directories
a008b5
- option to use file's atime instead of mtime (# 4178)
a008b5
a008b5
* Mon Jun  7 1999 Jeff Johnson <jbj@redhat.com>
a008b5
- cleanup more man pages, this time adding in cvs (#224).
a008b5
a008b5
* Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
a008b5
- I am the new maintainer
a008b5
- fixed cleanup of directories
a008b5
- added --quiet flag
a008b5
- freshen manpage
a008b5
- nice patch from Kevin Vajk <kvajk@ricochet.net> integrated
a008b5
a008b5
* Wed Jun 10 1998 Erik Troan <ewt@redhat.com>
a008b5
- make /etc/cron.daily/tmpwatch executable
a008b5
a008b5
* Tue Jan 13 1998 Erik Troan <ewt@redhat.com>
a008b5
- version 1.5
a008b5
- fixed flags passing
a008b5
- cleaned up message()
a008b5
a008b5
* Wed Oct 22 1997 Erik Troan <ewt@redhat.com>
a008b5
- added man page to package
a008b5
- uses a buildroot and %%attr
a008b5
- fixed error message generation for directories
a008b5
- fixed flag propagation
a008b5
a008b5
* Mon Mar 24 1997 Erik Troan <ewt@redhat.com>
a008b5
- Don't follow symlinks which are specified on the command line
a008b5
- Added a man page
a008b5
a008b5
* Sun Mar 09 1997 Erik Troan <ewt@redhat.com>
a008b5
- Rebuilt to get right permissions on the Alpha (though I have no idea
a008b5
  how they ended up wrong).