]> git.pld-linux.org Git - packages/bogofilter.git/blobdiff - bogofilter.spec
- updated to 0.15.1
[packages/bogofilter.git] / bogofilter.spec
index 35a07335faf20429dffb491b899b9b7c402d1993..a520d35c3b4b5098f8c713ce8e2ce92e211630e6 100644 (file)
@@ -1,16 +1,24 @@
+#
+# Conditional build:
+# _with_db3    - build with db3 instead of db 4.x
+#
 Summary:       Bayesian Spam Filter
 Summary(pl):   Bayesjañski Filtr Antyspamowy
 Name:          bogofilter
-Version:       0.7
-Release:       2
+Version:       0.15.1
+Release:       1
 License:       GPL
 Group:         Applications/Mail
 Vendor:                Eric S. Raymond <esr@thyrsus.com>
-Source0:       http://www.tuxedo.org/~esr/bogofilter/%{name}-%{version}.tar.gz
-URL:           http://www.tuxedo.org/~esr/bogofilter/
-BuildRequires: judy-devel
-BuildRequires: db3-devel
+Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: 60d6fd4b7d0619659771c2a62fa307cf
+URL:           http://bogofilter.sourceforge.net/
+BuildRequires: autoconf >= 2.53
+BuildRequires: automake
+%{!?_with_db3:BuildRequires:   db-devel}
+%{?_with_db3:BuildRequires:    db3-devel}
 BuildRequires: flex
+BuildRequires: judy-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -23,32 +31,42 @@ 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 bajesjañskim filtrem antyspamowym. W podstawowym
+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 zaprojektowany z u¿yciem szybkich algorytmów
-(w³aczaj±c w to Berkeley DB), napisany w czystym C i "podkrêcony" pod
-k±tek szybko¶ci, a wiêc mo¿e byæ u¿ywany na systemach "produkcyjnych",
+(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",
 które przetwarzaj± du¿e ilo¶ci poczty.
 
 %prep
 %setup -q
 
 %build
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
+cp $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf.example $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf
+
+rm -f $RPM_BUILD_ROOT%{_bindir}/lexertest
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc README NEWS TODO
+%config(noreplace,missingok) %{_sysconfdir}/bogofilter.cf
 %attr(755,root,root) %{_bindir}/*
 %attr(644,root,root) %{_mandir}/man1/*
This page took 0.133213 seconds and 4 git commands to generate.