From c059fa80b2fe42f73863c0e07a8adc383fc90aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 12 May 2021 14:47:01 +0200 Subject: [PATCH] Conflict with mlocate and provide /bin/locate alias --- plocate.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plocate.spec b/plocate.spec index 0677a4e..3c78e72 100644 --- a/plocate.spec +++ b/plocate.spec @@ -16,6 +16,12 @@ BuildRequires: pkgconfig(liburing) BuildRequires: pkgconfig(libzstd) BuildRequires: libatomic +# The plan is to provide both mlocate and plocate for one or two +# Fedora releases, and then retire mlocate when the bugs in plocate +# have been ironed out. Thus, we only allow one or the other to be +# installed. +Conflicts: mlocate + %description plocate is a locate(1) based on posting lists, giving much faster searches on a much smaller index. It is a drop-in replacement for @@ -32,6 +38,7 @@ mlocate in nearly all aspects, and is fast on SSDs and non-SSDs alike. %meson_install install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/plocate.conf +ln -s plocate %{buildroot}%{_bindir}/locate # A state file to carry information from %%post to %%posttrans. See # https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_saving_state_between_scriptlets. @@ -69,6 +76,7 @@ fi %license COPYING %doc README %attr(02755,-,plocate) %_bindir/plocate +%_bindir/locate %_sbindir/plocate-build %_sbindir/updatedb %_unitdir/plocate-updatedb.service @@ -86,6 +94,7 @@ fi * Wed May 12 2021 Zbigniew Jędrzejewski-Szmek - 1.1.7-1 - Resolve comments from initial review - Start the service and timer in %%posttrans +- Conflict with mlocate and provide /bin/locate alias * Fri Feb 19 2021 Zbigniew Jędrzejewski-Szmek - 1.1.4-1 - First version