slocate-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. Summary: Finds files on a system via a central database.
  2. Summary(ja): システム上のファイルをデータベースを使って検索します
  3. Name: slocate
  4. Version: 2.7
  5. Release: 24%{?_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. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.7-24vl5
  84. - applied new versioning policy, spec in utf-8
  85. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl2
  86. - changed Group to Applications/System
  87. * Tue Aug 02 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl1
  88. - added Patches based on Fedora development
  89. * Tue Jun 21 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-24
  90. - Add missing OOM handling to lazy-mtab.patch
  91. * Sun May 1 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-23
  92. - Remove "nodev" filesystems from PRUNEFS
  93. * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-22
  94. - Point the user at updatedb.conf if the database is too old
  95. * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-21
  96. - Don't assume paths in /etc/mtab don't contain symlinks (#139950, #110575)
  97. - Use %%config(noreplace) for /etc/updatedb.conf (#155014)
  98. * Sun Apr 3 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-20
  99. - Don't run updatedb by default
  100. * Tue Mar 29 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-19
  101. - Add updatedb.conf(5) (#135952)
  102. * Mon Mar 28 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-18
  103. - Drop unnecessary BuildRequires: autoconf
  104. - Remove /mnt/floppy from PRUNEPATHS, it's in /media now
  105. * Fri Mar 25 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-17
  106. - Update to debian slocate_2.7-4 (#151710)
  107. - Fix comment parsing in /etc/updatedb.conf (#135952)
  108. - Exclude /var/spool/squid and /var/spool/cups (#150388)
  109. - Remove 'export' lines from /etc/updatedb.conf to avoid the false impression
  110. that the file is a shell script
  111. * Fri Mar 4 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-16
  112. - Fix crash when no filesystems are pruned
  113. - Rebuild with gcc 4
  114. * Tue Feb 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-15
  115. - Fix slocate-2.7-fts.patch
  116. - Automatically prune all nodev filesystems, remove those entries from
  117. PRUNEFS (#123914)
  118. * Tue Feb 15 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-14
  119. - Process the filesystem type exclusion list when finding the mount points,
  120. not only before starting the filesystem tree walk (#139950)
  121. - Clean up the spec file (#135192, original patch by Robert Scheck)
  122. * Wed Nov 3 2004 Thomas Woerner <twoerner@redhat.com> 2.7-13
  123. - added /media to PRUNEPATHS
  124. * Wed Oct 20 2004 Thomas Woerner <twoerner@redhat.com> 2.7-12
  125. - added /mnt/floppy to PRUNEPATHS
  126. * Fri May 21 2004 Bill Nottingham <notting@redhat.com> 2.7-10
  127. - exclude cifs (#122499)
  128. * Fri Apr 16 2004 Karsten Hopp <karsten@redhat.de> 2.7-9
  129. - exlude usbdevfs (#113816)
  130. * Mon Mar 29 2004 Karsten Hopp <karsten@redhat.de> 2.7-8
  131. - use included sl_fts.h, fix handling of large files (#105950)
  132. - use one single file to configure updatedb (#112964)
  133. * Sun Feb 08 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-5vl1
  134. - updated 2.7 and added patch6 from Fedora 2.7-5
  135. * Wed Jan 21 2004 Mark Cox <mjc@redhat.com>
  136. - drop privs for non slocate gid databases (CAN-2003-0848)
  137. * Mon Oct 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6-10vl1
  138. - rebuild with new toolchains
  139. - s/Copyright/License/
  140. - based on Redhat Rawhide 2.6-10
  141. * Sat Jan 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5-1vl3
  142. - fixed spec typo to install gzipped man page correctly
  143. * Mon Sep 03 2001 Toru Sagami <sagami@vinelinux.org>
  144. - 2.5-1vl2
  145. - place /var/lib in absolute without using %%_localstatedir macros
  146. * Sun Jan 14 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 2.5-1vl1
  147. - based on 2.5-1 from Rawhide
  148. - rebuilt for Vine Linux
  149. - use better macros
  150. - added Japanese summary and description
  151. * Fri Jan 6 2001 Bill Nottingham <notting@redhat.com>
  152. - update to 2.5
  153. * Mon Dec 18 2000 Bill Nottingham <notting@redhat.com>
  154. - update to the mysterious 2.4 release
  155. * Mon Nov 27 2000 Bill Nottingham <notting@redhat.com>
  156. - update to 2.3; fixes database reading problem
  157. * Wed Aug 23 2000 Than Ngo <than@redhat.com>
  158. - add a default updatedb.conf (Bug #13475)
  159. * Wed Aug 23 2000 Jakub Jelinek <jakub@redhat.com>
  160. - fix build with glibc defining DT_WHT but not defining S_IFWHT.
  161. * Sun Jul 23 2000 Nalin Dahyabhai <nalin@redhat.com>
  162. - don't print a message telling how to rebuild the database if we're
  163. rebuilding the database
  164. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  165. - automatic rebuild
  166. * Thu Jun 22 2000 Bill Nottingham <notting@redhat.com>
  167. - update to 2.2
  168. - fix it to not have debugging (oops)
  169. * Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
  170. - rebuild, FHS manpages, etc.
  171. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  172. - simplify preun
  173. * Fri Mar 17 2000 Bill Nottingham <notting@redhat.com>
  174. - fix a segfault
  175. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  176. - handle compressed man pages
  177. * Tue Oct 21 1999 Bill Nottingham <notting@redhat.com>
  178. - update to 2.1
  179. * Mon Oct 18 1999 Bill Nottingham <notting@redhat.com>
  180. - fix a bug that was causing segfaults.
  181. * Mon Sep 20 1999 Bill Nottingham <notting@redhat.com>
  182. - remove group database on final uninstall
  183. * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
  184. - add a note about creating the database if opening of it fails.
  185. * Tue Jul 6 1999 Bill Nottingham <notting@redhat.com>
  186. - update to 2.0
  187. - use new -f (filesystem type) option to simplify cron script
  188. - link updatedb back to slocate to allow parsing of updatedb.conf
  189. config files
  190. * Mon Jun 14 1999 Bill Nottingham <notting@redhat.com>
  191. - don't exclude VFAT partitions
  192. - add some docs
  193. * Tue Jun 1 1999 Jeff Johnson <jbj@redhat.com>
  194. - update to 1.6.
  195. - use /etc/cron.daily as /usr/bin/updatedb to more perfectly imitate the
  196. findutils updatedb.
  197. - exclude vfat partitions too (#3164).
  198. * Tue May 11 1999 Bill Nottingham <notting@redhat.com>
  199. - update to 1.5
  200. - make database dir 0750
  201. * Mon Apr 19 1999 Bill Nottingham <notting@redhat.com>
  202. - fix updatedb cron script
  203. * Mon Apr 12 1999 Bill Nottingham <notting@redhat.com>
  204. - add updatedb as a link to slocate
  205. - add an updatedb man page
  206. * Fri Mar 26 1999 Michael Maher <mike@redhat.com>
  207. - added man page
  208. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  209. - auto rebuild in the new build environment (release 3)
  210. * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
  211. - %post groupadd changed to %pre