findutils-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. Summary: The GNU versions of find utilities (find and xargs).
  2. Summary(ja): find ユーティリティの GNU バージョン (find および xargs).
  3. Name: findutils
  4. Version: 4.7.0
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Base
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPL
  10. Source0: https://ftp.gnu.org/gnu/findutils/findutils-%{version}.tar.xz
  11. # do not build locate
  12. Patch1: findutils-4.5.15-no-locate.patch
  13. # add -xautofs option to not descend into directories on autofs file systems
  14. Patch2: findutils-4.4.2-xautofs.patch
  15. # eliminate compile-time warnings
  16. Patch3: findutils-4.5.13-warnings.patch
  17. # test-lock: disable the rwlock test
  18. Patch4: findutils-4.6.0-test-lock.patch
  19. # implement the -noleaf option of find (#1252549)
  20. Patch5: findutils-4.6.0-leaf-opt.patch
  21. # make upstream test-suite work with root privileges (#1799064)
  22. Patch6: findutils-4.7.0-root-tests.patch
  23. Requires(post): /sbin/install-info
  24. Requires(preun): /sbin/install-info
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. BuildRequires: libtool, automake, autoconf
  27. BuildRequires: dejagnu, gettext, texinfo, git
  28. %description
  29. The findutils package contains programs which will help you locate
  30. files on your system. The find utility searches through a hierarchy
  31. of directories looking for files which match a certain set of criteria
  32. (such as a filename pattern). The xargs utility builds and executes
  33. command lines from standard input arguments (usually lists of file
  34. names generated by the find command).
  35. You should install findutils because it includes tools that are very
  36. useful for finding things on your system.
  37. %prep
  38. %autosetup -N -S git
  39. # drop the source code of locate
  40. git rm -q -r locate
  41. git commit -q -m "drop the source code of locate"
  42. # remove ignored files from git and mark them as ignored
  43. tee -a .gitignore << EOF
  44. *~
  45. Makefile.in
  46. /aclocal.m4
  47. /autom4te.cache
  48. /build
  49. /configure
  50. /doc/find.info*
  51. /doc/stamp-vti
  52. /doc/version.texi
  53. EOF
  54. git rm -q -r --cached .
  55. git add --all .
  56. git commit -m "remove ignored files from git"
  57. # apply all patches
  58. %autopatch
  59. # needed because of findutils-4.5.15-no-locate.patch
  60. autoreconf -fiv
  61. git add --all .
  62. git commit -q -m "after invocation of autoreconf"
  63. %build
  64. mkdir build
  65. cd build
  66. %global _configure ../configure
  67. %configure
  68. make %{?_smp_mflags}
  69. %check
  70. make %{?_smp_mflags} check -C build
  71. %install
  72. %make_install -C build
  73. rm -f %{buildroot}%{_infodir}/dir
  74. # move find to /bin
  75. mkdir -p %{buildroot}/bin
  76. mv %{buildroot}%{_bindir}/find %{buildroot}/bin/
  77. ln -sf ../../bin/find %{buildroot}%{_bindir}
  78. %find_lang %{name}
  79. %post
  80. if [ -f %{_infodir}/find.info.gz ]; then
  81. /sbin/install-info %{_infodir}/find.info.gz %{_infodir}/dir
  82. fi
  83. %preun
  84. if [ $1 = 0 -a -f %{_infodir}/find.info.gz ]; then
  85. /sbin/install-info --delete %{_infodir}/find.info.gz %{_infodir}/dir
  86. fi
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT
  89. %files -f %{name}.lang
  90. %defattr(-,root,root)
  91. %license COPYING
  92. %doc AUTHORS NEWS README THANKS TODO
  93. /bin/find
  94. %{_bindir}/find
  95. %{_bindir}/xargs
  96. %{_mandir}/man1/find.1*
  97. %{_mandir}/man1/xargs.1*
  98. %{_infodir}/find.info*
  99. %{_infodir}/find-maint.info*
  100. %changelog
  101. * Wed Mar 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.7.0-1
  102. - new upstream release.
  103. - updated patches.
  104. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.10-2
  105. - rebuild with VineSeed environment
  106. - add Patch0 (findutils-4.5.10-gets.patch)
  107. * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5.10-1
  108. - new upstream reelase
  109. * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5.9-1
  110. - new upstream release
  111. * Sun Mar 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4.0-2
  112. - move find to /bin
  113. - we'd use find in initscripts
  114. * Fri May 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4.0-1
  115. - new versioning policy
  116. - new upstream release
  117. * Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.2.31-0vl1
  118. - new upstream release (including security fix for CVE-2007-2452)
  119. * Thu May 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.27-0vl1
  120. - new upstream release
  121. - use License instead of Copyright
  122. - change Group to System Environment/Base
  123. * Tue Jun 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.23-0vl1
  124. - new upstream release
  125. - drop unneeded patches
  126. * Sat Jan 20 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  127. - 4.1.5-0vl3
  128. - usr better macros (%%configure/%%makeinstall)
  129. * Tue Nov 21 2000 Jun Nishii <jun@vinelinux.org>
  130. - 4.1.5-0vl2
  131. - bug fix for -O002
  132. * Wed Jun 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  133. - 4.1.5
  134. - added ja.po
  135. * Mon Apr 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  136. - 4.1.4
  137. - remove some obsolete patches, adapt others
  138. - fix build on alpha
  139. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  140. - fix summary
  141. - ma pages are compressed
  142. * Wed Jan 12 2000 Preston Brown <pbrown@redhat.com>
  143. - new description.
  144. * Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
  145. - fixed block count bug (# 2141)
  146. * Mon Mar 29 1999 Preston Brown <pbrown@redhat.com>
  147. - patch to fix xargs out of bounds overflow (bug # 1279)
  148. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  149. - auto rebuild in the new build environment (release 30)
  150. * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
  151. - strip binaries.
  152. * Mon Feb 8 1999 Jeff Johnson <jbj@redhat.com>
  153. - remove further updatedb remnants (#1072).
  154. * Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com>
  155. - added patch for glibc21
  156. * Mon Nov 16 1998 Erik Troan <ewt@redhat.com>
  157. - removed locate stuff (as we now ship slocate)
  158. * Wed Jun 10 1998 Erik Troan <ewt@redhat.com>
  159. - updated updatedb cron script to not look for $TMPNAME.n (which was
  160. a relic anyway)
  161. - added -b parameters to all of the patches
  162. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  163. - translations modified for de, fr, tr
  164. * Mon Mar 09 1998 Michael K. Johnson <johnsonm@redhat.com>
  165. - make updatedb.cron use mktemp correctly
  166. - make updatedb use mktemp
  167. * Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
  168. - nobody should own tmpfile
  169. - ignore /net
  170. * Wed Nov 05 1997 Michael K. Johnson <johnsonm@redhat.com>
  171. - made updatedb.cron do a better job of cleaning up after itself.
  172. * Tue Oct 28 1997 Donald Barnes <djb@redhat.com>
  173. - fixed 64 bit-ism in getline.c, patch tacked on to end of glibc one
  174. * Thu Oct 23 1997 Erik Troan <ewt@redhat.com>
  175. - added patch for glibc 2.1
  176. * Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
  177. - added BuildRoot support
  178. * Tue Oct 14 1997 Michael K. Johnson <johnsonm@redhat.com>
  179. - made updatedb.cron work even if "nobody" can't read /root
  180. - use mktemp in updatedb.cron
  181. * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
  182. - added missing info pages
  183. - uses install-info
  184. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  185. - built with glibc
  186. * Mon Apr 21 1997 Michael K. Johnson <johnsonm@redhat.com>
  187. - fixed updatedb.cron