%define _requires_exceptions perl Summary: Fast anti-spam filtering by Bayesian statistical analysis Name: bogofilter Version: 1.2.3 Release: %mkrel 2 License: GPLv2+ Group: Networking/Mail URL: http://bogofilter.sourceforge.net Source0: http://prdownloads.sourceforge.net/bogofilter/%{name}-%{version}.tar.bz2 BuildRequires: db-devel BuildRequires: gsl-devel BuildRequires: valgrind BuildRequires: flex BuildRequires: xmlto BuildRequires: openjade %description Bogofilter is a Bayesian spam filter. In its normal mode of operation, it takes an email message or other text on standard input, does a statistical check against lists of "good" and "bad" words, and returns a status code indicating whether or not the message is spam. Bogofilter is designed with fast algorithms (including Berkeley DB system), coded directly in C, and tuned for speed, so it can be used for production by sites that process a lot of mail. %prep %setup -q %build %configure2_5x \ --disable-rpath \ --disable-transactions \ --with-database=db \ --without-included-gsl %make %check make DESTDIR="%{buildroot}" check %install %makeinstall_std mv %{buildroot}%{_sysconfdir}/bogofilter.cf.example %{buildroot}%{_sysconfdir}/bogofilter.cf ##include contrib...some my find it usefull for d in contrib ; do install -d %{buildroot}%{_datadir}/%{name}/$d files=$(find "$d" -maxdepth 1 -type f -print) for f in $files ; do case $f in *.c|*.o|*.obj|*/Makefile*) continue ;; *.1) cp -p $f %{buildroot}%{_mandir}/man1 ;; *) cp -p $f %{buildroot}%{_datadir}/%{name}/$d ;; esac done done # prepare for doc inclusion for n in xml html ; do install -d .inst/$n install -m644 doc/*.$n .inst/$n done %files %doc AUTHORS GETTING.STARTED Doxyfile NEWS %doc README* RELEASE.NOTES %doc RELEASE.NOTES* TODO bogofilter.cf.example %doc doc/README* doc/bogofilter-SA* %doc doc/integrating-* %doc doc/rpm.notes.BerkeleyDB %doc .inst/html .inst/xml %doc trio/AUTHORS trio/CHANGES trio/README %doc contrib/README* %config(noreplace) %{_sysconfdir}/bogofilter.cf %{_bindir}/* %{_datadir}/bogofilter %{_mandir}/man1/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 1.2.3-2.mga3 + Revision: 346936 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Dec 06 2012 julien <julien> 1.2.3-1.mga3 + Revision: 327545 - new version 1.2.3 * Tue Jul 31 2012 fwang <fwang> 1.2.2-4.mga3 + Revision: 276366 - rebuild for db-5.3 * Fri Jul 27 2012 fwang <fwang> 1.2.2-3.mga3 + Revision: 274763 - build with system db * Fri Feb 25 2011 ahmad <ahmad> 1.2.2-2.mga1 + Revision: 59198 - imported package bogofilter