[users] specfiles for evolution-bogofilter- and rspam-plugin

Heiko Adams heiko.adams at gmx.de
Sun Jun 17 14:25:39 CEST 2007


Hello,
these plugins allow using bogofilter with evolution and easy
spamreporting to dc, razor or spamcop.
-- 
Heiko Adams <heiko.adams at gmx.de>
-------------- next part --------------
# $Id$
# Authority: 	dag

%define 	evolution_basename %(basename %{_libdir}/pkgconfig/evolution-plugin*.pc .pc)
%define 	real_name bf-eplugin

Summary: 	Evolution plugin for bogofilter support
Name: 		evolution-bogofilter
Version: 	0.2.0
Release: 	1
License: 	GPL
Group: 		Applications/Internet
URL: 		http://people.altlinux.ru/~mhz/software/projects/bf-eplugin/

Source: 	http://people.altlinux.ru/~mhz/software/projects/bf-eplugin/bf-eplugin-%{version}.tar.gz
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: 	pkgconfig, evolution-devel, evolution-data-server-devel
Requires: 	bogofilter

%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 -n %{real_name}-%{version}

%{__perl} -pi.orig -e 's|evolution-plugin-2.6|%{evolution_basename}|g' configure

%build
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
%{__make} install DESTDIR="%{buildroot}"

%post
export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)"
gconftool-2 --makefile-install-rule /etc/gconf/schemas/%{real_name}.schemas &>/dev/null

%clean
%{__rm} -rf %{buildroot}

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

%changelog
* Sat Jun 16 2007 Heiko Adams <info at fedora-blog.de> 0.2.0-1
- Initial package for RPMforge.
-------------- next part --------------
# $Id$
# Authority: 	dag
%define         name    	rspam
%define         version 	0.0.5
%define         release 	1
%define         prefix  	/usr
%define		gtk2		2.10.4
%define		libgnome	2.7.0
%define		libgnomeui	2.7.0
%define		evreq		2.8.0

Summary:	Rspam Evolution Plugin
Name:		%{name}
Version: 	%{version}
Release: 	%{release}
License:        GPL
Group:          Applications/Internet
Source: 	http://mips.edu.ms/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL: 		http://mips.edu.ms/
Requires:	gtk2 >= %gtk2
Requires:	libgnomeui >= %libgnomeui
Requires:	evolution >= %evreq
BuildRequires:  evolution-devel, evolution-data-server-devel

%description
Rspam Evolution Plugin enables Evolution Mail client to report email messages
as spam to checksum-based and statistical filtering networks.
It supports Razor network, DCC, and SpamCop.
This plugins requires a pretty new version of evolution to build.
See README for more information about required programs.

%prep
%setup -q -n rspam-%{version}
%{__perl} -pi.orig -e 's|evolution-plugin-2.6|%{evolution_basename}|g' configure

%build
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
%{__make} install DESTDIR="%{buildroot}"

%clean
%{__rm} -rf %{buildroot}

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-, root, root, 0755)
%{_datadir}/evolution/2.8/images/spam.gif
%{_datadir}/evolution/2.8/images/nspam.gif
%{_datadir}/evolution/2.8/errors/org-gnome-sa-rspam.error
%{_libdir}/evolution/2.8/plugins/org-gnome-sa-rspam.eplug
%{_libdir}/evolution/2.8/plugins/liborg-gnome-sa-rspam.so
%{_libdir}/evolution/2.8/plugins/liborg-gnome-sa-rspam.la
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc INSTALL
%doc NEWS
%doc README
%doc TODO

%changelog
* Sat Jun 16 2007 Heiko Adams <info at fedora-blog.de>
- 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/20070617/6ac4c897/attachment.sig>


More information about the users mailing list