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č - 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 - 0.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild