findutils-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. Summary: The GNU versions of find utilities (find and xargs).
  2. Summary(ja): find ユーティリティの GNU バージョン (find および xargs).
  3. Name: findutils
  4. Version: 4.4.0
  5. Release: 2%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Base
  8. Source0: ftp://ftp.gnu.org/gnu/findutils/findutils-%{version}.tar.gz
  9. Source1: updatedb.cron
  10. Requires(post): /sbin/install-info
  11. Requires(preun): /sbin/install-info
  12. Buildroot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: libtool, automake, autoconf
  14. BuildRequires: dejagnu, gettext, texinfo
  15. %description
  16. The findutils package contains programs which will help you locate
  17. files on your system. The find utility searches through a hierarchy
  18. of directories looking for files which match a certain set of criteria
  19. (such as a filename pattern). The xargs utility builds and executes
  20. command lines from standard input arguments (usually lists of file
  21. names generated by the find command).
  22. You should install findutils because it includes tools that are very
  23. useful for finding things on your system.
  24. %prep
  25. %setup -q
  26. %build
  27. %define optflags $RPM_OPT_FLAGS -D_GNU_SOURCE
  28. %configure
  29. %undefine optflags
  30. %__make %{?_smp_mflags}
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. %makeinstall
  34. ( cd $RPM_BUILD_ROOT
  35. gzip -9fn .%{_infodir}/find.info*
  36. )
  37. %find_lang %{name}
  38. # move find to /bin
  39. mkdir -p $RPM_BUILD_ROOT/bin
  40. mv $RPM_BUILD_ROOT%{_bindir}/find $RPM_BUILD_ROOT/bin/
  41. ln -sf ../../bin/find $RPM_BUILD_ROOT%{_bindir}
  42. # remove unpackaged files
  43. rm -f $RPM_BUILD_ROOT%{_bindir}/{locate,updatedb}
  44. rm -f $RPM_BUILD_ROOT%{_libexecdir}/*
  45. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{locate,updatedb}*
  46. rm -f $RPM_BUILD_ROOT%{_mandir}/man5/locatedb*
  47. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  48. %post
  49. /sbin/install-info %{_infodir}/find.info.gz %{_infodir}/dir
  50. /sbin/install-info %{_infodir}/find-maint.info.gz %{_infodir}/dir
  51. %preun
  52. if [ $1 = 0 ]; then
  53. /sbin/install-info --delete %{_infodir}/find.info.gz %{_infodir}/dir
  54. /sbin/install-info --delete %{_infodir}/find-maint.info.gz %{_infodir}/dir
  55. fi
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %files -f %{name}.lang
  59. %defattr(-,root,root)
  60. %doc AUTHORS COPYING NEWS README THANKS
  61. /bin/find
  62. %{_bindir}/find
  63. %{_bindir}/oldfind
  64. %{_bindir}/xargs
  65. %{_mandir}/man1/find.1*
  66. %{_mandir}/man1/xargs.1*
  67. %{_infodir}/find.info*
  68. %{_infodir}/find-maint.info*
  69. %changelog
  70. * Sun Mar 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4.0-2
  71. - move find to /bin
  72. - we'd use find in initscripts
  73. * Fri May 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4.0-1
  74. - new versioning policy
  75. - new upstream release
  76. * Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.2.31-0vl1
  77. - new upstream release (including security fix for CVE-2007-2452)
  78. * Thu May 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.27-0vl1
  79. - new upstream release
  80. - use License instead of Copyright
  81. - change Group to System Environment/Base
  82. * Tue Jun 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.23-0vl1
  83. - new upstream release
  84. - drop unneeded patches
  85. * Sat Jan 20 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  86. - 4.1.5-0vl3
  87. - usr better macros (%%configure/%%makeinstall)
  88. * Tue Nov 21 2000 Jun Nishii <jun@vinelinux.org>
  89. - 4.1.5-0vl2
  90. - bug fix for -O002
  91. * Wed Jun 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  92. - 4.1.5
  93. - added ja.po
  94. * Mon Apr 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  95. - 4.1.4
  96. - remove some obsolete patches, adapt others
  97. - fix build on alpha
  98. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  99. - fix summary
  100. - ma pages are compressed
  101. * Wed Jan 12 2000 Preston Brown <pbrown@redhat.com>
  102. - new description.
  103. * Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
  104. - fixed block count bug (# 2141)
  105. * Mon Mar 29 1999 Preston Brown <pbrown@redhat.com>
  106. - patch to fix xargs out of bounds overflow (bug # 1279)
  107. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  108. - auto rebuild in the new build environment (release 30)
  109. * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
  110. - strip binaries.
  111. * Mon Feb 8 1999 Jeff Johnson <jbj@redhat.com>
  112. - remove further updatedb remnants (#1072).
  113. * Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com>
  114. - added patch for glibc21
  115. * Mon Nov 16 1998 Erik Troan <ewt@redhat.com>
  116. - removed locate stuff (as we now ship slocate)
  117. * Wed Jun 10 1998 Erik Troan <ewt@redhat.com>
  118. - updated updatedb cron script to not look for $TMPNAME.n (which was
  119. a relic anyway)
  120. - added -b parameters to all of the patches
  121. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  122. - translations modified for de, fr, tr
  123. * Mon Mar 09 1998 Michael K. Johnson <johnsonm@redhat.com>
  124. - make updatedb.cron use mktemp correctly
  125. - make updatedb use mktemp
  126. * Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
  127. - nobody should own tmpfile
  128. - ignore /net
  129. * Wed Nov 05 1997 Michael K. Johnson <johnsonm@redhat.com>
  130. - made updatedb.cron do a better job of cleaning up after itself.
  131. * Tue Oct 28 1997 Donald Barnes <djb@redhat.com>
  132. - fixed 64 bit-ism in getline.c, patch tacked on to end of glibc one
  133. * Thu Oct 23 1997 Erik Troan <ewt@redhat.com>
  134. - added patch for glibc 2.1
  135. * Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
  136. - added BuildRoot support
  137. * Tue Oct 14 1997 Michael K. Johnson <johnsonm@redhat.com>
  138. - made updatedb.cron work even if "nobody" can't read /root
  139. - use mktemp in updatedb.cron
  140. * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
  141. - added missing info pages
  142. - uses install-info
  143. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  144. - built with glibc
  145. * Mon Apr 21 1997 Michael K. Johnson <johnsonm@redhat.com>
  146. - fixed updatedb.cron