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