Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
:
testing
>
mlocate
> _service:tar_git:mlocate.yaml
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:mlocate.yaml of Package mlocate
Name: mlocate Summary: a locate/updatedb implementation Version: 0.26 Release: 0 Group: Applications/File License: GPLv2 URL: https://pagure.io/mlocate SCM: https://pagure.io/mlocate.git Macros: # Openrepos version called harbour-mlocate, latest release - 'legacy_version; 0.26-13' # we need a group - lets use an existing one, and one only(?) the main user has - 'sgid_group;privileged' - 'dbloc;%{_localstatedir}/cache' - 'dbname;%{dbloc}/%{name}.db' - 'debug_build;0' Sources: # https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz - '%{name}-%{version}.tar.gz' - '%{name}-updatedb.conf' - '%{name}-updatedb.service' - '%{name}-updatedb.timer' - '%{name}-updatedb-user.service' - '%{name}-updatedb-user.timer' Description: | mlocate is a locate/updatedb implementation. The 'm' stands for "merging": updatedb reuses the existing database to avoid rereading most of the file system, which makes updatedb faster and does not trash the system caches as much. The locate(1) utility is intended to be completely compatible to slocate. It also attempts to be compatible to GNU locate, when it does not conflict with slocate compatibility. NOTE: this package installs only the programs. You may want to install either %{name}-user-service or %{name}-system-service to create the database and keep it up-to-date. If you are looking for a GUI application, try gmLocate: https://openrepos.net/content/sh6668/gmlocate %if "%{?vendor}" == "chum" PackageName: mlocate Type: console-application Categories: - Utility - FileTools Custom: Repo: https://pagure.io/mlocate.git PackagingRepo: https://gitlab.com/nephros/harbour-mlocate Screenshots: - https://github.com/nephros/sailfish-alpine/raw/obs/screenshot.png Url: Homepage: https://pagure.io/mlocate.git %endif Obsoletes: - harbour-mlocate <= %{legacy_version} Provides: - harbour-mlocate = %{version}-%{release} PkgBR: - glibc-devel - gettext-devel - autoconf - automake RequiresPost: - '%{_libexecdir}/manage-groups' RequiresPostUn: - '%{_libexecdir}/manage-groups' Configure: configure SetupOptions: '-q -n %{name}-%{version}/upstream' ConfigOptions: - -q -C - --prefix=%{_prefix} - --bindir=%{_bindir} - --libdir=%{_libdir} - --includedir=%{_includedir} - --mandir=%{_mandir} - --docdir=%{_docdir} - --disable-nls - --with-gnu-ld Builder: 'none' NoDesktop: true Files: - '%config %{_sysconfdir}/updatedb.conf' - '%{_bindir}/updatedb' - '%attr(2711,root,%{sgid_group}) %{_bindir}/locate' - '%ghost %{dbname}' SubPackages: - Name: service-user Summary: User updatedb timer for mlocate Description: | %{name} systemd timer and service users can enable which will index only their HOME and keep the database under ~/.cache This runs three times per day. After installing, you need to activate it by running: systemctl --user enable mlocate-updatedb-user.timer %if "%{?vendor}" == "chum" PackageName: mlocate user service files DeveloperName: nephros Type: console-application Categories: - Utility - FileTools %endif Group: System/Daemons BuildArch: noarch Obsoletes: - harbour-mlocate-systemd-user <= %{legacy_version} Provides: - harbour-mlocate-systemd-user = %{version}-%{release} RequiresPost: - systemd Files: - '%{_userunitdir}/%{name}-updatedb-user.service' - '%{_userunitdir}/%{name}-updatedb-user.timer' - Name: service-system Summary: System updatedb timer for mlocate Description: | %{name} systemd timer and service which will keep the index up-to-date This runs weekly and updates the system-wide database. %if "%{?vendor}" == "chum" PackageName: mlocate system service files DeveloperName: nephros Type: console-application Categories: - Utility - FileTools %endif Group: System/Daemons BuildArch: noarch Obsoletes: - harbour-mlocate-systemd-system <= %{legacy_version} Provides: - harbour-mlocate-systemd-system = %{version}-%{release} RequiresPost: - systemd Files: - '%{_unitdir}/%{name}-updatedb.service' - '%{_unitdir}/%{name}-updatedb.timer'