diff --git a/tmpwatch.daily b/tmpwatch.daily deleted file mode 100644 index 5ab2e74..0000000 --- a/tmpwatch.daily +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/sh -flags=-umc -/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ - -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ - -X '/tmp/hsperfdata_*' 10d /tmp -/usr/sbin/tmpwatch "$flags" 30d /var/tmp -for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do - if [ -d "$d" ]; then - /usr/sbin/tmpwatch "$flags" -f 30d "$d" - fi -done diff --git a/tmpwatch.spec b/tmpwatch.spec index acf1a18..dfc7fba 100644 --- a/tmpwatch.spec +++ b/tmpwatch.spec @@ -1,10 +1,9 @@ Summary: A utility for removing files based on when they were last accessed Name: tmpwatch Version: 2.11 -Release: 2%{?dist} +Release: 3%{?dist} URL: https://fedorahosted.org/tmpwatch/ Source0: https://fedorahosted.org/releases/t/m/tmpwatch/tmpwatch-%{version}.tar.bz2 -Source1: tmpwatch.daily License: GPLv2 Group: System Environment/Base Requires: psmisc @@ -35,18 +34,18 @@ mkdir -p %{buildroot}%{_bindir} ln -s $(echo %{_bindir} |sed 's,/[^/]\+,/..,g; s,^/,,')%{_sbindir}/tmpwatch \ %{buildroot}%{_bindir}/tmpwatch -mkdir -p %{buildroot}/etc/cron.daily -install -p %{SOURCE1} %{buildroot}/etc/cron.daily/tmpwatch -chmod +x %{buildroot}/etc/cron.daily/tmpwatch - %files %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/tmpwatch %{_sbindir}/tmpwatch %{_mandir}/man8/tmpwatch.8* -%config(noreplace) /etc/cron.daily/tmpwatch %changelog +* Mon Feb 11 2013 Miloslav Trmač - 2.11-3 +- Drop the cron.daily script, systemd default configuration handles the same + places. + Resolves: #906455 + * Tue Aug 21 2012 Miloslav Trmač - 2.11-3 - Drop no longer necessary %%clean and %%defattr commands.