mlocate-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. Summary: An utility for finding files by name
  2. Summary(ja): ファイルをファイル名で探すためのユーティリティ
  3. Name: mlocate
  4. Version: 0.26
  5. Release: 2%{?_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 <= 3.1-1vl7
  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 <= 3.1-1vl7
  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. * Wed Jan 8 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.26-2
  62. - build with current VineSeed
  63. * Mon Dec 31 2012 IWAI, Masaharu <iwai@alib.jp> 0.26-1
  64. - new upstream release
  65. - update obsoleted slocate package version: 2.7-25vl6 -> 3.1-1vl7
  66. * Mon Aug 15 2011 IWAI, Masaharu <iwai@alib.jp> 0.24-1
  67. - initial build for Vine Linux
  68. - add triggerpostun script: deleting slocate group by slocate package
  69. - Obsoletes tag for Vine Linux
  70. - add Summary(ja)
  71. * Thu Mar 31 2011 Miloslav Trmač <mitr@redhat.com> - 0.24-1
  72. - Update to mlocate-0.24
  73. Resolves: #675189
  74. - Explicitly exclude fuse.sshfs. Ideally we'd like to exclude all fuse.* file
  75. systems, sshfs is urgent because it it can hang updatedb.
  76. Resolves: #604145, #608094
  77. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.1-5
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  79. * Fri Feb 4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-4
  80. - Add Provides: bundled(gnulib)
  81. * Fri Feb 4 2011 Miloslav Trmač <mitr@redhat.com> - 0.23.1-3
  82. - Exclude /mnt by default
  83. Resolves: #674635
  84. - Drop %%triggerpostun on slocate - it is long obsolete, and rpm started
  85. rejecting "Requries(triggerpostun)"
  86. * Wed Sep 29 2010 jkeating - 0.23.1-2
  87. - Rebuilt for gcc bug 634757
  88. * Tue Sep 14 2010 Miloslav Trmač <mitr@redhat.com> - 0.23.1-1
  89. - Update to mlocate-0.23.1
  90. * Thu Aug 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.23-1
  91. - Update to mlocate-0.23
  92. - Don't exclude rootfs, to avoid ambiguity when handling "/"
  93. Resolves: #624551
  94. * Tue Mar 30 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-2
  95. - Ignore no-op bind mounts
  96. Resolves: #577819
  97. * Fri Mar 26 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.4-1
  98. - Update to mlocate-0.22.4
  99. * Thu Mar 4 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.3-1
  100. - Update to mlocate-0.22.3
  101. - Remove no longer necessary references to BuildRoot:
  102. * Fri Jan 15 2010 Miloslav Trmač <mitr@redhat.com> - 0.22.2-2
  103. - Add "lustre" to PRUNEFS
  104. - Add all nodev filesystems from the Fedora kernel to PRUNEFS, to make
  105. (updatedb) work as some users expect
  106. * Fri Oct 2 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.2-1
  107. - Update to mlocate-0.22.2
  108. * Tue Sep 15 2009 Miloslav Trmač <mitr@redhat.com> - 0.22.1-1
  109. - Update to mlocate-0.22.1
  110. - Drop Provides: slocate, per NamingGuidelines
  111. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
  112. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  113. * Tue May 19 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-2
  114. - Add /var/cache/ccache to PRUNEPATHS.
  115. * Tue Apr 14 2009 Miloslav Trmač <mitr@redhat.com> - 0.22-1
  116. - Update to mlocate-0.22
  117. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.1-4
  118. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  119. * Mon Jan 12 2009 Miloslav Trmač <mitr@redhat.com> - 0.21.1-3
  120. - Merge review fixes, based on a patch by Parag AN:
  121. - Use %%{_localstatedir}/lib instead of hard-coding /var/lib
  122. - Use %%{?_smp_mflags}
  123. - Preserve file time stamps
  124. - Only create the group if it doesn't exist, hide errors from rpm
  125. * Fri Nov 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-2
  126. - Add .git to PRUNENAMES
  127. Resolves: #473227
  128. - Avoid a rpmlint warning
  129. * Tue Oct 28 2008 Miloslav Trmač <mitr@redhat.com> - 0.21.1-1
  130. - Update to mlocate-0.21
  131. Resolves: #461208
  132. * Mon Jun 30 2008 Miloslav Trmač <mitr@redhat.com> - 0.21-1
  133. - Update to mlocate-0.21
  134. - Define PRUNENAMES to exclude .svn and .hg
  135. * Wed Apr 9 2008 Miloslav Trmač <mitr@redhat.com> - 0.20-1
  136. - Update to mlocate-0.20
  137. * Mon Mar 3 2008 Miloslav Trmač <mitr@redhat.com> - 0.19-1
  138. - Update to mlocate-0.19
  139. - New home page at https://fedorahosted.org/mlocate/ .
  140. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.18-2
  141. - Autorebuild for GCC 4.3
  142. * Sat Aug 25 2007 Miloslav Trmač <mitr@redhat.com> - 0.18-1
  143. - Update to mlocate-0.18
  144. - Run updatedb with reduced I/O priority
  145. Resolves: #254165
  146. * Wed Apr 25 2007 Miloslav Trmac <mitr@redhat.com> - 0.17-1
  147. - Update to mlocate-0.17
  148. Resolves: #237120
  149. * Tue Mar 6 2007 Miloslav Trmac <mitr@redhat.com> - 0.16-1
  150. - Update to mlocate-0.16
  151. - Enable PRUNE_BIND_MOUNTS by default
  152. Resolves: #221755
  153. * Fri Jan 5 2007 Miloslav Trmac <mitr@redhat.com> - 0.15-2
  154. - Add gfs and gfs2 to PRUNEFS
  155. Resolves: #220491
  156. * Thu Nov 16 2006 Miloslav Trmac <mitr@redhat.com> - 0.15-1
  157. - Update to mlocate-0.15
  158. Resolves: #215763
  159. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.14-2.1
  160. - rebuild
  161. * Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-2
  162. - Ship NEWS
  163. * Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 0.14-1
  164. - Update to mlocate-0.14
  165. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.2
  166. - bump again for double-long bug on ppc(64)
  167. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.12-1.1
  168. - rebuilt for new gcc4.1 snapshot and glibc changes
  169. * Sat Dec 31 2005 Miloslav Trmac <mitr@redhat.com> - 0.12-1
  170. - Update to mlocate-0.12
  171. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  172. - rebuilt
  173. * Fri Dec 2 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-2
  174. - Comment out DAILY_UPDATE from updatedb.conf (#174693)
  175. * Thu Nov 10 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-1
  176. - Update to mlocate-0.11
  177. - Add scriptlets to create group slocate
  178. * Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.10-0.testing.1
  179. - Update to mlocate-0.10
  180. * Thu Jul 28 2005 Miloslav Trmac <mitr@volny.cz> - 0.09-0.testing.1
  181. - Initial build.