|
|
0896ea |
Summary: Fast anti-spam filtering by Bayesian statistical analysis
|
|
|
0896ea |
Name: bogofilter
|
|
|
0896ea |
Version: 1.2.3
|
|
|
0896ea |
Release: 3%{?dist}
|
|
|
0896ea |
License: GPLv2
|
|
|
0896ea |
Group: Applications/Internet
|
|
|
0896ea |
URL: http://bogofilter.sourceforge.net/
|
|
|
0896ea |
# Source: http://downloads.sourceforge.net/bogofilter/bogofilter-%{version}.tar.gz
|
|
|
0896ea |
# The above used to be to the Source: line
|
|
|
0896ea |
# but due to bug 912694 which identified three files with license
|
|
|
0896ea |
# problems the following steps are necessary to repack bogofilter
|
|
|
0896ea |
# wget http://downloads.sourceforge.net/bogofilter/bogofilter-1.2.3.tar.gz
|
|
|
0896ea |
# tar xf bogofilter-1.2.3.tar.gz
|
|
|
0896ea |
# rm bogofilter-1.2.3/doc/bogofilter-SA-20[0-1][0,5]-0[1,2]
|
|
|
0896ea |
# tar cf bogofilter-1.2.3.repack.tar.gz bogofilter-1.2.3
|
|
|
0896ea |
Source: bogofilter-%{version}.repack.tar.gz
|
|
|
0896ea |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
0896ea |
BuildRequires: flex db4-devel gsl-devel
|
|
|
0896ea |
BuildRequires: /usr/bin/iconv
|
|
|
0896ea |
|
|
|
0896ea |
%description
|
|
|
0896ea |
Bogofilter is a Bayesian spam filter. In its normal mode of
|
|
|
0896ea |
operation, it takes an email message or other text on standard input,
|
|
|
0896ea |
does a statistical check against lists of "good" and "bad" words, and
|
|
|
0896ea |
returns a status code indicating whether or not the message is spam.
|
|
|
0896ea |
Bogofilter is designed with fast algorithms (including Berkeley DB system),
|
|
|
0896ea |
coded directly in C, and tuned for speed, so it can be used for production
|
|
|
0896ea |
by sites that process a lot of mail.
|
|
|
0896ea |
|
|
|
0896ea |
%package bogoupgrade
|
|
|
0896ea |
Summary: Upgrades bogofilter database to current version
|
|
|
0896ea |
Group: Applications/Internet
|
|
|
0896ea |
Provides: bogoupgrade
|
|
|
0896ea |
Requires: %{name} = %{version}-%{release}
|
|
|
0896ea |
|
|
|
0896ea |
%description bogoupgrade
|
|
|
0896ea |
bogoupgrade is a command to upgrade bogofilter’s databases from an old
|
|
|
0896ea |
format to the current format. Since the format of the database changes
|
|
|
0896ea |
once in a while, the utility is designed to make the upgrade easy.
|
|
|
0896ea |
|
|
|
0896ea |
bogoupgrade is in an extra package to remove the perl dependency on the
|
|
|
0896ea |
main bogofilter package.
|
|
|
0896ea |
|
|
|
0896ea |
%prep
|
|
|
0896ea |
%setup -q
|
|
|
0896ea |
iconv -f iso-8859-1 -t utf-8 \
|
|
|
0896ea |
doc/bogofilter-faq-fr.html > doc/bogofilter-faq-fr.html.utf8
|
|
|
0896ea |
%{__mv} -f doc/bogofilter-faq-fr.html.utf8 \
|
|
|
0896ea |
doc/bogofilter-faq-fr.html
|
|
|
0896ea |
|
|
|
0896ea |
%build
|
|
|
0896ea |
CFLAGS="%{optflags} -I%{_includedir}/libdb4" LDFLAGS="-L%{_libdir}/libdb4" %configure --disable-rpath
|
|
|
0896ea |
%{__make} %{?_smp_mflags}
|
|
|
0896ea |
|
|
|
0896ea |
%install
|
|
|
0896ea |
%{__rm} -rf %{buildroot}
|
|
|
0896ea |
%{__make} DESTDIR=%{buildroot} install
|
|
|
0896ea |
|
|
|
0896ea |
%{__mv} -f %{buildroot}%{_sysconfdir}/bogofilter.cf.example \
|
|
|
0896ea |
%{buildroot}%{_sysconfdir}/bogofilter.cf
|
|
|
0896ea |
|
|
|
0896ea |
%{__install} -d -m0755 rpm-doc/xml/ rpm-doc/html/
|
|
|
0896ea |
%{__install} -m644 doc/*.xml rpm-doc/xml/
|
|
|
0896ea |
%{__install} -m644 doc/*.html rpm-doc/html/
|
|
|
0896ea |
|
|
|
0896ea |
%{__chmod} -x contrib/*
|
|
|
0896ea |
|
|
|
0896ea |
%clean
|
|
|
0896ea |
%{__rm} -rf %{buildroot}
|
|
|
0896ea |
|
|
|
0896ea |
%files bogoupgrade
|
|
|
0896ea |
%defattr(-, root, root, 0755)
|
|
|
0896ea |
%{_bindir}/bogoupgrade
|
|
|
0896ea |
%{_mandir}/man1/bogoupgrade*
|
|
|
0896ea |
|
|
|
0896ea |
%files
|
|
|
0896ea |
%defattr(-, root, root, 0755)
|
|
|
0896ea |
%doc AUTHORS COPYING NEWS README* RELEASE.NOTES* TODO bogofilter.cf.example
|
|
|
0896ea |
%doc doc/bogofilter-SA* doc/bogofilter-tuning.HOWTO* doc/integrating* doc/programmer/
|
|
|
0896ea |
%doc rpm-doc/html/ rpm-doc/xml/ contrib
|
|
|
0896ea |
%{_mandir}/man1/bogo*.1*
|
|
|
0896ea |
%{_mandir}/man1/bf_*.1*
|
|
|
0896ea |
%config(noreplace) %{_sysconfdir}/bogofilter.cf
|
|
|
0896ea |
%{_bindir}/bogo*
|
|
|
0896ea |
%{_bindir}/bf_*
|
|
|
0896ea |
%exclude %{_bindir}/bogoupgrade
|
|
|
0896ea |
%exclude %{_mandir}/man1/bogoupgrade*
|
|
|
0896ea |
|
|
|
0896ea |
%changelog
|
|
|
0896ea |
* Fri Feb 22 2013 Adrian Reber <adrian@lisas.de> - 1.2.3-2
|
|
|
0896ea |
- removed three files with an unfree license from Source (fixes #912694)
|
|
|
0896ea |
|
|
|
0896ea |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
|
0896ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
0896ea |
|
|
|
0896ea |
* Tue Dec 04 2012 Adrian Reber <adrian@lisas.de> - 1.2.3-1
|
|
|
0896ea |
- updated to 1.2.3 (fixes #883358, CVE-2012-5468)
|
|
|
0896ea |
|
|
|
0896ea |
* Thu Jul 26 2012 Adrian Reber <adrian@lisas.de> - 1.2.2-5
|
|
|
0896ea |
- add new libdb4 include path to configure options
|
|
|
0896ea |
|
|
|
0896ea |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
|
|
|
0896ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
0896ea |
|
|
|
0896ea |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-3
|
|
|
0896ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
0896ea |
|
|
|
0896ea |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
|
|
|
0896ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
0896ea |
|
|
|
0896ea |
* Mon Aug 16 2010 Adrian Reber <adrian@lisas.de> - 1.2.2-1
|
|
|
0896ea |
- updated to 1.2.2 (fixes #611511, CVE-2010-2494)
|
|
|
0896ea |
|
|
|
0896ea |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
|
|
|
0896ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
0896ea |
|
|
|
0896ea |
* Mon Feb 26 2009 Adrian Reber <adrian@lisas.de> - 1.2.0-1
|
|
|
0896ea |
- updated to 1.2.0
|
|
|
0896ea |
|
|
|
0896ea |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-3
|
|
|
0896ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
0896ea |
|
|
|
0896ea |
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.7-2
|
|
|
0896ea |
- rebuild against db4-4.7
|
|
|
0896ea |
- use make DESTDIR install
|
|
|
0896ea |
- disable rpaths
|
|
|
0896ea |
|
|
|
0896ea |
* Sat May 31 2008 Adrian Reber <adrian@lisas.de> - 1.1.7-1
|
|
|
0896ea |
- updated to 1.1.7
|
|
|
0896ea |
- moved bogoupgrade to its own package to remove the perl
|
|
|
0896ea |
dependency on bogofilter (bz #442843)
|
|
|
0896ea |
|
|
|
0896ea |
* Thu Feb 14 2008 Adrian Reber <adrian@lisas.de> - 1.1.6-2
|
|
|
0896ea |
- rebuilt for gcc43
|
|
|
0896ea |
|
|
|
0896ea |
* Thu Dec 13 2007 Adrian Reber <adrian@lisas.de> - 1.1.6-1
|
|
|
0896ea |
- updated to 1.1.6
|
|
|
0896ea |
- made rpmlint happy
|
|
|
0896ea |
- upstream confirmed that bogofilter is GPLv2
|
|
|
0896ea |
|
|
|
0896ea |
* Thu Aug 23 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-2
|
|
|
0896ea |
- rebuilt
|
|
|
0896ea |
- added patch to build with new glibc
|
|
|
0896ea |
|
|
|
0896ea |
* Wed Mar 07 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-1
|
|
|
0896ea |
- updated to 1.1.5
|
|
|
0896ea |
|
|
|
0896ea |
* Tue Sep 05 2006 Adrian Reber <adrian@lisas.de> - 1.0.3-1
|
|
|
0896ea |
- updated to 1.0.3
|
|
|
0896ea |
|
|
|
0896ea |
* Wed Apr 19 2006 Adrian Reber <adrian@lisas.de> - 1.0.2-1
|
|
|
0896ea |
- updated to 1.0.2
|
|
|
0896ea |
|
|
|
0896ea |
* Mon Jan 02 2006 Dries Verachtert <dries@ulyssis.org> - 1.0.1-1 - 3875/dries
|
|
|
0896ea |
- Updated to release 1.0.1.
|
|
|
0896ea |
|
|
|
0896ea |
* Fri Dec 02 2005 Dag Wieers <dag@wieers.com> - 1.0.0-1
|
|
|
0896ea |
- Updated to release 1.0.0.
|
|
|
0896ea |
|
|
|
0896ea |
* Tue Nov 22 2005 Dries Verachtert <dries@ulyssis.org> - 0.96.6-1
|
|
|
0896ea |
- Updated to release 0.96.6.
|
|
|
0896ea |
|
|
|
0896ea |
* Mon Aug 02 2004 Dag Wieers <dag@wieers.com> - 0.92.4-1
|
|
|
0896ea |
- Updated to release 0.92.4.
|
|
|
0896ea |
|
|
|
0896ea |
* Sat Apr 10 2004 Dag Wieers <dag@wieers.com> - 0.17.5-1
|
|
|
0896ea |
- Updated to release 0.17.5.
|
|
|
0896ea |
|
|
|
0896ea |
* Mon Jan 26 2004 Dag Wieers <dag@wieers.com> - 0.16.4-0
|
|
|
0896ea |
- Initial package. (using DAR)
|