crm114.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## crm114.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package version
  25. %define V_dist 20050628
  26. %define V_opkg 20050628
  27. %define V_name BlameCochrane
  28. # package information
  29. Name: crm114
  30. Summary: CRM114 Discriminator
  31. URL: http://crm114.sourceforge.net/
  32. Vendor: William S. Yerazunis
  33. Packager: OpenPKG
  34. Distribution: OpenPKG
  35. Class: PLUS
  36. Group: Text
  37. License: GPL
  38. Version: %{V_opkg}
  39. Release: 20050701
  40. # list of sources
  41. Source0: http://crm114.sourceforge.net/crm114-%{V_dist}.%{V_name}.src.tar.gz
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040130, tre, gcc, make
  46. PreReq: OpenPKG, openpkg >= 20040130, tre
  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. %track
  59. prog crm114 = {
  60. version = %{V_dist}.%{V_name}
  61. url = http://crm114.sourceforge.net/
  62. regex = crm114-(__VER__([-\.][^.]+)?)\.src\.tar\.gz
  63. }
  64. %prep
  65. %setup -q -n crm114-%{V_dist}.%{V_name}.src
  66. %build
  67. %{l_shtool} subst \
  68. -e 's;-ltre;%{l_ldflags} -ltre;' \
  69. -e 's;-static;;' \
  70. Makefile
  71. %{l_make} %{l_mflags} \
  72. CC="%{l_cc}" CFLAGS="%{l_cflags -O} -I. %{l_cppflags}" LIBS="-lm"
  73. cat INTRO.txt QUICKREF.txt FAQ.txt >crm114.1
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_shtool} mkdir -p -f -m 755 \
  77. $RPM_BUILD_ROOT%{l_prefix}/bin \
  78. $RPM_BUILD_ROOT%{l_prefix}/man/cat1
  79. %{l_shtool} install -c -s -m 755 \
  80. crm114 $RPM_BUILD_ROOT%{l_prefix}/bin/
  81. %{l_shtool} install -c -m 644 \
  82. crm114.1 $RPM_BUILD_ROOT%{l_prefix}/man/cat1/
  83. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  84. %files -f files
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT