Add locate(1) man page alias

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-11-24 09:32:47 +01:00
parent f9df939c08
commit 4fc219b6d8
1 changed files with 7 additions and 0 deletions

View File

@ -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*