2006-05-01 05:32:02 +00:00
|
|
|
|
Summary: Fast anti-spam filtering by Bayesian statistical analysis
|
|
|
|
|
Name: bogofilter
|
2014-04-23 14:54:17 +00:00
|
|
|
|
Version: 1.2.4
|
2017-07-26 04:08:24 +00:00
|
|
|
|
Release: 10%{?dist}
|
2007-12-13 21:10:38 +00:00
|
|
|
|
License: GPLv2
|
2006-05-01 05:32:02 +00:00
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
URL: http://bogofilter.sourceforge.net/
|
2013-02-22 14:29:27 +00:00
|
|
|
|
# Source: http://downloads.sourceforge.net/bogofilter/bogofilter-%{version}.tar.gz
|
|
|
|
|
# The above used to be to the Source: line
|
|
|
|
|
# but due to bug 912694 which identified three files with license
|
|
|
|
|
# problems the following steps are necessary to repack bogofilter
|
2014-04-23 14:54:17 +00:00
|
|
|
|
# wget http://downloads.sourceforge.net/bogofilter/bogofilter-1.2.4.tar.gz
|
2016-11-02 12:45:33 +00:00
|
|
|
|
# tar xf bogofilter-1.2.4.tar.gz
|
2014-04-23 14:54:17 +00:00
|
|
|
|
# rm bogofilter-1.2.4/doc/bogofilter-SA-20[0-1][0,5]-0[1,2]
|
|
|
|
|
# tar cf bogofilter-1.2.4.repack.tar.gz bogofilter-1.2.4
|
2013-02-22 14:29:27 +00:00
|
|
|
|
Source: bogofilter-%{version}.repack.tar.gz
|
2016-11-02 12:45:33 +00:00
|
|
|
|
# Patches are taken from upstreams SVN:
|
|
|
|
|
# svn checkout svn://svn.code.sf.net/p/bogofilter/code/trunk bogofilter-code
|
|
|
|
|
# cd bogofilter-code
|
|
|
|
|
# svndiff -c 6995 > patch.r6995
|
|
|
|
|
Patch1: patch.r6995
|
|
|
|
|
# patch.r7009 is adapted to apply without a previous patch
|
|
|
|
|
Patch2: patch.r7009
|
|
|
|
|
Patch3: patch.r7016
|
|
|
|
|
Patch4: patch.r7023
|
|
|
|
|
Patch5: patch.r7030
|
|
|
|
|
Patch6: patch.r7032
|
|
|
|
|
Patch7: patch.r7034
|
|
|
|
|
Patch8: patch.r7035
|
|
|
|
|
BuildRequires: flex libdb-devel gsl-devel
|
2007-12-13 21:10:38 +00:00
|
|
|
|
BuildRequires: /usr/bin/iconv
|
2016-06-24 07:42:59 +00:00
|
|
|
|
BuildRequires: perl-generators
|
2006-05-01 05:32:02 +00:00
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
2008-05-31 19:18:54 +00:00
|
|
|
|
%package bogoupgrade
|
|
|
|
|
Summary: Upgrades bogofilter database to current version
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description 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.
|
|
|
|
|
|
2006-05-01 05:32:02 +00:00
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2016-11-02 12:45:33 +00:00
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
%patch6 -p1
|
|
|
|
|
%patch7 -p1
|
|
|
|
|
%patch8 -p1
|
2007-12-13 21:10:38 +00:00
|
|
|
|
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
|
2006-05-01 05:32:02 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2016-11-02 12:45:33 +00:00
|
|
|
|
%configure --disable-rpath
|
2006-05-01 05:32:02 +00:00
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
2008-07-10 15:53:53 +00:00
|
|
|
|
%{__make} DESTDIR=%{buildroot} install
|
2006-05-01 05:32:02 +00:00
|
|
|
|
|
2007-12-13 21:10:38 +00:00
|
|
|
|
%{__mv} -f %{buildroot}%{_sysconfdir}/bogofilter.cf.example \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/bogofilter.cf
|
2006-05-01 05:32:02 +00:00
|
|
|
|
|
|
|
|
|
%{__install} -d -m0755 rpm-doc/xml/ rpm-doc/html/
|
|
|
|
|
%{__install} -m644 doc/*.xml rpm-doc/xml/
|
|
|
|
|
%{__install} -m644 doc/*.html rpm-doc/html/
|
|
|
|
|
|
|
|
|
|
%{__chmod} -x contrib/*
|
|
|
|
|
|
2008-05-31 19:18:54 +00:00
|
|
|
|
%files bogoupgrade
|
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
|
%{_bindir}/bogoupgrade
|
|
|
|
|
%{_mandir}/man1/bogoupgrade*
|
|
|
|
|
|
2006-05-01 05:32:02 +00:00
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
|
%doc AUTHORS COPYING NEWS README* RELEASE.NOTES* TODO bogofilter.cf.example
|
|
|
|
|
%doc doc/bogofilter-SA* doc/bogofilter-tuning.HOWTO* doc/integrating* doc/programmer/
|
|
|
|
|
%doc rpm-doc/html/ rpm-doc/xml/ contrib
|
|
|
|
|
%{_mandir}/man1/bogo*.1*
|
|
|
|
|
%{_mandir}/man1/bf_*.1*
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/bogofilter.cf
|
|
|
|
|
%{_bindir}/bogo*
|
|
|
|
|
%{_bindir}/bf_*
|
2008-05-31 19:18:54 +00:00
|
|
|
|
%exclude %{_bindir}/bogoupgrade
|
|
|
|
|
%exclude %{_mandir}/man1/bogoupgrade*
|
2006-05-01 05:32:02 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|
2017-07-26 04:08:24 +00:00
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
2017-07-24 14:42:29 +00:00
|
|
|
|
* Mon Jul 24 2017 Adrian Reber <adrian@lisas.de> - 1.2.4-9
|
|
|
|
|
- Rebuild for gsl 2.4 (#1474397)
|
|
|
|
|
|
2017-02-10 06:59:30 +00:00
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
2016-11-02 12:45:33 +00:00
|
|
|
|
* Thu Sep 22 2016 Adrian Reber <adrian@lisas.de> - 1.2.4-7
|
|
|
|
|
- Added multiple upstream patches to fix various memory bugs
|
|
|
|
|
- Fixes "[abrt] bogofilter: yyrealloc(): bogofilter killed by SIGABRT" (#1246282)
|
|
|
|
|
- Fixes "why libdb4" (#1367329) by switching BR to libdb-devel (from db4-devel)
|
|
|
|
|
|
2016-02-22 16:51:29 +00:00
|
|
|
|
* Mon Feb 22 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.4-6
|
|
|
|
|
- Rebuild for gsl 2.1
|
|
|
|
|
|
2016-02-03 17:09:22 +00:00
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
2015-06-17 01:59:18 +00:00
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
2014-08-15 22:58:03 +00:00
|
|
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
2014-06-07 03:21:13 +00:00
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
2014-04-23 14:54:17 +00:00
|
|
|
|
* Wed Apr 23 2014 Adrian Reber <adrian@lisas.de> - 1.2.4-1
|
2014-04-23 14:55:00 +00:00
|
|
|
|
- updated to 1.2.4 (fixes #1084359)
|
2014-04-23 14:54:17 +00:00
|
|
|
|
|
2013-08-03 03:47:47 +00:00
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
2013-07-17 14:59:09 +00:00
|
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.2.3-4
|
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
|
2013-02-22 14:30:34 +00:00
|
|
|
|
* Fri Feb 22 2013 Adrian Reber <adrian@lisas.de> - 1.2.3-2
|
2013-02-22 14:29:27 +00:00
|
|
|
|
- removed three files with an unfree license from Source (fixes #912694)
|
|
|
|
|
|
2013-02-13 17:57:08 +00:00
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
2012-12-04 12:37:07 +00:00
|
|
|
|
* Tue Dec 04 2012 Adrian Reber <adrian@lisas.de> - 1.2.3-1
|
|
|
|
|
- updated to 1.2.3 (fixes #883358, CVE-2012-5468)
|
|
|
|
|
|
2012-07-26 12:43:09 +00:00
|
|
|
|
* Thu Jul 26 2012 Adrian Reber <adrian@lisas.de> - 1.2.2-5
|
|
|
|
|
- add new libdb4 include path to configure options
|
|
|
|
|
|
2012-07-18 18:07:01 +00:00
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
2012-01-12 22:43:59 +00:00
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
2011-02-08 05:31:41 +00:00
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
2010-08-16 17:18:04 +00:00
|
|
|
|
* Mon Aug 16 2010 Adrian Reber <adrian@lisas.de> - 1.2.2-1
|
|
|
|
|
- updated to 1.2.2 (fixes #611511, CVE-2010-2494)
|
|
|
|
|
|
2009-07-24 18:18:21 +00:00
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
2014-04-23 14:54:17 +00:00
|
|
|
|
* Thu Feb 26 2009 Adrian Reber <adrian@lisas.de> - 1.2.0-1
|
2009-06-16 08:55:22 +00:00
|
|
|
|
- updated to 1.2.0
|
|
|
|
|
|
2009-02-24 05:25:12 +00:00
|
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
2008-07-10 15:53:53 +00:00
|
|
|
|
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.7-2
|
|
|
|
|
- rebuild against db4-4.7
|
|
|
|
|
- use make DESTDIR install
|
|
|
|
|
- disable rpaths
|
|
|
|
|
|
2008-05-31 19:18:54 +00:00
|
|
|
|
* Sat May 31 2008 Adrian Reber <adrian@lisas.de> - 1.1.7-1
|
|
|
|
|
- updated to 1.1.7
|
|
|
|
|
- moved bogoupgrade to its own package to remove the perl
|
|
|
|
|
dependency on bogofilter (bz #442843)
|
|
|
|
|
|
2008-02-14 11:01:20 +00:00
|
|
|
|
* Thu Feb 14 2008 Adrian Reber <adrian@lisas.de> - 1.1.6-2
|
|
|
|
|
- rebuilt for gcc43
|
|
|
|
|
|
2007-12-13 21:10:38 +00:00
|
|
|
|
* Thu Dec 13 2007 Adrian Reber <adrian@lisas.de> - 1.1.6-1
|
|
|
|
|
- updated to 1.1.6
|
|
|
|
|
- made rpmlint happy
|
|
|
|
|
- upstream confirmed that bogofilter is GPLv2
|
|
|
|
|
|
2007-08-22 22:19:43 +00:00
|
|
|
|
* Thu Aug 23 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-2
|
|
|
|
|
- rebuilt
|
2007-08-23 10:40:27 +00:00
|
|
|
|
- added patch to build with new glibc
|
2007-08-22 22:19:43 +00:00
|
|
|
|
|
2007-03-07 08:35:36 +00:00
|
|
|
|
* Wed Mar 07 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-1
|
|
|
|
|
- updated to 1.1.5
|
|
|
|
|
|
2006-09-05 07:16:19 +00:00
|
|
|
|
* Tue Sep 05 2006 Adrian Reber <adrian@lisas.de> - 1.0.3-1
|
|
|
|
|
- updated to 1.0.3
|
|
|
|
|
|
2006-05-01 05:32:02 +00:00
|
|
|
|
* Wed Apr 19 2006 Adrian Reber <adrian@lisas.de> - 1.0.2-1
|
|
|
|
|
- updated to 1.0.2
|
|
|
|
|
|
|
|
|
|
* Mon Jan 02 2006 Dries Verachtert <dries@ulyssis.org> - 1.0.1-1 - 3875/dries
|
|
|
|
|
- Updated to release 1.0.1.
|
|
|
|
|
|
|
|
|
|
* Fri Dec 02 2005 Dag Wieers <dag@wieers.com> - 1.0.0-1
|
|
|
|
|
- Updated to release 1.0.0.
|
|
|
|
|
|
|
|
|
|
* Tue Nov 22 2005 Dries Verachtert <dries@ulyssis.org> - 0.96.6-1
|
|
|
|
|
- Updated to release 0.96.6.
|
|
|
|
|
|
|
|
|
|
* Mon Aug 02 2004 Dag Wieers <dag@wieers.com> - 0.92.4-1
|
|
|
|
|
- Updated to release 0.92.4.
|
|
|
|
|
|
|
|
|
|
* Sat Apr 10 2004 Dag Wieers <dag@wieers.com> - 0.17.5-1
|
|
|
|
|
- Updated to release 0.17.5.
|
|
|
|
|
|
|
|
|
|
* Mon Jan 26 2004 Dag Wieers <dag@wieers.com> - 0.16.4-0
|
|
|
|
|
- Initial package. (using DAR)
|