6659111
%define cvsver 20100106
6659111
%define codename BlameMichelson
60dbba1
21b8f9e
Summary: Controllable Regex Mutilator: multi-method content classifier and filter
60dbba1
Name: crm114
60dbba1
Version: 0
59c46fe
Release: 8.14.%{cvsver}%{?dist}
60dbba1
URL: http://crm114.sourceforge.net/
9f327dd
License: GPLv3
60dbba1
Group: Applications/Text
9f327dd
Source0: http://crm114.sourceforge.net/tarballs/%{name}-%{cvsver}-%{codename}.src.tar.gz
60dbba1
Patch0: %{name}-rpm.patch
21b8f9e
Patch1: %{name}-tre.patch
60dbba1
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
21b8f9e
BuildRequires: tre-devel >= 0.8.0
60dbba1
60dbba1
%description 
60dbba1
CRM114 is a system to examine incoming e-mail, system log streams,
60dbba1
data files or other data streams, and to sort, filter, or alter the
60dbba1
incoming files or data streams according to the user's wildest
60dbba1
desires. Criteria for categorization of data can be by satisfaction of
60dbba1
regexes, by sparse binary polynomial matching with a Bayesian Chain
60dbba1
Rule evaluator, or by other means.
60dbba1
60dbba1
%package emacs
60dbba1
Summary: CRM114 mode for Emacs
60dbba1
Group: Applications/Text
60dbba1
Requires: emacs-el
60dbba1
60dbba1
%description emacs
60dbba1
Major Emacs mode for editing crm114 scripts.
60dbba1
60dbba1
%prep
8c8b2ea
%setup -q -n %{name}-%{cvsver}-%{codename}.src
60dbba1
%patch0 -p1 -b .r
21b8f9e
%patch1 -p1 -b .tre
8c8b2ea
chmod 644 mailfilter.cf
60dbba1
60dbba1
%build
9f327dd
make %{?_smp_mflags} OPTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS"
60dbba1
60dbba1
%clean 
60dbba1
rm -rf $RPM_BUILD_ROOT
60dbba1
60dbba1
%install
60dbba1
rm -rf $RPM_BUILD_ROOT
60dbba1
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/{%{name},emacs/site-lisp}}
4fa6490
make DESTDIR=$RPM_BUILD_ROOT INSTALLFLAGS="-m 755 -p" install
9d76465
install -pm 755 mail{filter,reaver,trainer}.crm shuffle.crm $RPM_BUILD_ROOT%{_datadir}/%{name}/
9d76465
install -pm 644 maillib.crm $RPM_BUILD_ROOT%{_datadir}/%{name}/
60dbba1
60dbba1
%check
60dbba1
make megatest
60dbba1
60dbba1
%files
60dbba1
%defattr(-,root,root,-)
60dbba1
%doc README *.txt *.recipe *.example mailfilter.cf
60dbba1
%{_bindir}/*
60dbba1
%{_datadir}/%{name}
60dbba1
60dbba1
%files emacs
60dbba1
%defattr(644,root,root,755)
60dbba1
%{_datadir}/emacs/site-lisp/*.el
60dbba1
60dbba1
%changelog
59c46fe
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-8.14.20100106
59c46fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
59c46fe
e065ea6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-7.14.20100106
e065ea6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e065ea6
e5b7fde
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-6.14.20100106
e5b7fde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5b7fde
214b7bd
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-5.14.20100106
214b7bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
214b7bd
fee92cc
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-4.14.20100106
fee92cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fee92cc
99d90be
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-3.14.20100106
99d90be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
99d90be
24e4d41
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-2.14.20100106
24e4d41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
24e4d41
6659111
* Sat Jun 19 2010 Dominik Mierzejewski <rpm@greysector.net> 0-1.14.20100106
6659111
- updated to 20100106 "BlameMichelson"
6659111
2479894
* Sat Jun 19 2010 Dominik Mierzejewski <rpm@greysector.net> 0-1.13.20090807
2479894
- patch mailtrainer.crm to look for mailfilter.cf in $HOME/.crm114 by default
9d76465
  and to allow specifying full path for shuffle.crm
2479894
- add full path to shuffle.crm in example mailfilter.cf
2479894
21b8f9e
* Sun Sep 20 2009 Dominik Mierzejewski <rpm@greysector.net> 0-1.12.20090807
21b8f9e
- included missing shuffle.crm (rhbz#520397)
21b8f9e
- rebuilt against new tre
21b8f9e
- improved Summary:
21b8f9e
9f327dd
* Sun Aug 23 2009 Dominik Mierzejewski <rpm@greysector.net> 0-1.11.20090807
9f327dd
- updated to 20090807 "BlameThorstenAndJenny"
9f327dd
- dropped upstreamed patch hunks, rebased patch
9f327dd
- updated source URL
9f327dd
- license changed to GPLv3
9f327dd
- needs release note: .css files format has changed, they must be rebuilt
9f327dd
554fc70
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-1.10.20080703
554fc70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
554fc70
f345b66
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-1.9.20080703
f345b66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f345b66
4fa6490
* Wed Jul 09 2008 Dominik Mierzejewski <rpm@greysector.net> 0-1.8.20080703
4fa6490
- updated to current "wget" version
4fa6490
0ef35e5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0-1.7.20070810
0ef35e5
- Autorebuild for GCC 4.3
0ef35e5
8c8b2ea
* Sat Oct 27 2007 Dominik Mierzejewski <rpm@greysector.net> 0-0.6.20070810
8c8b2ea
- updated to 20070810 "BlameTheSegfault"
8c8b2ea
- dropped obsolete patch
8c8b2ea
6a1a0f3
* Wed Aug 29 2007 Karol Trzcionka <karlikt at gmail.com> - 0-0.5.20070301
6a1a0f3
- Rebuild for BuildID
6a1a0f3
7f0e717
* Tue Apr 17 2007 Dominik Mierzejewski <rpm@greysector.net> 0-0.4.20070301
7f0e717
- fix testsuite on 64bit, patch by Jaakko Hyvätti
7f0e717
137fae3
* Sun Apr 15 2007 Dominik Mierzejewski <rpm@greysector.net> 0-0.3.20070301
137fae3
- updated to 20070301 "BlameBaltar"
137fae3
- added missing quine.crm to testsuite
137fae3
- no more crashes on x86_64, removed ExcludeArch, fixes #202893
137fae3
b96af80
* Tue Aug 29 2006 Dominik Mierzejewski <rpm@greysector.net> 0-0.2.20060704
b96af80
- mass rebuild
b96af80
60dbba1
* Wed Aug 16 2006 Dominik Mierzejewski <rpm@greysector.net> 0-0.1.20060704
60dbba1
- FE-compliant versioning
60dbba1
- emacs subpackage should require emacs-el
60dbba1
- simplified file list
60dbba1
- added %%check
60dbba1
- small patch to make 'make megatest' work from current dir
60dbba1
- ExcludeArch: x86_64 until 64bit tre is fixed
60dbba1
60dbba1
* Wed Jul 26 2006 Dominik Mierzejewski <rpm@greysector.net>
60dbba1
- 20060704a release
60dbba1
- added -emacs package with crm mode for emacs
60dbba1
- fixed parallel make build
60dbba1
- use dist tag
60dbba1
- shut up rpmlint
60dbba1
60dbba1
* Sun Feb 19 2006 Dominik Mierzejewski <rpm@greysector.net> 0-0.1.20060118
60dbba1
- FE compliance
60dbba1
- package mailfilter scripts
60dbba1
60dbba1
* Mon Dec 15 2003 Bill Yerazunis <wsy@merl.com>
60dbba1
- removed -RCx stuff, now version contains it.
60dbba1
- updated for version 20031215-RC12
60dbba1
- License is GPL, not Artistic, so I corrected that.
60dbba1
60dbba1
* Sat Dec 13 2003 Kevin Fenzi <kevin-crm114@tummy.com>
60dbba1
- Converted line endings from dos format to unix. 
60dbba1
- Changed BuildPreReq to be 'tre-devel' 
60dbba1
- Fixed install to install into rpm build root. 
60dbba1
- tested on redhat 9 with latest tre. 
60dbba1
60dbba1
* Tue Oct 22 2003 Nico Kadel-Garcia <nkadel@merl.com>
60dbba1
- Created RedHat compatible .spec file
60dbba1
- Added libtre dependency to avoid building second package
60dbba1
- Hard-coded "INSTALL_DIR" in build/install setups