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.
This commit is contained in:
parent
7f08cec32e
commit
9aadf10896
11
mlocate.spec
11
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@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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user