File tmpwatch.spec of Package tmpwatch
#
# spec file for package tmpwatch (Version 2.9.13)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Summary: Watches file system activity, such as /tmp files
Name: tmpwatch
Version: 2.9.13
Release: 63
Url: https://fedorahosted.org/tmpwatch
Source0: %{name}-%{version}.tar.bz2
Source1: tmpwatch.daily
Source2: CMakeLists.txt
License: GPL v2 only
Group: Productivity/Security
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: psmisc cron licenses
BuildRequires: cmake licenses
%description
The tmpwatch utility recursively searches through specified directories
and removes files which have not been accessed in a specified period of
time. tmpwatch is normally used to clean up directories which are used
for temporarily holding files (for example, /tmp)..
There are multiple tools called "tmpwatch", this package contains the
Fedora/Redhat version available at https://fedorahosted.org/tmpwatch
Authors:
--------
Erik Troan <ewt@redhat.com>
Preston Brown <pbrown@redhat.com>
Mike A. Harris <mharris@redhat.com>
Miloslav Trmac <mitr@redhat.com>
%prep
%setup -q
%{__cp} %{S:2} .
%build
export CFLAGS="%{optflags}"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .
%{__make}
%install
%{__make} install DESTDIR=%{buildroot}
%{__mkdir_p} %{buildroot}/etc/cron.daily
%{__cp} %{SOURCE1} %{buildroot}/etc/cron.daily/tmpwatch
chmod +x %{buildroot}/etc/cron.daily/tmpwatch
%{__ln_s} -f /usr/share/doc/licenses/GPL-2.0.txt COPYING
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc ChangeLog NEWS README COPYING
%{_sbindir}/tmpwatch
%{_mandir}/man8/tmpwatch.8*
%config(noreplace) /etc/cron.daily/tmpwatch
%changelog
* Tue Apr 08 2008 crrodriguez@suse.de
- tmpwatch declared GPLv2 only but has no COPYING file [bnc #377839]
* Mon Apr 07 2008 crrodriguez@suse.de
- adding fedora tmpwatch to openSUSE 11
- command tmpwatch does not exist, some man pages are still around [bnc #368527]
* Sun Mar 09 2008 crrodriguez@suse.de
- initial openSUSE package