From e2372c0f852bdee440397743cbfc58fbc739da73 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 18:45:49 +0300 Subject: [PATCH] import plocate-1.1.22-5.el10 --- .gitignore | 1 + .plocate.metadata | 1 + SOURCES/plocate.sysusers | 1 + SPECS/plocate.spec | 218 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 221 insertions(+) create mode 100644 .gitignore create mode 100644 .plocate.metadata create mode 100644 SOURCES/plocate.sysusers create mode 100644 SPECS/plocate.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e641a2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/plocate-1.1.22.tar.gz diff --git a/.plocate.metadata b/.plocate.metadata new file mode 100644 index 0000000..4948ac5 --- /dev/null +++ b/.plocate.metadata @@ -0,0 +1 @@ +e8c6791d12d0cfd61203de926ff9c553ca99f3b3 SOURCES/plocate-1.1.22.tar.gz diff --git a/SOURCES/plocate.sysusers b/SOURCES/plocate.sysusers new file mode 100644 index 0000000..ed2917c --- /dev/null +++ b/SOURCES/plocate.sysusers @@ -0,0 +1 @@ +g plocate - diff --git a/SPECS/plocate.spec b/SPECS/plocate.spec new file mode 100644 index 0000000..f385f06 --- /dev/null +++ b/SPECS/plocate.spec @@ -0,0 +1,218 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +Name: plocate +Version: 1.1.22 +# Last release in Fedora was 3. Therefore, let's use 3 to continue that +# sequence seamlessly. +Release: %autorelease -b 3 +Summary: Much faster locate + +# Licensing information taken from README: +# * plocate (except updatedb) - GPL-2.0-or-later +# * updatedb - GPL-2.0-only +License: GPL-2.0-or-later AND GPL-2.0-only +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 +## START: Generated by rpmautospec +* Mon Jun 24 2024 Troy Dawson - 1.1.22-5 +- Bump release for June 2024 mass rebuild + +* Thu May 23 2024 Lukáš Zaoral - 1.1.22-4 +- spec: fix autorelease to be consistent with the base SRPM taken from + Fedora ELN. + +* Thu May 16 2024 Lukáš Zaoral - 1.1.22-3 +- migrate to SPDX license format + +* Thu Jan 25 2024 Fedora Release Engineering - 1.1.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Zbigniew Jędrzejewski-Szmek - 1.1.22-1 +- Version 1.1.22 (rhbz#2259687) + +* Sun Jan 21 2024 Fedora Release Engineering - 1.1.17-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.1.17-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 1.1.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Dec 27 2022 Zbigniew Jędrzejewski-Szmek - 1.1.17-1 +- Version 1.1.17 +- Bump Obsoletes for cover mlocate in F37 and F38. + +* Wed Aug 17 2022 Zbigniew Jędrzejewski-Szmek - 1.1.16-3 +- Update default config to use the defaults in Debian + +* Wed Aug 17 2022 Zbigniew Jędrzejewski-Szmek - 1.1.16-2 +- Ignore caches and ephemeral file system types (rhbz#2033216, + rhbz#2097889) + +* Wed Aug 17 2022 Zbigniew Jędrzejewski-Szmek - 1.1.16-1 +- Version 1.1.16 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.1.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Mar 06 2022 Zbigniew Jędrzejewski-Szmek - 1.1.15-3 +- Add Obsoletes for mlocate versions in F35- (for #2052433) + +* Sat Feb 19 2022 Zbigniew Jędrzejewski-Szmek - 1.1.15-2 +- Add virtual Provides:locate to make upgrades easier (rhbz#2052433) + +* Sat Feb 19 2022 Zbigniew Jędrzejewski-Szmek - 1.1.15-1 +- Version 1.1.15 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.1.13-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* 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 + +* Tue Sep 14 2021 Zbigniew Jędrzejewski-Szmek - 1.1.11-2 +- Upload sources + +* 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 + +## END: Generated by rpmautospec