Blame SPECS/bogofilter.spec

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