f1b1ab
Summary: Fast anti-spam filtering by Bayesian statistical analysis
f1b1ab
Name: bogofilter
f1b1ab
Version: 1.2.5
f1b1ab
Release: 2%{?dist}
f1b1ab
License: GPLv2
f1b1ab
Group: Applications/Internet
f1b1ab
URL: http://bogofilter.sourceforge.net/
f1b1ab
Source: http://downloads.sourceforge.net/bogofilter/bogofilter-%{version}.tar.xz
f1b1ab
BuildRequires: gcc
f1b1ab
BuildRequires: flex libdb-devel gsl-devel
f1b1ab
BuildRequires: /usr/bin/iconv
f1b1ab
BuildRequires: perl-generators
f1b1ab
f1b1ab
%description
f1b1ab
Bogofilter is a Bayesian spam filter.  In its normal mode of
f1b1ab
operation, it takes an email message or other text on standard input,
f1b1ab
does a statistical check against lists of "good" and "bad" words, and
f1b1ab
returns a status code indicating whether or not the message is spam.
f1b1ab
Bogofilter is designed with fast algorithms (including Berkeley DB system),
f1b1ab
coded directly in C, and tuned for speed, so it can be used for production
f1b1ab
by sites that process a lot of mail.
f1b1ab
f1b1ab
%package bogoupgrade
f1b1ab
Summary: Upgrades bogofilter database to current version
f1b1ab
Group: Applications/Internet
f1b1ab
Requires: %{name} = %{version}-%{release}
f1b1ab
f1b1ab
%description bogoupgrade
f1b1ab
bogoupgrade is a command to upgrade bogofilter’s databases from an old
f1b1ab
format to the current format. Since the format of the database changes
f1b1ab
once in a while, the utility is designed to make the upgrade easy.
f1b1ab
f1b1ab
bogoupgrade is in an extra package to remove the perl dependency on the
f1b1ab
main bogofilter package.
f1b1ab
f1b1ab
%prep
f1b1ab
%setup -q
f1b1ab
f1b1ab
iconv -f iso-8859-1 -t utf-8 \
f1b1ab
 doc/bogofilter-faq-fr.html > doc/bogofilter-faq-fr.html.utf8
f1b1ab
%{__mv} -f doc/bogofilter-faq-fr.html.utf8 \
f1b1ab
 doc/bogofilter-faq-fr.html
f1b1ab
f1b1ab
%build
f1b1ab
%configure --disable-rpath
f1b1ab
%{__make} %{?_smp_mflags}
f1b1ab
f1b1ab
%install
f1b1ab
%{__make} DESTDIR=%{buildroot} install
f1b1ab
f1b1ab
%{__mv} -f %{buildroot}%{_sysconfdir}/bogofilter.cf.example \
f1b1ab
 %{buildroot}%{_sysconfdir}/bogofilter.cf
f1b1ab
f1b1ab
%{__install} -d -m0755 rpm-doc/xml/ rpm-doc/html/
f1b1ab
%{__install} -m644 doc/*.xml rpm-doc/xml/
f1b1ab
%{__install} -m644 doc/*.html rpm-doc/html/
f1b1ab
f1b1ab
%{__chmod} -x contrib/*
f1b1ab
f1b1ab
%check
f1b1ab
%{__make} %{?_smp_mflags} check
f1b1ab
f1b1ab
%files bogoupgrade
f1b1ab
%defattr(-, root, root, 0755)
f1b1ab
%{_bindir}/bogoupgrade
f1b1ab
%{_mandir}/man1/bogoupgrade*
f1b1ab
f1b1ab
%files
f1b1ab
%defattr(-, root, root, 0755)
f1b1ab
%doc AUTHORS COPYING NEWS README* RELEASE.NOTES* TODO bogofilter.cf.example
f1b1ab
%doc doc/bogofilter-SA* doc/bogofilter-tuning.HOWTO* doc/integrating* doc/programmer/
f1b1ab
%doc rpm-doc/html/ rpm-doc/xml/ contrib
f1b1ab
%{_mandir}/man1/bogo*.1*
f1b1ab
%{_mandir}/man1/bf_*.1*
f1b1ab
%config(noreplace) %{_sysconfdir}/bogofilter.cf
f1b1ab
%{_bindir}/bogo*
f1b1ab
%{_bindir}/bf_*
f1b1ab
%exclude %{_bindir}/bogoupgrade
f1b1ab
%exclude %{_mandir}/man1/bogoupgrade*
f1b1ab
f1b1ab
%changelog
f1b1ab
* Mon May 18 2020 Milan Crha <mcrha@redhat.com> - 1.2.5-2
f1b1ab
- Bump version to have OSCI/gating tests rerun with updated tests
f1b1ab
f1b1ab
* Fri May 15 2020 Milan Crha <mcrha@redhat.com> - 1.2.5-1
f1b1ab
- Resolves: #1836279 (Update to 1.2.5)
f1b1ab
f1b1ab
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-13
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f1b1ab
f1b1ab
* Mon Oct 16 2017 Marek Kasik <mkasik@redhat.com> - 1.2.4-12
f1b1ab
- Enable unit tests
f1b1ab
- Resolves: #1502678
f1b1ab
f1b1ab
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-11
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f1b1ab
f1b1ab
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-10
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f1b1ab
f1b1ab
* Mon Jul 24 2017 Adrian Reber <adrian@lisas.de> - 1.2.4-9
f1b1ab
- Rebuild for gsl 2.4 (#1474397)
f1b1ab
f1b1ab
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-8
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f1b1ab
f1b1ab
* Thu Sep 22 2016 Adrian Reber <adrian@lisas.de> - 1.2.4-7
f1b1ab
- Added multiple upstream patches to fix various memory bugs
f1b1ab
- Fixes "[abrt] bogofilter: yyrealloc(): bogofilter killed by SIGABRT" (#1246282)
f1b1ab
- Fixes "why libdb4" (#1367329) by switching BR to libdb-devel (from db4-devel)
f1b1ab
f1b1ab
* Mon Feb 22 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.4-6
f1b1ab
- Rebuild for gsl 2.1
f1b1ab
f1b1ab
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-5
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f1b1ab
f1b1ab
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-4
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f1b1ab
f1b1ab
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f1b1ab
f1b1ab
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f1b1ab
f1b1ab
* Wed Apr 23 2014 Adrian Reber <adrian@lisas.de> - 1.2.4-1
f1b1ab
- updated to 1.2.4 (fixes #1084359)
f1b1ab
f1b1ab
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-5
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f1b1ab
f1b1ab
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.2.3-4
f1b1ab
- Perl 5.18 rebuild
f1b1ab
f1b1ab
* Fri Feb 22 2013 Adrian Reber <adrian@lisas.de> - 1.2.3-2
f1b1ab
- removed three files with an unfree license from Source (fixes #912694)
f1b1ab
f1b1ab
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f1b1ab
f1b1ab
* Tue Dec 04 2012 Adrian Reber <adrian@lisas.de> - 1.2.3-1
f1b1ab
- updated to 1.2.3 (fixes #883358, CVE-2012-5468)
f1b1ab
f1b1ab
* Thu Jul 26 2012 Adrian Reber <adrian@lisas.de> - 1.2.2-5
f1b1ab
- add new libdb4 include path to configure options
f1b1ab
f1b1ab
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f1b1ab
f1b1ab
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-3
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f1b1ab
f1b1ab
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f1b1ab
f1b1ab
* Mon Aug 16 2010 Adrian Reber <adrian@lisas.de> - 1.2.2-1
f1b1ab
- updated to 1.2.2 (fixes #611511, CVE-2010-2494)
f1b1ab
f1b1ab
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f1b1ab
f1b1ab
* Thu Feb 26 2009 Adrian Reber <adrian@lisas.de> - 1.2.0-1
f1b1ab
- updated to 1.2.0
f1b1ab
f1b1ab
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-3
f1b1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f1b1ab
f1b1ab
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.7-2
f1b1ab
- rebuild against db4-4.7
f1b1ab
- use make DESTDIR install
f1b1ab
- disable rpaths
f1b1ab
f1b1ab
* Sat May 31 2008 Adrian Reber <adrian@lisas.de> - 1.1.7-1
f1b1ab
- updated to 1.1.7
f1b1ab
- moved bogoupgrade to its own package to remove the perl
f1b1ab
  dependency on bogofilter (bz #442843)
f1b1ab
f1b1ab
* Thu Feb 14 2008 Adrian Reber <adrian@lisas.de> - 1.1.6-2
f1b1ab
- rebuilt for gcc43
f1b1ab
f1b1ab
* Thu Dec 13 2007 Adrian Reber <adrian@lisas.de> - 1.1.6-1
f1b1ab
- updated to 1.1.6
f1b1ab
- made rpmlint happy
f1b1ab
- upstream confirmed that bogofilter is GPLv2
f1b1ab
f1b1ab
* Thu Aug 23 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-2
f1b1ab
- rebuilt
f1b1ab
- added patch to build with new glibc
f1b1ab
f1b1ab
* Wed Mar 07 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-1
f1b1ab
- updated to 1.1.5
f1b1ab
f1b1ab
* Tue Sep 05 2006 Adrian Reber <adrian@lisas.de> - 1.0.3-1
f1b1ab
- updated to 1.0.3
f1b1ab
f1b1ab
* Wed Apr 19 2006 Adrian Reber <adrian@lisas.de> - 1.0.2-1
f1b1ab
- updated to 1.0.2
f1b1ab
f1b1ab
* Mon Jan 02 2006 Dries Verachtert <dries@ulyssis.org> - 1.0.1-1 - 3875/dries
f1b1ab
- Updated to release 1.0.1.
f1b1ab
f1b1ab
* Fri Dec 02 2005 Dag Wieers <dag@wieers.com> - 1.0.0-1
f1b1ab
- Updated to release 1.0.0.
f1b1ab
f1b1ab
* Tue Nov 22 2005 Dries Verachtert <dries@ulyssis.org> - 0.96.6-1
f1b1ab
- Updated to release 0.96.6.
f1b1ab
f1b1ab
* Mon Aug 02 2004 Dag Wieers <dag@wieers.com> - 0.92.4-1
f1b1ab
- Updated to release 0.92.4.
f1b1ab
f1b1ab
* Sat Apr 10 2004 Dag Wieers <dag@wieers.com> - 0.17.5-1
f1b1ab
- Updated to release 0.17.5.
f1b1ab
f1b1ab
* Mon Jan 26 2004 Dag Wieers <dag@wieers.com> - 0.16.4-0
f1b1ab
- Initial package. (using DAR)