glimpse.spec 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ##
  2. ## glimpse.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 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: glimpse
  27. Summary: Text Indexing and Searching Toolkit
  28. URL: http://webglimpse.net/
  29. Vendor: Free Software Foundation
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [PLUS]
  32. Group: Text
  33. License: Non-Profit
  34. Version: 4.17.2
  35. Release: 20030731
  36. # list of sources
  37. Source0: http://webglimpse.net/trial/glimpse-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20030108, make, flex, gcc
  42. PreReq: OpenPKG, openpkg >= 20030108
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Glimpse is a very powerful indexing and query system for UNIX that
  47. allows you to search through all your files very quickly. It can be
  48. used by individuals for their personal file systems as well as by
  49. organizations for large data collections.
  50. %prep
  51. %setup -q
  52. %{l_shtool} subst -e 's;^\(INDEXLIBS=\);#\1;' configure
  53. %{l_shtool} subst \
  54. -e 's;__STRICT_ANSI__;__STDC__;g' \
  55. libtemplate/util/log.c \
  56. libtemplate/include/util.h
  57. %build
  58. CC="%{l_cc} %{l_cflags -O} %{l_cppflags} %{l_ldflags}" \
  59. CFLAGS="%{l_cflags -O}" \
  60. CPPFLAGS="%{l_cppflags}" \
  61. LDFLAGS="%{l_ldflags}" \
  62. ./configure \
  63. --prefix=%{l_prefix}
  64. %{l_make} %{l_mflags}
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
  68. rm -rf $RPM_BUILD_ROOT%{l_prefix}/man
  69. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
  70. %{l_shtool} install -c -m 644 *.1 */*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  71. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  72. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  73. %files -f files
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT