]> git.pld-linux.org Git - packages/bogofilter.git/blobdiff - bogofilter.spec
- 1.0.1 - more docs, added contribs, removed dummy patch (well, it wasn't
[packages/bogofilter.git] / bogofilter.spec
index ae2bbd2d7309a37683cda3a6833b64e6ef03432d..d97058ddf3fc747c094b69f8b8e7ae854654ec69 100644 (file)
@@ -1,20 +1,31 @@
+# TODO:
+# - make separate package linked with sqlite
+# - make milter subpackage
+# - maybe make some separate package with contrib perl scripts?
+# - remove bogus banner
+#
 Summary:       Bayesian Spam Filter
-Summary(pl):   Bayesjañski Filtr Antyspamowy
+Summary(pl):   Bayesowski Filtr Antyspamowy
 Name:          bogofilter
-Version:       0.11.1.3
+Version:       1.0.1
 Release:       1
-License:       GPL
+License:       GPL v2
 Group:         Applications/Mail
-Vendor:                Eric S. Raymond <esr@thyrsus.com>
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source0:       http://dl.sourceforge.net/bogofilter/%{name}-%{version}.tar.gz
+# Source0-md5: 72b0bc4cd790cd0dedec77b77c4f76ae
+Patch0:                %{name}-home_etc.patch
 URL:           http://bogofilter.sourceforge.net/
-BuildRequires: autoconf >= 2.55
+BuildRequires: autoconf >= 2.53
 BuildRequires: automake
 BuildRequires: db-devel
 BuildRequires: flex
+BuildRequires: gsl-devel
 BuildRequires: judy-devel
+Requires:      gsl >= 1.4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                specflags_ia32  -fomit-frame-pointer
+
 %description
 Bogofilter is a Bayesian spam filter. In its normal mode of operation,
 it takes an email message or other text on standard input, does a
@@ -25,10 +36,10 @@ system), coded directly in C, and tuned for speed, so it can be used
 for production by sites that process a lot of mail.
 
 %description -l pl
-Bogofilter jest bayesjañskim filtrem antyspamowym. W podstawowym
-trybie dzia³ania na emailu lub innym tek¶cie odczytanym na wej¶ciu
-wykonuje statystyczne testy na wystêpowanie "dobrych" i "z³ych" s³ów i
-zwraca kod powrotu wskazuj±cy czy wiadomo¶æ jest spamem, czy te¿ nie.
+Bogofilter jest bayesowski filtrem antyspamowym. W podstawowym trybie
+dzia³ania na emailu lub innym tek¶cie odczytanym na wej¶ciu wykonuje
+statystyczne testy na wystêpowanie "dobrych" i "z³ych" s³ów i zwraca
+kod powrotu wskazuj±cy czy wiadomo¶æ jest spamem, czy te¿ nie.
 Bogofilter jest zaprojektowany z u¿yciem szybkich algorytmów
 (w³±czaj±c w to Berkeley DB), napisany w czystym C i "podkrêcony" pod
 k±tem szybko¶ci, a wiêc mo¿e byæ u¿ywany na systemach "produkcyjnych",
@@ -36,9 +47,9 @@ kt
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-rm -f missing
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
@@ -49,18 +60,54 @@ rm -f missing
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 cp $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf.example $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf
 
+install bogogrep $RPM_BUILD_ROOT%{_bindir}
+# Some apps from contrib:
+install contrib/bfproxy.pl $RPM_BUILD_ROOT%{_bindir}
+install contrib/bogominitrain.pl $RPM_BUILD_ROOT%{_bindir}
+install contrib/mime.get.rfc822.pl $RPM_BUILD_ROOT%{_bindir}
+install contrib/printmaildir.pl $RPM_BUILD_ROOT%{_bindir}
+install contrib/spamitarium.pl $RPM_BUILD_ROOT%{_bindir}
+install contrib/stripsearch.pl $RPM_BUILD_ROOT%{_bindir}
+install contrib/trainbogo.sh $RPM_BUILD_ROOT%{_bindir}
+
+# Some final cleanups:
 rm -f $RPM_BUILD_ROOT%{_bindir}/lexertest
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+# That banner is bogus - no sense to have it _while_ upgrading...
+# It should be some trigger...
+%pre
+%banner %{name} -e <<'EOF'
+
+WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
+------------------------------------------------------------------------
+POTENTIAL FOR DATA CORRUPTION DURING UPDATES
+
+If you plan to upgrade your database library, if only as a side effect
+of an operating system upgrade, DO HEED the relevant documentation, for
+instance, the %{_docdir}/%{name}-%{version}/README.db file.
+You may need to prepare the upgrade with the old version of the software.
+
+Otherwise, you may cause irrecoverable damage to your databases.
+
+DO backup your databases before making the upgrade.
+------------------------------------------------------------------------
+WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
+
+EOF
+
 %files
 %defattr(644,root,root,755)
-%doc README NEWS TODO 
-%config(noreplace,missingok) %{_sysconfdir}/bogofilter.cf
+%doc AUTHORS GETTING.STARTED RELEASE* NEWS* README doc/{README.*,bogofilter-SA*,integrating*} TODO
+%doc contrib/{bogofilter-qfe.sh,bogofilter-milter.pl,dot-qmail-bogofilter-default,*.example,parmtest.sh}
+%doc contrib/{README.*,randomtrain.sh,scramble.sh}
+%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/bogofilter.cf
 %attr(755,root,root) %{_bindir}/*
 %attr(644,root,root) %{_mandir}/man1/*
This page took 0.052595 seconds and 4 git commands to generate.