]> git.pld-linux.org Git - packages/bogofilter.git/blobdiff - bogofilter.spec
- updated to 0.15.1
[packages/bogofilter.git] / bogofilter.spec
index c8a6cc5ee028106c928aaadf577d7c61c9820e1e..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.4
+Version:       0.15.1
 Release:       1
 License:       GPL
 Group:         Applications/Mail
 Vendor:                Eric S. Raymond <esr@thyrsus.com>
-Source0:       http://prdownloads.sourceforge.net/bogofilter/%{name}-%{version}.tar.gz
+Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: 60d6fd4b7d0619659771c2a62fa307cf
 URL:           http://bogofilter.sourceforge.net/
-BuildRequires: judy-devel
-BuildRequires: db3-devel
+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,7 +31,7 @@ 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.
@@ -36,18 +44,21 @@ kt
 %setup -q
 
 %build
-aclocal
+rm -f missing
+%{__aclocal}
 %{__autoconf}
-autoheader
+%{__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
@@ -56,5 +67,6 @@ 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.107561 seconds and 4 git commands to generate.