crm114.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ##
  2. ## crm114.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 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 20070731
  26. %define V_opkg 20070731
  27. %define V_name BlameTheInterns
  28. # package information
  29. Name: crm114
  30. Summary: CRM114 Discriminator
  31. URL: http://crm114.sourceforge.net/
  32. Vendor: William S. Yerazunis
  33. Packager: OpenPKG Foundation e.V.
  34. Distribution: OpenPKG Community
  35. Class: BASE
  36. Group: Mail
  37. License: GPL
  38. Version: %{V_opkg}
  39. Release: 20070804
  40. # list of sources
  41. Source0: http://crm114.sourceforge.net/tarballs/crm114-%{V_dist}-%{V_name}.src.tar.gz
  42. Patch0: crm114.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
  47. PreReq: OpenPKG, openpkg >= 20040130
  48. BuildPreReq: tre, libutf8
  49. PreReq: tre, libutf8
  50. AutoReq: no
  51. AutoReqProv: no
  52. %description
  53. CRM114 is a system to examine incoming e-mail, system log streams,
  54. data files or other data streams, and to sort, filter, or alter
  55. the incoming files or data streams according to whatever the user
  56. desires. Criteria for categorization of data can be by satisfaction
  57. of regexes, by sparse binary polynomial matching with a Bayesian
  58. Chain Rule evaluator, or by other means. Accuracy of the SBPH/BCR
  59. classifier has been seen in excess of 99 per cent, for 1/4 megabyte
  60. of learning text. In other words, CRM114 learns, and it learns fast.
  61. %track
  62. prog crm114 = {
  63. version = %{V_dist}-%{V_name}
  64. url = http://crm114.sourceforge.net/tarballs/
  65. regex = crm114-(__VER__([-\.][^.]+)?)\.src\.tar\.gz
  66. }
  67. %prep
  68. %setup -q -n crm114-%{V_dist}-%{V_name}.src
  69. %patch -p0
  70. %build
  71. %{l_shtool} subst \
  72. -e 's;-ltre;%{l_ldflags} -ltre -lutf8;' \
  73. -e 's;-static;;' \
  74. Makefile
  75. %{l_make} %{l_mflags} \
  76. CC="%{l_cc}" CFLAGS="%{l_cflags -O} -I. %{l_cppflags}" LIBS="-lm"
  77. cat INTRO.txt QUICKREF.txt FAQ.txt >crm114.1
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. %{l_shtool} mkdir -p -f -m 755 \
  81. $RPM_BUILD_ROOT%{l_prefix}/bin \
  82. $RPM_BUILD_ROOT%{l_prefix}/man/cat1
  83. %{l_shtool} install -c -s -m 755 \
  84. crm114 $RPM_BUILD_ROOT%{l_prefix}/bin/
  85. %{l_shtool} install -c -m 644 \
  86. crm114.1 $RPM_BUILD_ROOT%{l_prefix}/man/cat1/
  87. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  88. %files -f files
  89. %clean
  90. rm -rf $RPM_BUILD_ROOT