slocate-vl.spec 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. Summary: Finds files on a system via a central database.
  2. Summary(ja): システム上のファイルをデータベースを使って検索します
  3. Name: slocate
  4. Version: 2.7
  5. Release: 25%{?_dist_release}
  6. License: GPL
  7. Group: Applications/System
  8. Source0: http://ftp.debian.org/debian/pool/main/s/slocate/slocate_2.7-4.tar.gz
  9. Source1: slocate.cron
  10. Source2: updatedb.conf
  11. Source3: updatedb.conf.5
  12. Patch0: slocate-2.7-4.info.patch
  13. Patch1: slocate-wht.patch
  14. Patch2: slocate-2.6-manpage.patch
  15. Patch3: slocate-2.7-fts.patch
  16. Patch4: slocate-2.7-lazy-mtab.patch
  17. Patch5: slocate-2.7-4.autofoo.patch
  18. Patch6: slocate-2.7-4.bounds.patch
  19. Patch7: slocate-2.7-4.config.patch
  20. BuildRequires: gzip
  21. Prereq: shadow-utils
  22. Buildroot: %{_tmppath}/%{name}-%{version}-root
  23. %description
  24. Slocate is a security-enhanced version of locate. Just like locate,
  25. slocate searches through a central database (which is updated nightly)
  26. for files which match a given pattern. Slocate allows you to quickly
  27. find files anywhere on your system.
  28. %description -l ja
  29. slocate は locate のセキュリティ対策バージョンです.locate と同様に,
  30. slocate は (毎晩自動更新される) データベースを元に,指定したパターンに
  31. マッチするファイルを検索します.slocate を使って,システム上のどこにある
  32. ファイルでも高速に探し出すことが出来ます.
  33. %prep
  34. %setup -q
  35. %patch0 -p1 -b .info
  36. %patch1 -p1 -b .wht
  37. # *sigh*
  38. gunzip doc/*.gz
  39. %patch2 -p1 -b .manpage
  40. %patch3 -p1 -b .fts
  41. %patch4 -p1 -b .lazy
  42. %patch5 -p1 -b .autofoo
  43. %patch6 -p1 -b .bounds
  44. %patch7 -p1 -b .config
  45. %build
  46. autoreconf -f -i
  47. CFLAGS="$RPM_OPT_FLAGS -fsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64" %configure
  48. make
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{1,5}}
  52. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
  53. mkdir -p $RPM_BUILD_ROOT/var/lib/slocate
  54. install slocate $RPM_BUILD_ROOT%{_bindir}
  55. ln -sf slocate $RPM_BUILD_ROOT%{_bindir}/locate
  56. ln -sf slocate $RPM_BUILD_ROOT%{_bindir}/updatedb
  57. install doc/slocate.1.linux $RPM_BUILD_ROOT%{_mandir}/man1/slocate.1
  58. install doc/updatedb.1 $RPM_BUILD_ROOT%{_mandir}/man1
  59. ln -sf slocate.1 $RPM_BUILD_ROOT%{_mandir}/man1/locate.1
  60. install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
  61. install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
  62. install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man5
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %pre
  66. /usr/sbin/groupadd -g 21 -r -f slocate
  67. %preun
  68. if [ "$1" = "0" ]; then
  69. /usr/sbin/groupdel slocate
  70. rm -f /var/lib/slocate/slocate.db
  71. fi
  72. %files
  73. %defattr(-,root,root)
  74. %doc ChangeLog INSTALL README LICENSE MIRRORS
  75. %attr(2755,root,slocate) %{_bindir}/slocate
  76. %attr(-,root,slocate) %{_bindir}/locate
  77. %attr(-,root,slocate) %{_bindir}/updatedb
  78. %attr(644,root,root) %{_mandir}/man[15]/*
  79. %attr(755,root,root) %{_sysconfdir}/cron.daily/slocate.cron
  80. %attr(644,root,root) %config %{_sysconfdir}/updatedb.conf
  81. %dir %attr(750,root,slocate) /var/lib/slocate
  82. %changelog
  83. * Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 2.7-25vl6
  84. - build on current VineSeed
  85. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.7-24vl5
  86. - applied new versioning policy, spec in utf-8
  87. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl2
  88. - changed Group to Applications/System
  89. * Tue Aug 02 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl1
  90. - added Patches based on Fedora development
  91. * Tue Jun 21 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-24
  92. - Add missing OOM handling to lazy-mtab.patch
  93. * Sun May 1 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-23
  94. - Remove "nodev" filesystems from PRUNEFS
  95. * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-22
  96. - Point the user at updatedb.conf if the database is too old
  97. * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-21
  98. - Don't assume paths in /etc/mtab don't contain symlinks (#139950, #110575)
  99. - Use %%config(noreplace) for /etc/updatedb.conf (#155014)
  100. * Sun Apr 3 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-20
  101. - Don't run updatedb by default
  102. * Tue Mar 29 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-19
  103. - Add updatedb.conf(5) (#135952)
  104. * Mon Mar 28 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-18
  105. - Drop unnecessary BuildRequires: autoconf
  106. - Remove /mnt/floppy from PRUNEPATHS, it's in /media now
  107. * Fri Mar 25 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-17
  108. - Update to debian slocate_2.7-4 (#151710)
  109. - Fix comment parsing in /etc/updatedb.conf (#135952)
  110. - Exclude /var/spool/squid and /var/spool/cups (#150388)
  111. - Remove 'export' lines from /etc/updatedb.conf to avoid the false impression
  112. that the file is a shell script
  113. * Fri Mar 4 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-16
  114. - Fix crash when no filesystems are pruned
  115. - Rebuild with gcc 4
  116. * Tue Feb 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-15
  117. - Fix slocate-2.7-fts.patch
  118. - Automatically prune all nodev filesystems, remove those entries from
  119. PRUNEFS (#123914)
  120. * Tue Feb 15 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-14
  121. - Process the filesystem type exclusion list when finding the mount points,
  122. not only before starting the filesystem tree walk (#139950)
  123. - Clean up the spec file (#135192, original patch by Robert Scheck)
  124. * Wed Nov 3 2004 Thomas Woerner <twoerner@redhat.com> 2.7-13
  125. - added /media to PRUNEPATHS
  126. * Wed Oct 20 2004 Thomas Woerner <twoerner@redhat.com> 2.7-12
  127. - added /mnt/floppy to PRUNEPATHS
  128. * Fri May 21 2004 Bill Nottingham <notting@redhat.com> 2.7-10
  129. - exclude cifs (#122499)
  130. * Fri Apr 16 2004 Karsten Hopp <karsten@redhat.de> 2.7-9
  131. - exlude usbdevfs (#113816)
  132. * Mon Mar 29 2004 Karsten Hopp <karsten@redhat.de> 2.7-8
  133. - use included sl_fts.h, fix handling of large files (#105950)
  134. - use one single file to configure updatedb (#112964)
  135. * Sun Feb 08 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-5vl1
  136. - updated 2.7 and added patch6 from Fedora 2.7-5
  137. * Wed Jan 21 2004 Mark Cox <mjc@redhat.com>
  138. - drop privs for non slocate gid databases (CAN-2003-0848)
  139. * Mon Oct 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6-10vl1
  140. - rebuild with new toolchains
  141. - s/Copyright/License/
  142. - based on Redhat Rawhide 2.6-10
  143. * Sat Jan 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5-1vl3
  144. - fixed spec typo to install gzipped man page correctly
  145. * Mon Sep 03 2001 Toru Sagami <sagami@vinelinux.org>
  146. - 2.5-1vl2
  147. - place /var/lib in absolute without using %%_localstatedir macros
  148. * Sun Jan 14 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 2.5-1vl1
  149. - based on 2.5-1 from Rawhide
  150. - rebuilt for Vine Linux
  151. - use better macros
  152. - added Japanese summary and description
  153. * Fri Jan 6 2001 Bill Nottingham <notting@redhat.com>
  154. - update to 2.5
  155. * Mon Dec 18 2000 Bill Nottingham <notting@redhat.com>
  156. - update to the mysterious 2.4 release
  157. * Mon Nov 27 2000 Bill Nottingham <notting@redhat.com>
  158. - update to 2.3; fixes database reading problem
  159. * Wed Aug 23 2000 Than Ngo <than@redhat.com>
  160. - add a default updatedb.conf (Bug #13475)
  161. * Wed Aug 23 2000 Jakub Jelinek <jakub@redhat.com>
  162. - fix build with glibc defining DT_WHT but not defining S_IFWHT.
  163. * Sun Jul 23 2000 Nalin Dahyabhai <nalin@redhat.com>
  164. - don't print a message telling how to rebuild the database if we're
  165. rebuilding the database
  166. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  167. - automatic rebuild
  168. * Thu Jun 22 2000 Bill Nottingham <notting@redhat.com>
  169. - update to 2.2
  170. - fix it to not have debugging (oops)
  171. * Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
  172. - rebuild, FHS manpages, etc.
  173. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  174. - simplify preun
  175. * Fri Mar 17 2000 Bill Nottingham <notting@redhat.com>
  176. - fix a segfault
  177. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  178. - handle compressed man pages
  179. * Tue Oct 21 1999 Bill Nottingham <notting@redhat.com>
  180. - update to 2.1
  181. * Mon Oct 18 1999 Bill Nottingham <notting@redhat.com>
  182. - fix a bug that was causing segfaults.
  183. * Mon Sep 20 1999 Bill Nottingham <notting@redhat.com>
  184. - remove group database on final uninstall
  185. * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
  186. - add a note about creating the database if opening of it fails.
  187. * Tue Jul 6 1999 Bill Nottingham <notting@redhat.com>
  188. - update to 2.0
  189. - use new -f (filesystem type) option to simplify cron script
  190. - link updatedb back to slocate to allow parsing of updatedb.conf
  191. config files
  192. * Mon Jun 14 1999 Bill Nottingham <notting@redhat.com>
  193. - don't exclude VFAT partitions
  194. - add some docs
  195. * Tue Jun 1 1999 Jeff Johnson <jbj@redhat.com>
  196. - update to 1.6.
  197. - use /etc/cron.daily as /usr/bin/updatedb to more perfectly imitate the
  198. findutils updatedb.
  199. - exclude vfat partitions too (#3164).
  200. * Tue May 11 1999 Bill Nottingham <notting@redhat.com>
  201. - update to 1.5
  202. - make database dir 0750
  203. * Mon Apr 19 1999 Bill Nottingham <notting@redhat.com>
  204. - fix updatedb cron script
  205. * Mon Apr 12 1999 Bill Nottingham <notting@redhat.com>
  206. - add updatedb as a link to slocate
  207. - add an updatedb man page
  208. * Fri Mar 26 1999 Michael Maher <mike@redhat.com>
  209. - added man page
  210. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  211. - auto rebuild in the new build environment (release 3)
  212. * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
  213. - %post groupadd changed to %pre