File tmpwatch.spec of Package tmpwatch

#
# spec file for package tmpwatch
#
# Copyright (c) 2011 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.10.3
Release:        11
Url:            https://fedorahosted.org/tmpwatch
Source0:        https://fedorahosted.org/releases/t/m/tmpwatch/%{name}-%{version}.tar.bz2
Source1:        tmpwatch.daily
License:        GPL-2.0
Group:          Productivity/Security
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       psmisc cron
BuildRequires:  psmisc

%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/Red Hat 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

%build
%configure
%{__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

%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
openSUSE Build Service is sponsored by