mlocate-vl.spec 7.4 KB

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