[suggest] Bogofilter Plugin for Evolution

Heiko Adams heiko.adams at gmx.de
Sat Jun 16 15:23:48 CEST 2007


Hello,
this is my specfile for the evolution-bogofilter plugin.
Build, tested and aproved on my centos 5 machine.
-- 
Heiko Adams <heiko.adams at gmx.de>
-------------- next part --------------
%define	evopluginver	%(pkg-config --list-all |grep evolution-plugin | sed -e "s/evolution-plugin-//g" | cut -d " " -f 1)

Name:		evolution-bogofilter
Summary:	A plugin for bogofilter support in evolution
Version: 	0.2.0
Release:	1%{?dist}
License:	GPL
Group:		Applications/Internet
URL:		http://people.altlinux.ru/~mhz/software/projects/bf-eplugin/
Source0:	http://people.altlinux.ru/~mhz/software/projects/bf-eplugin/bf-eplugin-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	evolution-devel, evolution-data-server-devel
BuildRequires:	pkgconfig
Requires:	bogofilter
Requires(post):	GConf2

%description
This plugin implements junk filtering for the Evolution mailer, provided by 
the bogofilter utility. Bogofilter (http://www.bogofilter.org) is a fast and 
nimble mail filter using a so-called Bayesian technique to classify junk and 
non-junk email.

%prep
%setup -q -n bf-eplugin-%{version}
%if "%{evopluginver}" != "2.6"
sed -i 's/evolution-plugin-2.6/evolution-plugin-%{evopluginver}/g' configure
%endif

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR=$RPM_BUILD_ROOT install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
rm -rf $RPM_BUILD_ROOT%{_libdir}/evolution/%{evopluginver}/plugins/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS="bf-eplugin.schemas"
for S in $SCHEMAS; do
  gconftool-2 --makefile-install-rule /etc/gconf/schemas/$S > /dev/null
done

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%config(noreplace) %{_sysconfdir}/gconf/schemas/bf-eplugin.schemas
%{_libdir}/evolution/%{evopluginver}/plugins/*

%changelog
* Sat Jun 16 2007 Heiko Adams <info at fedora-blog.de> 0.2.0-3
- Initial package for rpmForge.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.repoforge.org/pipermail/users/attachments/20070616/a0025a1b/attachment.sig>


More information about the users mailing list