Blame SPECS/mlocate.spec

37197d
%global _hardened_build 1
37197d
37197d
Summary: An utility for finding files by name
37197d
Name: mlocate
37197d
Version: 0.26
37197d
Release: 8%{?dist}
37197d
License: GPLv2
37197d
URL: https://pagure.io/mlocate/
37197d
Group: Applications/System
37197d
Source0: https://releases.pagure.org/mlocate/mlocate-%{version}.tar.xz
37197d
Source1: updatedb.conf
37197d
Source2: mlocate.cron
37197d
Requires: crontabs
37197d
Requires(pre): shadow-utils
37197d
Requires(post): grep, sed
37197d
Provides: bundled(gnulib)
37197d
Obsoletes: slocate <= 2.7-30
37197d
BuildRequires: git
37197d
37197d
Patch0001: 0001-Point-the-project-URL-and-bug-reporting-address-at-h.patch
37197d
37197d
%description
37197d
mlocate is a locate/updatedb implementation.  It keeps a database of
37197d
all existing files and allows you to lookup files by name.
37197d
37197d
The 'm' stands for "merging": updatedb reuses the existing database to avoid
37197d
rereading most of the file system, which makes updatedb faster and does not
37197d
trash the system caches as much as traditional locate implementations.
37197d
37197d
%prep
37197d
%autosetup -S git_am
37197d
37197d
%build
37197d
%configure --localstatedir=%{_localstatedir}/lib
37197d
make %{?_smp_mflags} groupname=slocate
37197d
37197d
%install
37197d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' groupname=slocate
37197d
37197d
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.daily}
37197d
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/updatedb.conf
37197d
install -p -m 750 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/mlocate
37197d
# %%ghost semantics is so stupid
37197d
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/mlocate/mlocate.db
37197d
37197d
%find_lang mlocate
37197d
37197d
%pre
37197d
getent group slocate >/dev/null || groupadd -g 21 -r -f slocate
37197d
exit 0
37197d
37197d
%post
37197d
if /bin/grep -q '^[^#]*DAILY_UPDATE' %{_sysconfdir}/updatedb.conf; then
37197d
    /bin/sed -i.rpmsave -e '/DAILY_UPDATE/s/^/#/' %{_sysconfdir}/updatedb.conf
37197d
fi
37197d
37197d
%files -f mlocate.lang
37197d
%doc AUTHORS COPYING NEWS README
37197d
%config(noreplace) %attr(0700,-,-) /etc/cron.daily/mlocate
37197d
%config(noreplace) %{_sysconfdir}/updatedb.conf
37197d
%attr(2711,root,slocate) %{_bindir}/locate
37197d
%{_bindir}/updatedb
37197d
%{_mandir}/man*/*
37197d
%dir %attr(0750,root,slocate) %{_localstatedir}/lib/mlocate
37197d
%ghost %attr(0640,root,slocate) %{_localstatedir}/lib/mlocate/mlocate.db
37197d
37197d
%changelog
37197d
* Thu Nov 09 2017 Michal Sekletar <msekleta@redhat.com> - 0.26-8
37197d
- change upstream URL also in specfile (#1502361)
37197d
37197d
* Wed Nov 08 2017 Michal Sekletar <msekleta@redhat.com> - 0.26-7
37197d
- don't index fuse.glusterfs filesystems (#1331870)
37197d
- don't index files on ceph filesystem (#1333152)
37197d
- update link to upstream repository (#1502361)
37197d
37197d
* Wed Feb 03 2016 Michal Sekletar <msekleta@redhat.com> - 0.26-6
37197d
- index zfs filesystems despite the fact they are marked as nodev (#1304416)
37197d
- add gpfs to PRUNEFS (#1180672)
37197d
- mlocate.db is ghost file created with non-default attrs, list them explicitly so rpm --verify doesn't report errors (#1182306)
37197d
- use more strict permissions for cron script (#1179633)
37197d
37197d
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.26-5
37197d
- Mass rebuild 2014-01-24
37197d
37197d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.26-4
37197d
- Mass rebuild 2013-12-27
37197d
37197d
* Wed Apr 10 2013 Miloslav Trmač <mitr@redhat.com> - 0.26-3
37197d
- Update cron packaging for https://fedoraproject.org/wiki/Packaging:CronFiles
37197d
  Notably, the cron script (previously not %%config) was renamed.
37197d
37197d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
37197d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
37197d
37197d
* Sat Sep 22 2012 Miloslav Trmač <mitr@redhat.com> - 0.26-1
37197d
- Update to mlocate-0.26
37197d
- Drop no longer necessary %%clean and %%defattr commands.
37197d
- Enable hardened build
37197d
  Resolves: #853189
37197d
37197d
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-2
37197d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
37197d
37197d
* Sat Mar  3 2012 Miloslav Trmač <mitr@redhat.com> - 0.25-1
37197d
- Update to mlocate-0.25
37197d
- Add /var/lib/yum/yumdb to PRUNEPATHS
37197d
  Resolves: #747918
37197d
37197d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-2
37197d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
37197d
37197d
* Thu Mar 31 2011 Miloslav Trmač <mitr@redhat.com> - 0.24-1
37197d
- Update to mlocate-0.24
37197d
  Resolves: #675189
37197d
- Explicitly exclude fuse.sshfs.  Ideally we'd like to exclude all fuse.* file
37197d
  systems, sshfs is urgent because it it can hang updatedb.
37197d
  Resolves: #604145, #608094
37197d
37197d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.1-5
37197d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
37197d
37197d
* Fri Feb  4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-4
37197d
- Add Provides: bundled(gnulib)
37197d
37197d
* Fri Feb  4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-3
37197d
- Exclude /mnt by default
37197d
  Resolves: #674635
37197d
- Drop %%triggerpostun on slocate - it is long obsolete, and rpm started
37197d
  rejecting "Requries(triggerpostun)"
37197d
37197d
* Wed Sep 29 2010 jkeating - 0.23.1-2
37197d
- Rebuilt for gcc bug 634757
37197d
37197d
* Tue Sep 14 2010 Miloslav Trmač <mitr@redhat.com> - 0.23.1-1
37197d
- Update to mlocate-0.23.1
37197d
37197d
* Thu Aug 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.23-1
37197d
- Update to mlocate-0.23
37197d
- Don't exclude rootfs, to avoid ambiguity when handling "/"
37197d
  Resolves: #624551
37197d
37197d
* Tue Mar 30 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-2
37197d
- Ignore no-op bind mounts
37197d
  Resolves: #577819
37197d
37197d
* Fri Mar 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-1
37197d
- Update to mlocate-0.22.4
37197d
37197d
* Thu Mar  4 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.3-1
37197d
- Update to mlocate-0.22.3
37197d
- Remove no longer necessary references to BuildRoot:
37197d
37197d
* Fri Jan 15 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.2-2
37197d
- Add "lustre" to PRUNEFS
37197d
- Add all nodev filesystems from the Fedora kernel to PRUNEFS, to make
37197d
  (updatedb) work as some users expect
37197d
37197d
* Fri Oct  2 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.2-1
37197d
- Update to mlocate-0.22.2
37197d
37197d
* Tue Sep 15 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.1-1
37197d
- Update to mlocate-0.22.1
37197d
- Drop Provides: slocate, per NamingGuidelines
37197d
37197d
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
37197d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
37197d
37197d
* Tue May 19 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-2
37197d
- Add /var/cache/ccache to PRUNEPATHS.
37197d
37197d
* Tue Apr 14 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-1
37197d
- Update to mlocate-0.22
37197d
37197d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.1-4
37197d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
37197d
37197d
* Mon Jan 12 2009 Miloslav Trmač <mitr@redhat.com> - 0.21.1-3
37197d
- Merge review fixes, based on a patch by Parag AN:
37197d
  - Use %%{_localstatedir}/lib instead of hard-coding /var/lib
37197d
  - Use %%{?_smp_mflags}
37197d
  - Preserve file time stamps
37197d
  - Only create the group if it doesn't exist, hide errors from rpm
37197d
37197d
* Fri Nov 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-2
37197d
- Add .git to PRUNENAMES
37197d
  Resolves: #473227
37197d
- Avoid a rpmlint warning
37197d
37197d
* Tue Oct 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-1
37197d
- Update to mlocate-0.21
37197d
  Resolves: #461208
37197d
37197d
* Mon Jun 30 2008 Miloslav Trmač <mitr@redhat.com> - 0.21-1
37197d
- Update to mlocate-0.21
37197d
- Define PRUNENAMES to exclude .svn and .hg
37197d
37197d
* Wed Apr  9 2008 Miloslav Trmač <mitr@redhat.com> - 0.20-1
37197d
- Update to mlocate-0.20
37197d
37197d
* Mon Mar  3 2008 Miloslav Trmač <mitr@redhat.com> - 0.19-1
37197d
- Update to mlocate-0.19
37197d
- New home page at https://fedorahosted.org/mlocate/ .
37197d
37197d
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.18-2
37197d
- Autorebuild for GCC 4.3
37197d
37197d
* Sat Aug 25 2007 Miloslav Trmač <mitr@redhat.com> - 0.18-1
37197d
- Update to mlocate-0.18
37197d
- Run updatedb with reduced I/O priority
37197d
  Resolves: #254165
37197d
37197d
* Wed Apr 25 2007 Miloslav Trmac <mitr@redhat.com> - 0.17-1
37197d
- Update to mlocate-0.17
37197d
  Resolves: #237120
37197d
37197d
* Tue Mar  6 2007 Miloslav Trmac <mitr@redhat.com> - 0.16-1
37197d
- Update to mlocate-0.16
37197d
- Enable PRUNE_BIND_MOUNTS by default
37197d
  Resolves: #221755
37197d
37197d
* Fri Jan  5 2007 Miloslav Trmac <mitr@redhat.com> - 0.15-2
37197d
- Add gfs and gfs2 to PRUNEFS
37197d
  Resolves: #220491
37197d
37197d
* Thu Nov 16 2006 Miloslav Trmac <mitr@redhat.com> - 0.15-1
37197d
- Update to mlocate-0.15
37197d
  Resolves: #215763
37197d
37197d
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.14-2.1
37197d
- rebuild
37197d
37197d
* Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-2
37197d
- Ship NEWS
37197d
37197d
* Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-1
37197d
- Update to mlocate-0.14
37197d
37197d
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.2
37197d
- bump again for double-long bug on ppc(64)
37197d
37197d
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.1
37197d
- rebuilt for new gcc4.1 snapshot and glibc changes
37197d
37197d
* Sat Dec 31 2005 Miloslav Trmac <mitr@redhat.com> - 0.12-1
37197d
- Update to mlocate-0.12
37197d
37197d
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
37197d
- rebuilt
37197d
37197d
* Fri Dec  2 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-2
37197d
- Comment out DAILY_UPDATE from updatedb.conf (#174693)
37197d
37197d
* Thu Nov 10 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-1
37197d
- Update to mlocate-0.11
37197d
- Add scriptlets to create group slocate
37197d
37197d
* Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.10-0.testing.1
37197d
- Update to mlocate-0.10
37197d
37197d
* Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.09-0.testing.1
37197d
- Initial build.