Blame SPECS/bogofilter.spec

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