crm114/crm114.spec

Name: crm114
Summary: Controllable Regex Mutilator
Version: 20100106
Release: 3
License: GPL
Group: Applications/Text
URL: http://crm114.sourceforge.net/
Description: CRM114 is a system to examine incoming e-mail, system log streams, data files or other data streams, and to sort, filter, or alter the incoming files or data streams according to the user's wildest desires. Criteria for categorization of data can be via a host of methods, including regexes, approximate regexes, a Hidden Markov Model, Bayesian Chain Rule, Orthogonal Sparse Bigrams, Winnow, Correlation, KNN/Hyperspace, Bit Entropy, CLUMP, SVM, Neural Networks (or by other means- it's all programmable).

Spam is the big target with CRM114, but it's not a specialized Email-only tool. CRM114 has been used to sort web pages, resumes, blog entries, log files, and lots of other things. Accuracy can be as high as 99.9%. In other words, CRM114 learns, and it learns fast.

CRM114 is compatible with SpamAssassin or other spam-flagging software; it can also be pipelined in front of or behind procmail. CRM114 is also useful as a syslog or firewall log filter, to alert you to important events but ignore the ones that aren't meaningful.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: shuff
# Upstream: Bill Yerazunis <wsy$users,sourceforge,net>

# update this with every release
%define codename BlameMichelson

Summary: Controllable Regex Mutilator
Name: crm114
Version: 20100106
Release: 3%{?dist}
License: GPL
Group: Applications/Text
URL: http://crm114.sourceforge.net/

Source: http://crm114.sourceforge.net/tarballs/crm114-%{version}-%{codename}.src.tar.gz
Patch0: %{name}_Makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: binutils
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: make
BuildRequires: tre-devel >= 0.7.5

%description
CRM114 is a system to examine incoming e-mail, system log streams, data files
or other data streams, and to sort, filter, or alter the incoming files or data
streams according to the user's wildest desires. Criteria for categorization of
data can be via a host of methods, including regexes, approximate regexes, a
Hidden Markov Model, Bayesian Chain Rule, Orthogonal Sparse Bigrams, Winnow,
Correlation, KNN/Hyperspace, Bit Entropy, CLUMP, SVM, Neural Networks (or by
other means- it's all programmable).

Spam is the big target with CRM114, but it's not a specialized Email-only tool.
CRM114 has been used to sort web pages, resumes, blog entries, log files, and
lots of other things. Accuracy can be as high as 99.9%. In other words, CRM114
learns, and it learns fast.

CRM114 is compatible with SpamAssassin or other spam-flagging software; it can
also be pipelined in front of or behind procmail. CRM114 is also useful as a
syslog or firewall log filter, to alert you to important events but ignore the
ones that aren't meaningful. 

%package emacs
Summary: Emacs mode for CRM114
Group: Applications/Text
Requires: %{name} = %{version}
Requires: emacs-common

%description emacs
Emacs mode for editing CRM114 config files.

%prep
%setup -n %{name}-%{version}-%{codename}.src
%patch0 -p1

%build
%{__make} FLAGS="%{optflags}" LDFLAGS="-L%{_libdir}"

%install
%{__rm} -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_bindir}
%{__install} -d -m0755 %{buildroot}%{_datadir}/emacs/site-lisp/
%{__make} install DESTDIR="%{buildroot}"

# put various .crm files in %{_libexecdir}
%{__install} -Dp -m0755 calc.crm %{buildroot}%{_libexecdir}/crm114/calc.crm
%{__install} -Dp -m0755 classifymail.crm %{buildroot}%{_libexecdir}/crm114/classifymail.crm
%{__install} -Dp -m0755 gatlingsort.crm %{buildroot}%{_libexecdir}/crm114/gatlingsort.crm
%{__install} -Dp -m0755 mailfilter.crm %{buildroot}%{_libexecdir}/crm114/mailfilter.crm
%{__install} -Dp -m0755 maillib.crm %{buildroot}%{_libexecdir}/crm114/maillib.crm
%{__install} -Dp -m0755 mailreaver.crm %{buildroot}%{_libexecdir}/crm114/mailreaver.crm
%{__install} -Dp -m0755 mailtrainer.crm %{buildroot}%{_libexecdir}/crm114/mailtrainer.crm
%{__install} -Dp -m0755 pad.crm %{buildroot}%{_libexecdir}/crm114/pad.crm
%{__install} -Dp -m0755 quine.crm %{buildroot}%{_libexecdir}/crm114/quine.crm
%{__install} -Dp -m0755 rewriteutil.crm %{buildroot}%{_libexecdir}/crm114/rewriteutil.crm
%{__install} -Dp -m0755 shroud.crm %{buildroot}%{_libexecdir}/crm114/shroud.crm
%{__install} -Dp -m0755 shuffle.crm %{buildroot}%{_libexecdir}/crm114/shuffle.crm
%{__install} -Dp -m0755 tenfold_validate.crm %{buildroot}%{_libexecdir}/crm114/tenfold_validate.crm

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc README *.txt *.recipe *.example *.cf
%{_bindir}/crm
%{_bindir}/cssdiff
%{_bindir}/cssmerge
%{_bindir}/cssutil
%{_bindir}/osbf-util
%{_libexecdir}/crm114/

%files emacs
%dir %{_datadir}/emacs/
%dir %{_datadir}/emacs/site-lisp/
%{_datadir}/emacs/site-lisp/crm114-mode.el

%changelog
* Thu Jun 17 2010 Steve Huff <shuff@vecna.org> - 20100106-3
- One more missing .crm (thanks Kevin Chua Soon Jia!)

* Tue Apr 13 2010 Steve Huff <shuff@vecna.org> - 20100106-2
- Oops, forgot to include a bunch of .crm scripts!

* Sat Mar 13 2010 Steve Huff <shuff@vecna.org> - 20100106-1
- Initial package.