source: projects/specs/branches/6/t/tmpwatch/tmpwatch-vl.spec @ 3137

Revision 3137, 6.7 KB checked in by inagaki, 13 years ago (diff)

update: id3lib, tmpwatch

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