crm114.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ##
  2. ## crm114.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 version
  26. %define V_dist 20031015-RC1
  27. %define V_opkg 20031015rc1
  28. %define V_tre 0.5.3
  29. # package information
  30. Name: crm114
  31. Summary: CRM114 Discriminator
  32. URL: http://crm114.sourceforge.net/
  33. Vendor: William S. Yerazunis
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [PLUS]
  36. Group: Text
  37. License: GPL
  38. Version: %{V_opkg}
  39. Release: 20031017
  40. # list of sources
  41. Source0: http://crm114.sourceforge.net/crm114-%{V_dist}.src.tar.gz
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20030103, gcc
  46. PreReq: OpenPKG, openpkg >= 20030103
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. CRM114 is a system to examine incoming e-mail, system log streams,
  51. data files or other data streams, and to sort, filter, or alter
  52. the incoming files or data streams according to whatever the user
  53. desires. Criteria for categorization of data can be by satisfaction
  54. of regexes, by sparse binary polynomial matching with a Bayesian
  55. Chain Rule evaluator, or by other means. Accuracy of the SBPH/BCR
  56. classifier has been seen in excess of 99 per cent, for 1/4 megabyte
  57. of learning text. In other words, CRM114 learns, and it learns fast.
  58. %prep
  59. %setup -q -n crm114-%{V_dist}.src
  60. %build
  61. ( cd tre-%{V_tre}
  62. CC="%{l_cc}" \
  63. CFLAGS="%{l_cflags -O}" \
  64. ./configure \
  65. --disable-shared \
  66. --disable-agrep \
  67. --disable-wchar \
  68. --disable-nls
  69. --without-libiconv-prefix \
  70. --without-libintl-prefix
  71. %{l_make} %{l_mflags -O}
  72. ) || exit $?
  73. %{l_shtool} subst \
  74. -e 's;-ltre;-Ltre-%{V_tre}/lib/.libs -ltre;' \
  75. Makefile
  76. %{l_make} %{l_mflags} \
  77. CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
  78. cat intro.txt quickref.txt faq.txt >crm114.1
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. %{l_shtool} mkdir -p -f -m 755 \
  82. $RPM_BUILD_ROOT%{l_prefix}/bin \
  83. $RPM_BUILD_ROOT%{l_prefix}/man/cat1
  84. %{l_shtool} install -c -s -m 755 \
  85. crm114 $RPM_BUILD_ROOT%{l_prefix}/bin/
  86. %{l_shtool} install -c -m 644 \
  87. crm114.1 $RPM_BUILD_ROOT%{l_prefix}/man/cat1/
  88. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  89. %files -f files
  90. %clean
  91. rm -rf $RPM_BUILD_ROOT