Add locate(1) man page alias
This commit is contained in:
parent
f9df939c08
commit
4fc219b6d8
|
@ -33,11 +33,17 @@ mlocate in nearly all aspects, and is fast on SSDs and non-SSDs alike.
|
|||
%meson -Dsystemunitdir=%_unitdir -Dinstall_systemd=true
|
||||
%meson_build
|
||||
|
||||
# Man page alias
|
||||
cat >locate.1 <<EOF
|
||||
.so man1/plocate.1
|
||||
EOF
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/plocate.conf
|
||||
ln -s plocate %{buildroot}%{_bindir}/locate
|
||||
install -p -D -m 0644 -t %{buildroot}%{_mandir}/man1/ locate.1
|
||||
|
||||
# A state file to carry information from %%post to %%posttrans. See
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_saving_state_between_scriptlets.
|
||||
|
@ -81,6 +87,7 @@ fi
|
|||
%_unitdir/plocate-updatedb.service
|
||||
%_unitdir/plocate-updatedb.timer
|
||||
%_mandir/man1/plocate.1*
|
||||
%_mandir/man1/locate.1*
|
||||
%_mandir/man5/updatedb.conf.5*
|
||||
%_mandir/man8/plocate-build.8*
|
||||
%_mandir/man8/updatedb.8*
|
||||
|
|
Loading…
Reference in New Issue