## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec Name: plocate Version: 1.1.13 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 %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 </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 %ghost %{_sysconfdir}/updatedb.conf %dir %{_sharedstatedir}/plocate %{_sharedstatedir}/plocate/CACHEDIR.TAG %ghost %attr(0640,-,plocate) %verify(not md5 mtime) %{_sharedstatedir}/plocate/plocate.db %changelog * Fri Nov 26 2021 Zbigniew Jędrzejewski-Szmek 1.1.13-4 - Fix mode in %ghost line * Wed Nov 24 2021 Zbigniew Jędrzejewski-Szmek 1.1.13-3 - Add %ghost for /etc/updatedb.conf * Wed Nov 24 2021 Zbigniew Jędrzejewski-Szmek 1.1.13-2 - Add locate(1) man page alias * Wed Nov 24 2021 Zbigniew Jędrzejewski-Szmek 1.1.13-1 - Version 1.1.13 * Fri Oct 29 2021 Zbigniew Jędrzejewski-Szmek 1.1.12-2 - Remove plocate.db when the package is removed * Fri Oct 29 2021 Zbigniew Jędrzejewski-Szmek 1.1.12-1 - Version 1.1.12 * Wed Sep 08 2021 Zbigniew Jędrzejewski-Szmek 1.1.11-1 - Version 1.1.11 * Mon Jun 21 2021 Zbigniew Jędrzejewski-Szmek - 1.1.8-1 - Update to latest version * 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