File tmpwatch.spec of Package tmpwatch
#
# spec file for package tmpwatch (Version 2.9.13)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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: 2
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]
* Mon Mar 10 2008 crrodriguez@suse.de
- initial openSUSE package