2005-11-10 01:52:16 +00:00
|
|
|
Summary: An utility for finding files by name
|
|
|
|
Name: mlocate
|
2010-09-14 14:11:35 +00:00
|
|
|
Version: 0.23.1
|
2011-02-04 21:58:15 +00:00
|
|
|
Release: 4%{?dist}
|
2005-11-10 01:52:16 +00:00
|
|
|
License: GPLv2
|
2008-03-03 03:36:55 +00:00
|
|
|
URL: https://fedorahosted.org/mlocate/
|
2005-11-10 01:52:16 +00:00
|
|
|
Group: Applications/System
|
2010-03-04 17:52:49 +00:00
|
|
|
Source0: https://fedorahosted.org/releases/m/l/mlocate/mlocate-%{version}.tar.xz
|
2005-11-10 01:52:16 +00:00
|
|
|
Source1: updatedb.conf
|
|
|
|
Source2: mlocate.cron
|
2008-11-28 11:37:24 +00:00
|
|
|
Requires(pre): shadow-utils
|
2005-12-01 23:24:05 +00:00
|
|
|
Requires(post): grep, sed
|
2011-02-04 21:58:15 +00:00
|
|
|
Provides: bundled(gnulib)
|
2005-11-10 01:52:16 +00:00
|
|
|
Obsoletes: slocate <= 2.7-30
|
|
|
|
|
|
|
|
%description
|
|
|
|
mlocate is a locate/updatedb implementation. It keeps a database of
|
|
|
|
all existing files and allows you to lookup files by name.
|
|
|
|
|
|
|
|
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 as traditional locate implementations.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2009-01-12 09:40:09 +00:00
|
|
|
%configure --localstatedir=%{_localstatedir}/lib
|
|
|
|
make %{?_smp_mflags} groupname=slocate
|
2005-11-10 01:52:16 +00:00
|
|
|
|
|
|
|
%install
|
2009-01-12 09:40:09 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' groupname=slocate
|
2005-11-10 01:52:16 +00:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.daily}
|
2009-01-12 09:40:09 +00:00
|
|
|
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/updatedb.conf
|
|
|
|
install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/mlocate.cron
|
2009-04-14 10:36:52 +00:00
|
|
|
# %%ghost semantics is so stupid
|
2009-01-12 09:40:09 +00:00
|
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/mlocate/mlocate.db
|
2005-11-10 01:52:16 +00:00
|
|
|
|
|
|
|
%find_lang mlocate
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%pre
|
2009-01-12 09:40:09 +00:00
|
|
|
getent group slocate >/dev/null || groupadd -g 21 -r -f slocate
|
|
|
|
exit 0
|
2005-11-10 01:52:16 +00:00
|
|
|
|
2005-12-01 23:24:05 +00:00
|
|
|
%post
|
|
|
|
if /bin/grep -q '^[^#]*DAILY_UPDATE' %{_sysconfdir}/updatedb.conf; then
|
|
|
|
/bin/sed -i.rpmsave -e '/DAILY_UPDATE/s/^/#/' %{_sysconfdir}/updatedb.conf
|
|
|
|
fi
|
|
|
|
|
2005-11-10 01:52:16 +00:00
|
|
|
%files -f mlocate.lang
|
|
|
|
%defattr(-,root,root,-)
|
2006-03-18 03:49:20 +00:00
|
|
|
%doc AUTHORS COPYING NEWS README
|
2005-11-10 01:52:16 +00:00
|
|
|
/etc/cron.daily/mlocate.cron
|
|
|
|
%config(noreplace) %{_sysconfdir}/updatedb.conf
|
|
|
|
%attr(2711,root,slocate) %{_bindir}/locate
|
|
|
|
%{_bindir}/updatedb
|
|
|
|
%{_mandir}/man*/*
|
2009-01-12 09:40:09 +00:00
|
|
|
%dir %attr(0750,root,slocate) %{_localstatedir}/lib/mlocate
|
|
|
|
%ghost %{_localstatedir}/lib/mlocate/mlocate.db
|
2005-11-10 01:52:16 +00:00
|
|
|
|
|
|
|
%changelog
|
2011-02-04 21:58:15 +00:00
|
|
|
* Fri Feb 4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-4
|
|
|
|
- Add Provides: bundled(gnulib)
|
|
|
|
|
2011-02-04 17:22:34 +00:00
|
|
|
* Fri Feb 4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-3
|
|
|
|
- Exclude /mnt by default
|
|
|
|
Resolves: #674635
|
2011-02-04 20:25:33 +00:00
|
|
|
- Drop %%triggerpostun on slocate - it is long obsolete, and rpm started
|
|
|
|
rejecting "Requries(triggerpostun)"
|
2011-02-04 17:22:34 +00:00
|
|
|
|
2010-09-29 21:48:19 +00:00
|
|
|
* Wed Sep 29 2010 jkeating - 0.23.1-2
|
|
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
|
2010-09-14 14:11:35 +00:00
|
|
|
* Tue Sep 14 2010 Miloslav Trmač <mitr@redhat.com> - 0.23.1-1
|
|
|
|
- Update to mlocate-0.23.1
|
|
|
|
|
2010-08-26 20:31:57 +00:00
|
|
|
* Thu Aug 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.23-1
|
|
|
|
- Update to mlocate-0.23
|
|
|
|
- Don't exclude rootfs, to avoid ambiguity when handling "/"
|
|
|
|
Resolves: #624551
|
|
|
|
|
2010-03-30 13:54:10 +00:00
|
|
|
* Tue Mar 30 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-2
|
|
|
|
- Ignore no-op bind mounts
|
|
|
|
Resolves: #577819
|
|
|
|
|
2010-03-26 13:26:09 +00:00
|
|
|
* Fri Mar 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-1
|
|
|
|
- Update to mlocate-0.22.4
|
|
|
|
|
2010-03-04 17:52:49 +00:00
|
|
|
* Thu Mar 4 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.3-1
|
|
|
|
- Update to mlocate-0.22.3
|
|
|
|
- Remove no longer necessary references to BuildRoot:
|
|
|
|
|
2010-01-15 16:40:50 +00:00
|
|
|
* Fri Jan 15 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.2-2
|
|
|
|
- Add "lustre" to PRUNEFS
|
|
|
|
- Add all nodev filesystems from the Fedora kernel to PRUNEFS, to make
|
|
|
|
(updatedb) work as some users expect
|
|
|
|
|
2009-10-05 12:57:40 +00:00
|
|
|
* Fri Oct 2 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.2-1
|
|
|
|
- Update to mlocate-0.22.2
|
|
|
|
|
2009-09-15 18:34:48 +00:00
|
|
|
* Tue Sep 15 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.1-1
|
|
|
|
- Update to mlocate-0.22.1
|
|
|
|
- Drop Provides: slocate, per NamingGuidelines
|
|
|
|
|
2009-07-25 14:38:00 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-19 15:46:06 +00:00
|
|
|
* Tue May 19 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-2
|
|
|
|
- Add /var/cache/ccache to PRUNEPATHS.
|
|
|
|
|
2009-04-14 10:36:52 +00:00
|
|
|
* Tue Apr 14 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-1
|
|
|
|
- Update to mlocate-0.22
|
|
|
|
|
2009-02-26 01:44:27 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-12 09:40:09 +00:00
|
|
|
* Mon Jan 12 2009 Miloslav Trmač <mitr@redhat.com> - 0.21.1-3
|
|
|
|
- Merge review fixes, based on a patch by Parag AN:
|
|
|
|
- Use %%{_localstatedir}/lib instead of hard-coding /var/lib
|
|
|
|
- Use %%{?_smp_mflags}
|
|
|
|
- Preserve file time stamps
|
|
|
|
- Only create the group if it doesn't exist, hide errors from rpm
|
|
|
|
|
2008-11-28 11:37:24 +00:00
|
|
|
* Fri Nov 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-2
|
|
|
|
- Add .git to PRUNENAMES
|
|
|
|
Resolves: #473227
|
|
|
|
- Avoid a rpmlint warning
|
|
|
|
|
2008-10-28 04:17:08 +00:00
|
|
|
* Tue Oct 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-1
|
|
|
|
- Update to mlocate-0.21
|
|
|
|
Resolves: #461208
|
|
|
|
|
2008-06-30 00:26:54 +00:00
|
|
|
* Mon Jun 30 2008 Miloslav Trmač <mitr@redhat.com> - 0.21-1
|
|
|
|
- Update to mlocate-0.21
|
|
|
|
- Define PRUNENAMES to exclude .svn and .hg
|
|
|
|
|
2008-04-09 22:11:35 +00:00
|
|
|
* Wed Apr 9 2008 Miloslav Trmač <mitr@redhat.com> - 0.20-1
|
|
|
|
- Update to mlocate-0.20
|
|
|
|
|
2008-03-03 03:36:55 +00:00
|
|
|
* Mon Mar 3 2008 Miloslav Trmač <mitr@redhat.com> - 0.19-1
|
|
|
|
- Update to mlocate-0.19
|
|
|
|
- New home page at https://fedorahosted.org/mlocate/ .
|
|
|
|
|
2008-02-19 13:53:59 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.18-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-08-24 23:31:53 +00:00
|
|
|
* Sat Aug 25 2007 Miloslav Trmač <mitr@redhat.com> - 0.18-1
|
|
|
|
- Update to mlocate-0.18
|
|
|
|
- Run updatedb with reduced I/O priority
|
|
|
|
Resolves: #254165
|
|
|
|
|
2007-04-25 17:22:37 +00:00
|
|
|
* Wed Apr 25 2007 Miloslav Trmac <mitr@redhat.com> - 0.17-1
|
|
|
|
- Update to mlocate-0.17
|
|
|
|
Resolves: #237120
|
|
|
|
|
2007-03-06 01:58:28 +00:00
|
|
|
* Tue Mar 6 2007 Miloslav Trmac <mitr@redhat.com> - 0.16-1
|
|
|
|
- Update to mlocate-0.16
|
|
|
|
- Enable PRUNE_BIND_MOUNTS by default
|
|
|
|
Resolves: #221755
|
|
|
|
|
2007-01-05 00:59:37 +00:00
|
|
|
* Fri Jan 5 2007 Miloslav Trmac <mitr@redhat.com> - 0.15-2
|
|
|
|
- Add gfs and gfs2 to PRUNEFS
|
|
|
|
Resolves: #220491
|
|
|
|
|
2006-11-16 03:01:57 +00:00
|
|
|
* Thu Nov 16 2006 Miloslav Trmac <mitr@redhat.com> - 0.15-1
|
|
|
|
- Update to mlocate-0.15
|
|
|
|
Resolves: #215763
|
|
|
|
|
2006-07-12 07:22:06 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.14-2.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-03-18 03:49:20 +00:00
|
|
|
* Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-2
|
|
|
|
- Ship NEWS
|
|
|
|
|
2006-03-18 03:41:27 +00:00
|
|
|
* Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-1
|
|
|
|
- Update to mlocate-0.14
|
|
|
|
|
2006-02-11 04:36:49 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.2
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 12:57:59 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-31 22:50:16 +00:00
|
|
|
* Sat Dec 31 2005 Miloslav Trmac <mitr@redhat.com> - 0.12-1
|
|
|
|
- Update to mlocate-0.12
|
|
|
|
|
2005-12-09 22:42:02 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-12-01 23:24:05 +00:00
|
|
|
* Fri Dec 2 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-2
|
|
|
|
- Comment out DAILY_UPDATE from updatedb.conf (#174693)
|
|
|
|
|
2005-11-10 01:52:16 +00:00
|
|
|
* Thu Nov 10 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-1
|
|
|
|
- Update to mlocate-0.11
|
|
|
|
- Add scriptlets to create group slocate
|
|
|
|
|
|
|
|
* Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.10-0.testing.1
|
|
|
|
- Update to mlocate-0.10
|
|
|
|
|
|
|
|
* Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.09-0.testing.1
|
|
|
|
- Initial build.
|