tmpwatch-vl.spec 6.9 KB

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