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