- updated to 1.1.6

- made rpmlint happy
- upstream confirmed that bogofilter is GPLv2
This commit is contained in:
Adrian Reber 2007-12-13 21:10:38 +00:00
parent b8dc138edb
commit 9da97cab36
4 changed files with 17 additions and 48 deletions

View File

@ -1 +1 @@
bogofilter-1.1.5.tar.gz
bogofilter-1.1.6.tar.gz

View File

@ -1,40 +0,0 @@
--- src/datastore_db.c 2006-07-02 23:38:55.000000000 +0200
+++ src/datastore_db.c.new 2007-08-23 12:21:37.000000000 +0200
@@ -181,7 +181,7 @@
else
file = bfp->filename;
- ret = db->open(db,
+ ret = (db->open)(db,
#if DB_AT_LEAST(4,1)
0, /* TXN handle - we use autocommit instead */
#endif
--- src/datastore_db_trans.c 2006-05-29 16:28:00.000000000 +0200
+++ src/datastore_db_trans.c.new 2007-08-23 12:21:37.000000000 +0200
@@ -215,7 +215,7 @@
* environment in heap memory, so we don't need to remove it.
*/
- e = dbe->open(dbe, bfp->dirname,
+ e = (dbe->open)(dbe, bfp->dirname,
dbenv_defflags | local_flags | DB_RECOVER, DS_MODE);
if (e != 0) {
print_error(__FILE__, __LINE__, "Cannot recover environment \"%s\": %s",
@@ -502,7 +502,7 @@
flags |= DB_CREATE | dbenv_defflags;
- ret = env->dbe->open(env->dbe, bfp->dirname, flags, DS_MODE);
+ ret = (env->dbe->open)(env->dbe, bfp->dirname, flags, DS_MODE);
if (ret != 0) {
env->dbe->close(env->dbe, 0);
print_error(__FILE__, __LINE__, "DB_ENV->open, err: %d, %s", ret, db_strerror(ret));
@@ -873,7 +873,7 @@
* effort, we'll just check for DB_RUNRECOVERY */
#if DB_AT_LEAST(3,2)
- r = dbe->open(dbe, bfp->dirname, DB_JOINENV, DS_MODE);
+ r = (dbe->open)(dbe, bfp->dirname, DB_JOINENV, DS_MODE);
#else
r = ENOENT;
#endif

View File

@ -1,14 +1,14 @@
Summary: Fast anti-spam filtering by Bayesian statistical analysis
Name: bogofilter
Version: 1.1.5
Release: 2%{?dist}
License: GPL
Version: 1.1.6
Release: 1%{?dist}
License: GPLv2
Group: Applications/Internet
URL: http://bogofilter.sourceforge.net/
Source: http://downloads.sourceforge.net/bogofilter/bogofilter-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: flex db4-devel gsl-devel
Patch: bogofilter-1.1.5.glibc.patch
BuildRequires: /usr/bin/iconv
%description
Bogofilter is a Bayesian spam filter. In its normal mode of
@ -21,7 +21,10 @@ by sites that process a lot of mail.
%prep
%setup -q
%patch
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
%build
%configure
@ -31,7 +34,8 @@ by sites that process a lot of mail.
%{__rm} -rf %{buildroot}
%makeinstall
%{__mv} -f %{buildroot}%{_sysconfdir}/bogofilter.cf.example %{buildroot}%{_sysconfdir}/bogofilter.cf
%{__mv} -f %{buildroot}%{_sysconfdir}/bogofilter.cf.example \
%{buildroot}%{_sysconfdir}/bogofilter.cf
%{__install} -d -m0755 rpm-doc/xml/ rpm-doc/html/
%{__install} -m644 doc/*.xml rpm-doc/xml/
@ -54,6 +58,11 @@ by sites that process a lot of mail.
%{_bindir}/bf_*
%changelog
* 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
* Thu Aug 23 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-2
- rebuilt
- added patch to build with new glibc

View File

@ -1 +1 @@
25558e2e72350ee2e4edfc1b617f6738 bogofilter-1.1.5.tar.gz
35ec52e5d2c58de04a1e02ddcc8d0252 bogofilter-1.1.6.tar.gz