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.
This commit is contained in:
Miloslav Trmač 2013-04-10 18:38:00 +02:00
parent 7f08cec32e
commit 9aadf10896

View File

@ -3,13 +3,14 @@
Summary: An utility for finding files by name Summary: An utility for finding files by name
Name: mlocate Name: mlocate
Version: 0.26 Version: 0.26
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv2 License: GPLv2
URL: https://fedorahosted.org/mlocate/ URL: https://fedorahosted.org/mlocate/
Group: Applications/System Group: Applications/System
Source0: https://fedorahosted.org/releases/m/l/mlocate/mlocate-%{version}.tar.xz Source0: https://fedorahosted.org/releases/m/l/mlocate/mlocate-%{version}.tar.xz
Source1: updatedb.conf Source1: updatedb.conf
Source2: mlocate.cron Source2: mlocate.cron
Requires: crontabs
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): grep, sed Requires(post): grep, sed
Provides: bundled(gnulib) 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} mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.daily}
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/updatedb.conf 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 # %%ghost semantics is so stupid
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/mlocate/mlocate.db touch $RPM_BUILD_ROOT%{_localstatedir}/lib/mlocate/mlocate.db
@ -52,7 +53,7 @@ fi
%files -f mlocate.lang %files -f mlocate.lang
%doc AUTHORS COPYING NEWS README %doc AUTHORS COPYING NEWS README
/etc/cron.daily/mlocate.cron %config(noreplace) /etc/cron.daily/mlocate
%config(noreplace) %{_sysconfdir}/updatedb.conf %config(noreplace) %{_sysconfdir}/updatedb.conf
%attr(2711,root,slocate) %{_bindir}/locate %attr(2711,root,slocate) %{_bindir}/locate
%{_bindir}/updatedb %{_bindir}/updatedb
@ -61,6 +62,10 @@ fi
%ghost %{_localstatedir}/lib/mlocate/mlocate.db %ghost %{_localstatedir}/lib/mlocate/mlocate.db
%changelog %changelog
* Wed Apr 10 2013 Miloslav Trmač <mitr@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@lists.fedoraproject.org> - 0.26-2 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild