Blame SPECS/tmpwatch.spec

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