Browse code

Add mlocate package

Change-Id: I9213b74b47db269b90e19c79f8e6f50c4dd935d3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5406
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

Keerthana K authored on 2018/07/26 07:50:08
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,48 @@
0
+Name:           mlocate
1
+Version:        0.26
2
+Release:        1%{?dist}
3
+Summary:        An utility for finding files by name.
4
+License:        GPL-2.0
5
+URL:            https://pagure.io/mlocate
6
+Source0:        http://releases.pagure.org/mlocate/%{name}-%{version}.tar.xz
7
+%define sha1    %{name}=c6e6d81b25359c51c545f4b8ba0f3b469227fcbc
8
+Vendor:         VMware, Inc.
9
+Distribution:   Photon
10
+Group:          Applications/File
11
+BuildRequires:  sed
12
+BuildRequires:  grep
13
+BuildRequires:  xz
14
+BuildRequires:  gettext
15
+
16
+%description
17
+mlocate is a locate/updatedb implementation.  The 'm' stands for "merging":
18
+updatedb reuses the existing database to avoid rereading most of the file
19
+system, which makes updatedb faster and does not trash the system caches as
20
+much.
21
+
22
+%prep
23
+%setup -q -n %{name}-%{version}
24
+
25
+%build
26
+%configure \
27
+	--localstatedir=%{_localstatedir}/lib \
28
+	--enable-nls \
29
+	--disable-rpath
30
+make %{?_smp_mflags}
31
+
32
+%install
33
+make DESTDIR=%{buildroot} install
34
+mv %{buildroot}/%{_bindir}/locate %{buildroot}/%{_bindir}/%{name}
35
+mv %{buildroot}/%{_bindir}/updatedb %{buildroot}/%{_bindir}/updatedb.%{name}
36
+mv %{buildroot}/%{_mandir}/man1/locate.1 %{buildroot}/%{_mandir}/man1/%{name}.1
37
+
38
+%files
39
+%defattr(-,root,root,-)
40
+%{_bindir}*
41
+%{_mandir}/*
42
+%{_datarootdir}/locale/*
43
+%{_localstatedir}/*
44
+
45
+%changelog
46
+*   Fri Jul 20 2018 Keerthana K <keerthanak@vmware.com> 0.26-1
47
+-   Initial mlocate package for Photon.