tmpwatch-vl.spec 6.7 KB

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