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