[mlocate] Update cron packaging for https://fedoraproject.org/wiki/Packaging:CronFiles

Miloslav Trmac mitr at fedoraproject.org
Wed Apr 10 16:38:44 UTC 2013


commit 9aadf10896ffe70caadbdeb9615ed0827988d60e
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Wed Apr 10 18:38:00 2013 +0200

    Update cron packaging for https://fedoraproject.org/wiki/Packaging:CronFiles
    
    Notably, the cron script (previously not %config) was renamed;
    because it was not %config before, we should have liberty to change it
    or move it around yet.

 mlocate.spec |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/mlocate.spec b/mlocate.spec
index d769ec7..88e234f 100644
--- a/mlocate.spec
+++ b/mlocate.spec
@@ -3,13 +3,14 @@
 Summary: An utility for finding files by name
 Name: mlocate
 Version: 0.26
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2
 URL: https://fedorahosted.org/mlocate/
 Group: Applications/System
 Source0: https://fedorahosted.org/releases/m/l/mlocate/mlocate-%{version}.tar.xz
 Source1: updatedb.conf
 Source2: mlocate.cron
+Requires: crontabs
 Requires(pre): shadow-utils
 Requires(post): grep, sed
 Provides: bundled(gnulib)
@@ -35,7 +36,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' groupname=slocate
 
 mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.daily}
 install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/updatedb.conf
-install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/mlocate.cron
+install -p -m 750 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/mlocate
 # %%ghost semantics is so stupid
 touch $RPM_BUILD_ROOT%{_localstatedir}/lib/mlocate/mlocate.db
 
@@ -52,7 +53,7 @@ fi
 
 %files -f mlocate.lang
 %doc AUTHORS COPYING NEWS README
-/etc/cron.daily/mlocate.cron
+%config(noreplace) /etc/cron.daily/mlocate
 %config(noreplace) %{_sysconfdir}/updatedb.conf
 %attr(2711,root,slocate) %{_bindir}/locate
 %{_bindir}/updatedb
@@ -61,6 +62,10 @@ fi
 %ghost %{_localstatedir}/lib/mlocate/mlocate.db
 
 %changelog
+* Wed Apr 10 2013 Miloslav Trmač <mitr at redhat.com> - 0.26-3
+- Update cron packaging for https://fedoraproject.org/wiki/Packaging:CronFiles
+  Notably, the cron script (previously not %%config) was renamed.
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.26-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list