grep.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ##
  2. ## grep.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.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: grep
  27. Summary: Global Regular Expression Print
  28. URL: http://www.gnu.org/software/grep/
  29. Vendor: Free Software Foundation
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [BASE]
  32. Group: Text
  33. License: GPL
  34. Version: 2.5
  35. Release: 20020823
  36. # list of sources
  37. Source0: ftp://ftp.gnu.org/gnu/grep/grep-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206, libiconv, pcre, gcc, make, bison, gettext
  42. PreReq: OpenPKG, openpkg >= 20020206
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Grep searches the named input FILEs (or standard input if no files are
  47. named, or the file name - is given) for lines containing a match to the
  48. given PATTERN. By default, grep prints the matching lines.
  49. %prep
  50. %setup -q
  51. %build
  52. CC="%{l_cc}" \
  53. CFLAGS="%{l_cflags -O}" \
  54. CPPFLAGS="-I%{l_prefix}/include" \
  55. LDFLAGS="-L%{l_prefix}/lib" \
  56. %{l_bash} ./configure \
  57. --prefix=%{l_prefix} \
  58. --with-included-gettext
  59. %{l_make} %{l_mflags -O}
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. %{l_make} %{l_mflags} install \
  63. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  64. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  65. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  66. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
  67. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
  68. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  69. %files -f files
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. # FIXME: dv1 PMOD good line: source='error.c' object='error.o' libtool=no depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' depmode=gcc3 /cw/bin/bash ../depcomp /cw/bin/cc -DLIBDIR=\"/cw/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../intl -I/cw/include -O2 -pipe -I/cw/include -c `test -f error.c || echo './'`error.c
  73. # FIXME: dv1 ROLL bad line: source='error.c' object='error.o' libtool=no depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' depmode=gcc /bin/sh ../depcomp cc -DLIBDIR=\"/re/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../intl -I/re/include -O2 -pipe -I/re/include -c `test -f error.c || echo './'`error.c
  74. # FIXME: both PMOD and ROLL show "checking whether strerror_r is declared... yes", but config.h is different
  75. # FIXME: dv1:/tmp/thl/openpkg/grep-2.5/config.h #define HAVE_DECL_STRERROR_R 1
  76. # FIXME: dv1:/ltmp/openpkg-dv1-ix86-freebsd4.6/TMP/grep-2.5/config.h #define HAVE_DECL_STRERROR_R 0