Name: plocate Version: 1.1.17 Release: %autorelease Summary: Much faster locate License: GPLv2+ URL: https://plocate.sesse.net/ Source0: https://plocate.sesse.net/download/plocate-%{version}.tar.gz Source1: plocate.sysusers BuildRequires: meson BuildRequires: gcc-c++ BuildRequires: systemd-rpm-macros 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 Provides: locate # https://bugzilla.redhat.com/show_bug.cgi?id=2052433 Obsoletes: mlocate < 0.26-500 %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 mlocate in nearly all aspects, and is fast on SSDs and non-SSDs alike. %prep %autosetup -p1 %build %meson -Dsystemunitdir=%_unitdir -Dinstall_systemd=true %meson_build # Man page alias cat >locate.1 <updatedb.conf </dev/null; then systemctl start --no-block plocate-updatedb.timer plocate-updatedb.service || : fi fi %files %license COPYING %doc README %attr(02755,-,plocate) %_bindir/plocate %_bindir/locate %_sbindir/plocate-build %_sbindir/updatedb %_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* %_sysusersdir/plocate.conf %config(noreplace) %{_sysconfdir}/updatedb.conf %dir %{_sharedstatedir}/plocate %{_sharedstatedir}/plocate/CACHEDIR.TAG %ghost %attr(0640,-,plocate) %verify(not md5 mtime) %{_sharedstatedir}/plocate/plocate.db %changelog %autochangelog