glimpse.spec 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## glimpse.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: 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
  32. Class: BASE
  33. Group: Text
  34. License: Non-Profit
  35. Version: 4.18.0
  36. Release: 20040715
  37. # list of sources
  38. Source0: http://webglimpse.net/trial/glimpse-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, make, flex, gcc
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Glimpse is a very powerful indexing and query system for UNIX that
  48. allows you to search through all your files very quickly. It can be
  49. used by individuals for their personal file systems as well as by
  50. organizations for large data collections.
  51. %track
  52. prog glimpse = {
  53. comment = "rse: website still does not show latest version"
  54. version = %{version}
  55. url = http://webglimpse.net/download.php
  56. regex = Glimpse.(__VER__)
  57. }
  58. %prep
  59. %setup -q
  60. %{l_shtool} subst -e 's;^\(INDEXLIBS=\);#\1;' configure
  61. %{l_shtool} subst \
  62. -e 's;__STRICT_ANSI__;__STDC__;g' \
  63. libtemplate/util/log.c \
  64. libtemplate/include/util.h
  65. %build
  66. CC="%{l_cc} %{l_cflags -O} %{l_cppflags} %{l_ldflags}" \
  67. CFLAGS="%{l_cflags -O}" \
  68. CPPFLAGS="%{l_cppflags}" \
  69. LDFLAGS="%{l_ldflags}" \
  70. ./configure \
  71. --prefix=%{l_prefix}
  72. %{l_make} %{l_mflags}
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
  76. rm -rf $RPM_BUILD_ROOT%{l_prefix}/man
  77. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
  78. %{l_shtool} install -c -m 644 *.1 */*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  79. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT