crm114.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ##
  2. ## crm114.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 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 version
  26. %define V_dist 2003-06-23-alpha
  27. %define V_opkg 20030623
  28. # package information
  29. Name: crm114
  30. Summary: CRM114 Discriminator
  31. URL: http://crm114.sourceforge.net/
  32. Vendor: William S. Yerazunis
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: Text
  36. License: GPL
  37. Version: %{V_opkg}
  38. Release: 20030629
  39. # list of sources
  40. Source0: http://crm114.sourceforge.net/crm114-%{V_dist}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20030103
  45. PreReq: OpenPKG, openpkg >= 20030103
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. CRM114 is a system to examine incoming e-mail, system log streams,
  50. data files or other data streams, and to sort, filter, or alter
  51. the incoming files or data streams according to whatever the user
  52. desires. Criteria for categorization of data can be by satisfaction
  53. of regexes, by sparse binary polynomial matching with a Bayesian
  54. Chain Rule evaluator, or by other means. Accuracy of the SBPH/BCR
  55. classifier has been seen in excess of 99 per cent, for 1/4 megabyte
  56. of learning text. In other words, CRM114 learns, and it learns fast.
  57. %prep
  58. %setup -q -n crm114-%{V_dist}
  59. %build
  60. %{l_make} %{l_mflags} \
  61. CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
  62. cat intro.txt quickref.txt faq.txt >crm114.1
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -p -f -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/man/cat1
  68. %{l_shtool} install -c -s -m 755 \
  69. crm114 $RPM_BUILD_ROOT%{l_prefix}/bin/
  70. %{l_shtool} install -c -m 644 \
  71. crm114.1 $RPM_BUILD_ROOT%{l_prefix}/man/cat1/
  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