diff --git a/mlocate.spec b/mlocate.spec index 9218404..5fab281 100644 --- a/mlocate.spec +++ b/mlocate.spec @@ -1,7 +1,7 @@ Summary: An utility for finding files by name Name: mlocate Version: 0.11 -Release: 1 +Release: 2 License: GPLv2 Group: Applications/System Source0: %{name}-%{version}.tar.gz @@ -9,6 +9,7 @@ Source1: updatedb.conf Source2: mlocate.cron BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires(pre,triggerpostun): shadow-utils +Requires(post): grep, sed Obsoletes: slocate <= 2.7-30 Provides: slocate @@ -45,6 +46,11 @@ rm -rf $RPM_BUILD_ROOT %pre %{_sbindir}/groupadd -g 21 -r -f slocate +%post +if /bin/grep -q '^[^#]*DAILY_UPDATE' %{_sysconfdir}/updatedb.conf; then + /bin/sed -i.rpmsave -e '/DAILY_UPDATE/s/^/#/' %{_sysconfdir}/updatedb.conf +fi + %triggerpostun -- slocate <= 2.7-30 %{_sbindir}/groupadd -g 21 -r -f slocate @@ -60,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT %ghost /var/lib/mlocate/mlocate.db %changelog +* Fri Dec 2 2005 Miloslav Trmac - 0.11-2 +- Comment out DAILY_UPDATE from updatedb.conf (#174693) + * Thu Nov 10 2005 Miloslav Trmac - 0.11-1 - Update to mlocate-0.11 - Add scriptlets to create group slocate