tmpwatch-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. Summary: A utility for removing files based on when they were last accessed.
  2. Summary(ja): 古いものから順にファイルを削除するユーティリティ
  3. Name: tmpwatch
  4. Version: 2.9.14
  5. Release: 1%{?_dist_release}
  6. URL: https://fedorahosted.org/tmpwatch/
  7. Source0: %{name}-%{version}.tar.bz2
  8. Source1: tmpwatch.daily
  9. License: GPLv2
  10. Group: System Environment/Base
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Requires: psmisc
  13. %description
  14. The tmpwatch utility recursively searches through specified
  15. directories and removes files which have not been accessed in a
  16. specified period of time. Tmpwatch is normally used to clean up
  17. directories which are used for temporarily holding files (for example,
  18. /tmp). Tmpwatch ignores symlinks, won't switch filesystems and only
  19. removes empty directories and regular files.
  20. %description -l ja
  21. tmpwatch ユーティリティは,指定したディレクトリを再帰的に調べ,
  22. 一定期間アクセスされていないファイルを削除するプログラムです.
  23. tmpwatch は通常一時保存ファイルを置くディレクトリ (例えば /tmp)
  24. を整理するのに使われます.tmpwatch はシンボリックリンクの削除や
  25. ファイルシステムを跨いだ削除は行いません.削除対象は空のディレクトリと
  26. 通常ファイルのみです.
  27. %prep
  28. %setup -q
  29. %build
  30. make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
  31. %install
  32. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  33. make ROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} install
  34. mkdir -p %{buildroot}/etc/cron.daily
  35. cp %{SOURCE1} %{buildroot}/etc/cron.daily/tmpwatch
  36. chmod +x %{buildroot}/etc/cron.daily/tmpwatch
  37. %clean
  38. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  39. %files
  40. %defattr(-,root,root)
  41. %doc ChangeLog NEWS README
  42. %{_sbindir}/tmpwatch
  43. %{_mandir}/man8/tmpwatch.8*
  44. %config(noreplace) /etc/cron.daily/tmpwatch
  45. %changelog
  46. * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.9.14-1
  47. - new upstream release
  48. - spec in utf-8
  49. * Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9.13-1
  50. - new upstream release
  51. - added %%doc section
  52. - added URL:
  53. * Sat Jul 21 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9.11-1vl1
  54. - updated tmpwatch-2.9.11 based on Fedora
  55. * Sat Mar 31 2007 Miloslav Trmac <mitr@redhat.com> - 2.9.11-1
  56. - Fix a misleading message in --test
  57. Resolves: 234596
  58. - Compress the tarball using bzip2
  59. - Move the cron.daily script to a separate source file
  60. * Mon Jun 13 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9.3-1vl1
  61. - updated tmpwatch-2.9.3-1 based on Fedora
  62. * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.9.3-1
  63. - Silently ignore ENOENT if somebody removes files faster than us (#154960)
  64. - Handle failures to exec fuser
  65. - Fix check for negative grace periods
  66. * Wed Dec 22 2004 Miloslav Trmac <mitr@redhat.com> - 2.9.2-1
  67. - Mention skipping of lost+found in the man page (#143526)
  68. * Sat Aug 14 2004 Miloslav Trmac <mitr@redhat.com> - 2.9.1-1
  69. - Add --exclude, use it to preserve X socket directories (#107069)
  70. - Allow multiple directory arguments with relative paths (#91097)
  71. - Don't manually strip the binary
  72. * Mon Dec 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9.0-2vl1
  73. - updated tmpwatch-2.9.0 based on Fedora
  74. - rebuild with new toolchains
  75. - s/Copyright/License/
  76. * Thu Jan 17 2002 Satoshi MACHINO <machino@vinelinux.org> 2.8.1-1vl1
  77. - updated tmpwatch-2.8.1
  78. -- cron script fix (#52785) from RHBA-2001-104
  79. -- changed noreplace of /etc/cron.daily/tmpwatch
  80. - removed Makefile.patch (merged upstream) :)
  81. - fixed %install in spec file
  82. * Wed Apr 25 2001 <sagami@vinelinux.org>
  83. - 2.6.2-2vl2: added ja/cat? definition to cron.daily/tmpwatch script
  84. * Fri Jan 19 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  85. - 2.6.2-2vl1
  86. - based on 2.6.2-2 from Rawhide
  87. - use better macros (Patch100, %%{_sbindir})
  88. - added Japanese summary and description
  89. * Fri Jan 05 2001 Preston Brown <pbrown@redhat.com>
  90. - increased interval for removal to 30 days for /var/tmp per FHS (#19951)
  91. * Tue Sep 12 2000 Nalin Dahyabhai <nalin@redhat.com>
  92. - use execle() instead of system() to get the correct return code, fixes from
  93. Jeremy Katz <katzj@linuxpower.org>
  94. * Thu Sep 7 2000 Nalin Dahyabhai <nalin@redhat.com>
  95. - rework to not have to fork() (#17286)
  96. - set utime() after we're done reading a directory
  97. * Sat Jun 17 2000 Matt Wilson <msw@redhat.com>
  98. - defattr
  99. * Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
  100. - FHS compliance
  101. * Thu May 18 2000 Preston Brown <pbrown@redhat.com>
  102. - don't complain about failure to remove non-empty directories.
  103. - fix man page path
  104. * Wed May 17 2000 Preston Brown <pbrown@redhat.com>
  105. - support /var/cache/man and /var/catman (FHS 2.1 compliance).
  106. * Fri May 05 2000 Preston Brown <pbrown@redhat.com>
  107. - support for CTIME from jik@kamens.brookline.ma.us
  108. - fixes for fuser checks from Ian Burrell <iburrell@digital-integrity.com>.
  109. - remove directories when empty without --all flag, to be consistent w/docs.
  110. * Mon Feb 14 2000 Preston Brown <pbrown@redhat.com>
  111. - option to use fuser to see if file in use before removing
  112. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  113. - fix description
  114. - man pages are compressed
  115. * Tue Jan 18 2000 Preston Brown <pbrown@redhat.com>
  116. - null terminal opt struct (#7836)
  117. - test flag implies verbose (#2383)
  118. * Wed Jan 12 2000 Paul Gear <paulgear@bigfoot.com>
  119. - HP-UX port (including doco update)
  120. - Tweaked Makefile to allow installation into different base directory
  121. - Got rid of GETOPT_... defines which didn't do anything, so that short
  122. equivalents for all long options could be defined.
  123. - Fixed bug in message() where 'where' file handle was set but unused
  124. - Changed most fprintf() calls to message()
  125. * Mon Aug 30 1999 Preston Brown <pbrown@redhat.com>
  126. - skip lost+found directories
  127. - option to use file's atime instead of mtime (# 4178)
  128. * Mon Jun 7 1999 Jeff Johnson <jbj@redhat.com>
  129. - cleanup more man pages, this time adding in cvs (#224).
  130. * Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
  131. - I am the new maintainer
  132. - fixed cleanup of directories
  133. - added --quiet flag
  134. - freshen manpage
  135. - nice patch from Kevin Vajk <kvajk@ricochet.net> integrated
  136. * Wed Jun 10 1998 Erik Troan <ewt@redhat.com>
  137. - make /etc/cron.daily/tmpwatch executable
  138. * Tue Jan 13 1998 Erik Troan <ewt@redhat.com>
  139. - version 1.5
  140. - fixed flags passing
  141. - cleaned up message()
  142. * Wed Oct 22 1997 Erik Troan <ewt@redhat.com>
  143. - added man page to package
  144. - uses a buildroot and %attr
  145. - fixed error message generation for directories
  146. - fixed flag propagation
  147. * Mon Mar 24 1997 Erik Troan <ewt@redhat.com>
  148. - Don't follow symlinks which are specified on the command line
  149. - Added a man page
  150. * Sun Mar 09 1997 Erik Troan <ewt@redhat.com>
  151. - Rebuilt to get right permissions on the Alpha (though I have no idea
  152. how they ended up wrong).