source: projects/specs/trunk/t/tmpwatch/tmpwatch-vl.spec @ 521

Revision 521, 6.7 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

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