mlocate-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. Summary: An utility for finding files by name
  2. Summary(ja): ファイルをファイル名で探すためのユーティリティ
  3. Name: mlocate
  4. Version: 0.24
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. URL: https://fedorahosted.org/mlocate/
  8. Group: Applications/System
  9. Source0: https://fedorahosted.org/releases/m/l/mlocate/mlocate-%{version}.tar.xz
  10. Source1: updatedb.conf
  11. Source2: mlocate.cron
  12. Requires(pre): shadow-utils
  13. Requires(post): grep, sed
  14. Provides: bundled(gnulib)
  15. Obsoletes: slocate <= 2.7-25vl6
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: iwaim
  19. %description
  20. mlocate is a locate/updatedb implementation. It keeps a database of
  21. all existing files and allows you to lookup files by name.
  22. The 'm' stands for "merging": updatedb reuses the existing database to avoid
  23. rereading most of the file system, which makes updatedb faster and does not
  24. trash the system caches as much as traditional locate implementations.
  25. %prep
  26. %setup -q
  27. %build
  28. %configure --localstatedir=%{_localstatedir}/lib
  29. make %{?_smp_mflags} groupname=slocate
  30. %install
  31. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' groupname=slocate
  32. mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.daily}
  33. install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/updatedb.conf
  34. install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/mlocate.cron
  35. # %%ghost semantics is so stupid
  36. touch $RPM_BUILD_ROOT%{_localstatedir}/lib/mlocate/mlocate.db
  37. %find_lang mlocate
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %pre
  41. getent group slocate >/dev/null || groupadd -g 21 -r -f slocate
  42. exit 0
  43. %post
  44. if /bin/grep -q '^[^#]*DAILY_UPDATE' %{_sysconfdir}/updatedb.conf; then
  45. /bin/sed -i.rpmsave -e '/DAILY_UPDATE/s/^/#/' %{_sysconfdir}/updatedb.conf
  46. fi
  47. %triggerpostun -- slocate <= 2.7-25vl6
  48. getent group slocate >/dev/null || groupadd -g 21 -r -f slocate
  49. exit 0
  50. %files -f mlocate.lang
  51. %defattr(-,root,root,-)
  52. %doc AUTHORS COPYING NEWS README
  53. /etc/cron.daily/mlocate.cron
  54. %config(noreplace) %{_sysconfdir}/updatedb.conf
  55. %attr(2711,root,slocate) %{_bindir}/locate
  56. %{_bindir}/updatedb
  57. %{_mandir}/man*/*
  58. %dir %attr(0750,root,slocate) %{_localstatedir}/lib/mlocate
  59. %ghost %{_localstatedir}/lib/mlocate/mlocate.db
  60. %changelog
  61. * Mon Aug 15 2011 IWAI, Masaharu <iwai@alib.jp> 0.24-1
  62. - initial build for Vine Linux
  63. - add triggerpostun script: deleting slocate group by slocate package
  64. - Obsoletes tag for Vine Linux
  65. - add Summary(ja)
  66. * Thu Mar 31 2011 Miloslav Trmač <mitr@redhat.com> - 0.24-1
  67. - Update to mlocate-0.24
  68. Resolves: #675189
  69. - Explicitly exclude fuse.sshfs. Ideally we'd like to exclude all fuse.* file
  70. systems, sshfs is urgent because it it can hang updatedb.
  71. Resolves: #604145, #608094
  72. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.1-5
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  74. * Fri Feb 4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-4
  75. - Add Provides: bundled(gnulib)
  76. * Fri Feb 4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-3
  77. - Exclude /mnt by default
  78. Resolves: #674635
  79. - Drop %%triggerpostun on slocate - it is long obsolete, and rpm started
  80. rejecting "Requries(triggerpostun)"
  81. * Wed Sep 29 2010 jkeating - 0.23.1-2
  82. - Rebuilt for gcc bug 634757
  83. * Tue Sep 14 2010 Miloslav Trmač <mitr@redhat.com> - 0.23.1-1
  84. - Update to mlocate-0.23.1
  85. * Thu Aug 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.23-1
  86. - Update to mlocate-0.23
  87. - Don't exclude rootfs, to avoid ambiguity when handling "/"
  88. Resolves: #624551
  89. * Tue Mar 30 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-2
  90. - Ignore no-op bind mounts
  91. Resolves: #577819
  92. * Fri Mar 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-1
  93. - Update to mlocate-0.22.4
  94. * Thu Mar 4 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.3-1
  95. - Update to mlocate-0.22.3
  96. - Remove no longer necessary references to BuildRoot:
  97. * Fri Jan 15 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.2-2
  98. - Add "lustre" to PRUNEFS
  99. - Add all nodev filesystems from the Fedora kernel to PRUNEFS, to make
  100. (updatedb) work as some users expect
  101. * Fri Oct 2 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.2-1
  102. - Update to mlocate-0.22.2
  103. * Tue Sep 15 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.1-1
  104. - Update to mlocate-0.22.1
  105. - Drop Provides: slocate, per NamingGuidelines
  106. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  108. * Tue May 19 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-2
  109. - Add /var/cache/ccache to PRUNEPATHS.
  110. * Tue Apr 14 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-1
  111. - Update to mlocate-0.22
  112. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.1-4
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  114. * Mon Jan 12 2009 Miloslav Trmač <mitr@redhat.com> - 0.21.1-3
  115. - Merge review fixes, based on a patch by Parag AN:
  116. - Use %%{_localstatedir}/lib instead of hard-coding /var/lib
  117. - Use %%{?_smp_mflags}
  118. - Preserve file time stamps
  119. - Only create the group if it doesn't exist, hide errors from rpm
  120. * Fri Nov 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-2
  121. - Add .git to PRUNENAMES
  122. Resolves: #473227
  123. - Avoid a rpmlint warning
  124. * Tue Oct 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-1
  125. - Update to mlocate-0.21
  126. Resolves: #461208
  127. * Mon Jun 30 2008 Miloslav Trmač <mitr@redhat.com> - 0.21-1
  128. - Update to mlocate-0.21
  129. - Define PRUNENAMES to exclude .svn and .hg
  130. * Wed Apr 9 2008 Miloslav Trmač <mitr@redhat.com> - 0.20-1
  131. - Update to mlocate-0.20
  132. * Mon Mar 3 2008 Miloslav Trmač <mitr@redhat.com> - 0.19-1
  133. - Update to mlocate-0.19
  134. - New home page at https://fedorahosted.org/mlocate/ .
  135. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.18-2
  136. - Autorebuild for GCC 4.3
  137. * Sat Aug 25 2007 Miloslav Trmač <mitr@redhat.com> - 0.18-1
  138. - Update to mlocate-0.18
  139. - Run updatedb with reduced I/O priority
  140. Resolves: #254165
  141. * Wed Apr 25 2007 Miloslav Trmac <mitr@redhat.com> - 0.17-1
  142. - Update to mlocate-0.17
  143. Resolves: #237120
  144. * Tue Mar 6 2007 Miloslav Trmac <mitr@redhat.com> - 0.16-1
  145. - Update to mlocate-0.16
  146. - Enable PRUNE_BIND_MOUNTS by default
  147. Resolves: #221755
  148. * Fri Jan 5 2007 Miloslav Trmac <mitr@redhat.com> - 0.15-2
  149. - Add gfs and gfs2 to PRUNEFS
  150. Resolves: #220491
  151. * Thu Nov 16 2006 Miloslav Trmac <mitr@redhat.com> - 0.15-1
  152. - Update to mlocate-0.15
  153. Resolves: #215763
  154. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.14-2.1
  155. - rebuild
  156. * Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-2
  157. - Ship NEWS
  158. * Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-1
  159. - Update to mlocate-0.14
  160. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.2
  161. - bump again for double-long bug on ppc(64)
  162. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.1
  163. - rebuilt for new gcc4.1 snapshot and glibc changes
  164. * Sat Dec 31 2005 Miloslav Trmac <mitr@redhat.com> - 0.12-1
  165. - Update to mlocate-0.12
  166. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  167. - rebuilt
  168. * Fri Dec 2 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-2
  169. - Comment out DAILY_UPDATE from updatedb.conf (#174693)
  170. * Thu Nov 10 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-1
  171. - Update to mlocate-0.11
  172. - Add scriptlets to create group slocate
  173. * Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.10-0.testing.1
  174. - Update to mlocate-0.10
  175. * Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.09-0.testing.1
  176. - Initial build.