diff --git a/README.md b/README.md index b4ab579..b7ff9c7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # bogofilter +Bogofilter is a mail filter that classifies mail as spam or ham (non-spam) by a statistical analysis of the message's header and content (body). The program is able to learn from the user's classifications and corrections. + diff --git a/bogofilter.spec b/bogofilter.spec new file mode 100644 index 0000000..912425a --- /dev/null +++ b/bogofilter.spec @@ -0,0 +1,92 @@ +Name: bogofilter +Version: 1.2.4 +Release: 1mamba +Summary: Fast anti-spam filtering by Bayesian statistical analysis +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://bogofilter.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/bogofilter/bogofilter-%{version}/bogofilter-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libdb51-devel +BuildRequires: libgsl-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: flex +BuildRequires: xmlto +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Bogofilter is a mail filter that classifies mail as spam or ham (non-spam) by a statistical analysis of the message's header and content (body). The program is able to learn from the user's classifications and corrections. + +%package -n bogoupgrade +Summary: Upgrades bogofilter database to current version +Group: System/Tools +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n bogoupgrade +bogoupgrade is a command to upgrade bogofilter’s databases from an old format to the current format. Since the format of the database changes once in a while, the utility is designed to make the upgrade easy. +bogoupgrade is in an extra package to remove the perl dependency on the main bogofilter package. + +%prep +%setup -q + +iconv -f iso-8859-1 -t utf-8 doc/bogofilter-faq-fr.html > doc/bogofilter-faq-fr.html.utf8 +mv -f doc/bogofilter-faq-fr.html.utf8 doc/bogofilter-faq-fr.html + +%build +%configure \ + --disable-rpath +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +mv -f %{buildroot}%{_sysconfdir}/bogofilter.cf.example %{buildroot}%{_sysconfdir}/bogofilter.cf + +mkdir -p rpm-doc/xml/ rpm-doc/html/ +install -m 644 doc/*.xml rpm-doc/xml/ +install -m 644 doc/*.html rpm-doc/html/ + +chmod -x contrib/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/bogofilter.cf +%{_bindir}/bf_compact +%{_bindir}/bf_copy +%{_bindir}/bf_tar +%{_bindir}/bogofilter +%{_bindir}/bogolexer +%{_bindir}/bogotune +%{_bindir}/bogoutil +%{_mandir}/man1/bf_compact.1.gz +%{_mandir}/man1/bf_copy.1.gz +%{_mandir}/man1/bf_tar.1.gz +%{_mandir}/man1/bogofilter.1.gz +%{_mandir}/man1/bogolexer.1.gz +%{_mandir}/man1/bogotune.1.gz +%{_mandir}/man1/bogoutil.1.gz +%doc AUTHORS COPYING + +%files -n bogoupgrade +%defattr(-,root,root) +%{_bindir}/bogoupgrade +%{_mandir}/man1/bogoupgrade.1.gz + +%changelog +* Sun Jul 07 2013 Automatic Build System 1.2.4-1mamba +- automatic version update by autodist + +* Fri Apr 12 2013 Silvan Calarco 1.2.3-1mamba +- update to 1.2.3 + +* Mon Sep 20 2010 gil 1.2.1-1mamba +- package created by autospec