grep-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. Summary: The GNU versions of grep pattern matching utilities.
  2. Summary(ja): GNU版 grep パターンマッチングユーティリティ
  3. Name: grep
  4. Version: 3.6
  5. Release: 1%{?_dist_release}
  6. Group: system,accessories
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPLv3+
  10. URL: http://www.gnu.org/software/grep/
  11. Source: https://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz
  12. Source1: colorgrep.sh
  13. Source2: colorgrep.csh
  14. Source3: GREP_COLORS
  15. # upstream ticket 39444
  16. Patch0: grep-3.33-man-fix-gs.patch
  17. # upstream ticket 39445
  18. Patch1: grep-3.33-help-align.patch
  19. Buildroot: %{_tmppath}/%{name}-%{version}-root
  20. BuildRequires: pcre-devel >= 8.31
  21. BuildRequires: texinfo, gettext, gzip
  22. BuildRequires: autoconf, automake
  23. Requires(post): install-info
  24. Requires(preun): install-info
  25. %description
  26. The GNU versions of commonly used grep utilities. Grep searches
  27. through textual input for lines which contain a match to a specified
  28. pattern and then prints the matching lines. GNU's grep utilities
  29. include grep, egrep and fgrep.
  30. You should install grep on your system, because it is a very useful
  31. utility for searching through text.
  32. %description -l ja
  33. 一般に使われるgrepユーティリティのGNU版です。Grep は指定したパターンと一致
  34. する行を入力ファイルから捜し出して、その行を表示します。GNUのgrepユーティリ
  35. ティにはgrep, egrep, fgrepが入っています。
  36. テキストファイルの検索や、システム管理にとても役に立つので、是非インストール
  37. してください。
  38. %debug_package
  39. %prep
  40. %setup -q
  41. %patch0 -p1 -b .man-fix-gs
  42. %patch1 -p1 -b .help-align
  43. %build
  44. %configure \
  45. --without-included-regex
  46. %__make %{?_smp_mflags}
  47. %install
  48. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  49. %__make DESTDIR=$RPM_BUILD_ROOT install
  50. gzip $RPM_BUILD_ROOT%{_infodir}/grep*
  51. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  52. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
  53. install -pm 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
  54. install -pm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
  55. mkdir -p $RPM_BUILD_ROOT/bin
  56. mv $RPM_BUILD_ROOT%{_prefix}/bin/* $RPM_BUILD_ROOT/bin/
  57. rm -rf $RPM_BUILD_ROOT%{_bindir}
  58. %find_lang %{name}
  59. %check
  60. make check
  61. %clean
  62. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  63. %post
  64. [ -e %{_infodir}/grep.info.gz ] && /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/grep.info.gz || :
  65. %preun
  66. if [ $1 = 0 ]; then
  67. [ -e %{_infodir}/grep.info.gz ] && /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/grep.info.gz
  68. fi
  69. %files -f %{name}.lang
  70. %defattr(-,root,root)
  71. %license COPYING
  72. %doc AUTHORS THANKS TODO NEWS README ChangeLog
  73. /bin/*
  74. %config(noreplace) %{_sysconfdir}/profile.d/colorgrep.*sh
  75. %config(noreplace) %{_sysconfdir}/GREP_COLORS
  76. %{_infodir}/*.info.gz
  77. %{_mandir}/*/*
  78. %changelog
  79. * Mon Feb 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.6-1
  80. - new upstream release.
  81. * Wed Mar 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4-1
  82. - new upstream release.
  83. - updated patches.
  84. * Mon Nov 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22-1
  85. - updated to 2.22
  86. * Mon Dec 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.21-1
  87. - updated to 2.21
  88. - dropt patch2 which was merged into upstream
  89. * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14-1
  90. - update to 2.14
  91. - build with pcre-8.31
  92. * Thu Feb 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7-1
  93. - new upstream release
  94. - drop unneeded old patches
  95. - add BR: pcre-devel
  96. * Mon Sep 29 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.5.1-60
  97. - rebuilt against current toolchain
  98. - fix license tag
  99. - use CPPFLAGS= argument to configure to add an -I option.
  100. - Do not set LDFLAGS=-s for "make install".
  101. * Wed Sep 17 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.5.1-57
  102. - rebuilt for VineSeed (previous version in VineSeed was 2.5.1-50 somehow)
  103. - Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.5.1-50vl5
  104. - applied new versioning policy, spec in utf-8
  105. * Tue Nov 13 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.1-57vl0.1
  106. - rebuild for Vine Linux 4.x
  107. * Tue Nov 13 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.1-57vl1
  108. - add Patch100 to fix infinite loop with 'grep -F'
  109. thanks to M.H (<BTS:484>)
  110. - based on Fedora devel 2.5.1-57
  111. * Mon Jan 22 2007 Tim Waugh <twaugh@redhat.com> 2.5.1-57
  112. - Make preun scriptlet unconditionally succeed (bug #223697).
  113. * Wed Nov 22 2006 Tim Waugh <twaugh@redhat.com> 2.5.1-56
  114. - Fixed count of patterns when the last is an empty string (bug #204255).
  115. * Wed Nov 22 2006 Tim Waugh <twaugh@redhat.com> 2.5.1-55
  116. - Fix 'memory exhausted' errors by limiting in-memory buffer (bug #198165).
  117. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.5.1-54.1
  118. - rebuild
  119. * Wed May 31 2006 Tim Waugh <twaugh@redhat.com> 2.5.1-54
  120. - Applied upstream patch to fix '-D skip' (bug #189580).
  121. * Mon Feb 20 2006 Tim Waugh <twaugh@redhat.com> 2.5.1-53
  122. - Applied Tim Robbins' patch for 'grep -w' (bug #179698).
  123. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.5.1-52.2
  124. - bump again for double-long bug on ppc(64)
  125. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.5.1-52.1
  126. - rebuilt for new gcc4.1 snapshot and glibc changes
  127. * Fri Feb 3 2006 Tim Waugh <twaugh@redhat.com> 2.5.1-52
  128. - Prevent 'grep -P' from segfaulting (bug #171379).
  129. * Sat Oct 7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.1-50vl2
  130. - changed Group to System Environment/Base
  131. * Tue Aug 2 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.1-50vl1
  132. - based on Fedora development 2.5.1-50
  133. * Tue Jun 28 2005 Tim Waugh <twaugh@redhat.com> 2.5.1-50
  134. - Futher fixing for bug #161700.
  135. * Mon Jun 27 2005 Tim Waugh <twaugh@redhat.com> 2.5.1-49
  136. - Fix 'grep -Fw' for encodings other than UTF-8 (bug #161700).
  137. * Wed Apr 13 2005 Tim Waugh <twaugh@redhat.com>
  138. - Build requires recent pcre-devel (bug #154626).
  139. * Fri Jan 7 2005 Tim Waugh <twaugh@redhat.com> 2.5.1-47
  140. - Run 'make check'.
  141. - Fixed -w handling for EGexecute. Now 'make check' passes.
  142. - Cache MB_CUR_MAX value in egf-speedup patch.
  143. - Fixed variable shadowing in egf-speedup patch.
  144. - Removed redundant (and incorrect) code in prline.
  145. * Fri Jan 7 2005 Tim Waugh <twaugh@redhat.com> 2.5.1-46
  146. - More -w tests from Jakub Jelinek.
  147. - Rebased on 2.5.1a.
  148. * Fri Dec 31 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-45
  149. - More tests (Jakub Jelinek).
  150. - Jakub Jelinek's much improved -Fi algorithm.
  151. - Removed bogus part of grep-2.5.1-fgrep patch.
  152. * Tue Dec 21 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-44
  153. - Fixed -Fi for multibyte input (bug #143079).
  154. * Thu Dec 16 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-43
  155. - Bypass kwset matching when ignoring case and processing multibyte input
  156. (bug #143079).
  157. * Tue Dec 14 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-42
  158. - Further UTF-8 processing avoided since a '\n' byte is always an
  159. end-of-line character in that encoding.
  160. * Fri Dec 3 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-41
  161. - Fixed a busy loop in the egf-speedup patch (bug #140781).
  162. * Thu Nov 18 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-40
  163. - Fixed a bug in the fgrep patch, exposed by the dfa-optional patch
  164. (bug #138558).
  165. * Tue Nov 16 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-39
  166. - Fixed last patch.
  167. * Tue Nov 16 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-38
  168. - Applied patch from Karsten Hopp to fix background colour problems with
  169. --color output (bug #138913).
  170. * Wed Nov 10 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-37
  171. - Prevent false matches when DFA is disabled (bug #138558).
  172. * Mon Nov 8 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-36
  173. - Automatically disable DFA when processing multibyte input. GREP_USE_DFA
  174. environment variable overrides.
  175. * Fri Nov 5 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-35
  176. - Fixes to egf-speedup patch: now it does not change any functionality,
  177. as intended.
  178. - GREP_NO_DFA now turns off the DFA engine, for performance testing.
  179. * Thu Nov 4 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-34
  180. - More improvements to egf-speedup patch (bug #138076).
  181. * Thu Nov 4 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-33
  182. - Small improvements to egf-speedup patch.
  183. * Wed Nov 3 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-32
  184. - Remove mb-caching hack.
  185. - Better multibyte handling in EGexecute() and Fexecute().
  186. - Don't need regex.c changes in grep-2.5-i18n.patch.
  187. * Wed Oct 13 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-31
  188. - Make 'grep -F' avoid UTF-8 processing if the pattern contains no
  189. multibyte characters (bug #133932).
  190. * Mon Oct 11 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-30
  191. - Applied patch from Robert Scheck to tidy spec file and add a URL
  192. tag (bug #135185).
  193. * Sun Sep 5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.1-29vl1
  194. - based on Fedora development 2.5.1-29
  195. * Fri Jun 4 2004 Tim Waugh <twaugh@redhat.com>
  196. - More build requirements (bug #125323).
  197. * Tue May 18 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-27
  198. - Fix dfa multibyte character class matching when -i is used (bug #123363).
  199. - Use bracket patch before i18n patch to make it clear that the bug exists
  200. upstream.
  201. * Thu Feb 26 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-26
  202. - Fix fgrep (bug #116909).
  203. * Mon Jan 5 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-24
  204. - Work around glibc bug #112869 (segfault in re_compile_pattern).
  205. - Avoid patching Makefile.am, to avoid automake/autoconf weirdness.
  206. * Wed Dec 10 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-23
  207. - Another multibyte efficiency bug-fix (bug #111800).
  208. * Mon Dec 8 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-22
  209. - Fixed [:alpha:]-type character classes (bug #108484).
  210. - Fixed -o -i properly (bug #111489).
  211. * Sat Dec 6 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-21
  212. - Fixed 'fgrep -i' (bug #111614).
  213. * Fri Nov 21 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-20
  214. - Another two multibyte efficiency bug-fixes (bug #110524).
  215. * Thu Nov 6 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-19
  216. - Fixed a multibyte efficiency bug.
  217. * Thu Nov 6 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-18
  218. - Turn on multibyte efficiency patch again to shake out bugs.
  219. * Wed Oct 8 2003 Tim Waugh <twaugh@redhat.com>
  220. - Fixed man page bug (bug #106267).
  221. * Thu Sep 18 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-17
  222. - Use symlinks for egrep/fgrep, rather than shell script wrappers.
  223. * Fri Jun 27 2003 Tim Waugh <twaugh@redhat.com>
  224. - Fix debuginfo package.
  225. * Fri Jun 27 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-16
  226. - Finally give up on making grep go fast. :-(
  227. * Thu Jun 26 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-15
  228. - Fixed grep -i bug introduced by cache.
  229. * Mon Jun 23 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-14
  230. - Redo the gofast patch (bug #97785).
  231. * Thu Jun 12 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-13
  232. - Fixed a bug in the gofast patch (bug #97266).
  233. * Tue Jun 10 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-12
  234. - Go faster (bug #69900).
  235. - Fix man page.
  236. * Thu May 29 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-10
  237. - Use system regex again.
  238. * Thu May 29 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-9
  239. - Fixed bug in go-fast patch.
  240. * Wed May 28 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-8
  241. - Go fast (bug #69900).
  242. - Run test suite.
  243. - rebuild with new toolchains
  244. - build with --disable-prel-regexp option
  245. * Wed Feb 19 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.1-7vl3
  246. - based on Rawhide 2.5.1-7
  247. - Don't install /usr/share/info/dir.
  248. - Fix -o -i (bug #72641).
  249. - i18n patch.
  250. * Sat Jul 6 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  251. - 2.5-0vl1
  252. - update to 2.5
  253. - change i18n patch
  254. * Sun Jan 20 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  255. - 2.5-0vl1
  256. - update to 2.5
  257. - change i18n patch
  258. * Sat Jan 20 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  259. - 2.4.2-4vl1
  260. - usr better macros (%%configure/%%makeinstall)
  261. * Mon Jun 19 2000 Jun Nishii <jun@vinelinux.org>
  262. - 2.4-3vl1
  263. - merge ja patch
  264. * Thu Feb 03 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  265. - gzip info pages (Bug #9035)
  266. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  267. - fix description
  268. * Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
  269. - update to 2.4.
  270. * Wed Oct 20 1999 Bill Nottingham <notting@redhat.com>
  271. - prereq install-info
  272. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  273. - auto rebuild in the new build environment (release 2)
  274. * Mon Mar 08 1999 Preston Brown <pbrown@redhat.com>
  275. - upgraded to grep 2.3, added install-info %post/%preun for info
  276. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  277. - Injected new description and group.
  278. * Sat May 09 1998 Prospector System <bugs@redhat.com>
  279. - translations modified for de, fr, tr
  280. * Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
  281. - updated to 2.2
  282. * Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
  283. - updated from 2.0 to 2.1
  284. - spec file cleanups
  285. - added BuildRoot
  286. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  287. - built against glibc