glark.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. ## glark.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: glark
  27. Summary: Grep-Like File Searcher
  28. URL: http://www.glark.org/
  29. Vendor: Jeff Pace
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Text
  34. License: GPL
  35. Version: 1.6.7
  36. Release: 20040217
  37. # list of sources
  38. Source0: http://osdn.dl.sourceforge.net/sourceforge/glark/glark-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130
  43. PreReq: OpenPKG, openpkg >= 20040130, ruby
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. glark offers grep-like searching of text files, with very
  48. powerful, complex regular expressions (e.g., "/foo\w+/ and
  49. /bar[^\d]*baz$/ within 4 lines of each other"). It also highlights
  50. the matches, displays context (preceding and succeeding lines),
  51. does case-insensitive matches, and automatic exclusion of non-text
  52. files. It supports most options from the GNU version of grep.
  53. %track
  54. prog glark = {
  55. version = %{version}
  56. url = http://prdownloads.sourceforge.net/glark/
  57. regex = glark-(__VER__)\.tar\.gz
  58. }
  59. %prep
  60. %setup -q
  61. %build
  62. %{l_shtool} subst \
  63. -e 's;#!/bin/sh;#!@l_prefix@/bin/ruby;' \
  64. -e 's;exec ruby;#exec ruby;' \
  65. glark
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/bin \
  70. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  71. %{l_shtool} install -c -m 755 \
  72. glark $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -m 644 \
  74. glark.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT