From e1ac533f4556d0101ceeedaa62991d15547f81f9 Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Fri, 22 May 2009 11:39:25 +0000 Subject: [PATCH] - Update to tmpwatch-2.9.15. - Add a symlink to %%{_bindir}. Resolves: #494239 --- .cvsignore | 2 +- sources | 2 +- tmpwatch.spec | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.cvsignore b/.cvsignore index e22025c..4ae582f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -tmpwatch-2.9.14.tar.bz2 +tmpwatch-2.9.15.tar.bz2 diff --git a/sources b/sources index 1ab65b2..92e0377 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9d77f5f4a1bb93fec08b17d53fef6d4f tmpwatch-2.9.14.tar.bz2 +41ffc6789ffdbf0e35da1ffb655276d1 tmpwatch-2.9.15.tar.bz2 diff --git a/tmpwatch.spec b/tmpwatch.spec index f77512a..932dc1c 100644 --- a/tmpwatch.spec +++ b/tmpwatch.spec @@ -1,6 +1,6 @@ Summary: A utility for removing files based on when they were last accessed Name: tmpwatch -Version: 2.9.14 +Version: 2.9.15 Release: 1 URL: https://fedorahosted.org/tmpwatch/ Source0: https://fedorahosted.org/releases/t/m/tmpwatch/tmpwatch-%{version}.tar.bz2 @@ -28,6 +28,11 @@ make %{?_smp_mflags} rm -rf %{buildroot} make ROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} install +mkdir -p %{buildroot}%{_bindir} +# The $(...) computes /usr/bin => ../../ +ln -s $(echo %{_bindir} |sed 's,/[^/]\+,/..,g; s,^/,,')%{_sbindir}/tmpwatch \ + %{buildroot}%{_bindir}/tmpwatch + mkdir -p %{buildroot}/etc/cron.daily cp %{SOURCE1} %{buildroot}/etc/cron.daily/tmpwatch chmod +x %{buildroot}/etc/cron.daily/tmpwatch @@ -38,11 +43,17 @@ rm -rf %{buildroot} %files %defattr(-,root,root) %doc ChangeLog NEWS README +%{_bindir}/tmpwatch %{_sbindir}/tmpwatch %{_mandir}/man8/tmpwatch.8* %config(noreplace) /etc/cron.daily/tmpwatch %changelog +* Fri May 22 2009 Miloslav Trmač - 2.9.15-1 +- Update to tmpwatch-2.9.15. +- Add a symlink to %%{_bindir}. + Resolves: #494239 + * Mon Mar 23 2009 Miloslav Trmač - 2.9.14-1 - Update to tmpwatch-2.9.14.