File spamdyke.spec of Package spamdyke

# spec file for package spamdyke
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via

Name:           spamdyke
Version:        5.0.1
Release:        0
License:        GPL-2-Clause
Summary:        Afilter for SMTP connections between a remote host and a qmail server
Group:          Development/Libraries/Python
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.conf
Patch0:         CFLAGS.patch
BuildRequires:  openssl-devel
BuildRequires:  vpopmail
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Spamdyke is a filter for monitoring and intercepting SMTP connections between a remote
host and a qmail server. Spam is blocked while the remote server (spammer) is still
connected; no additional processing or storage is needed.
In addition to all of its anti-spam filters, spamdyke also includes a number of
features to enhance qmail.
Best of all, using spamdyke does not require patching or recompiling qmail!

%setup -q

pushd spamdyke
pushd spamdyke-qrv
    %configure --with-vpopmail-support VALIAS_PATH=/usr/bin/valias VUSERINFO_PATH=/usr/bin/vuserinfo

%{__install} -D spamdyke/spamdyke %{buildroot}%{_bindir}/spamdyke
%{__install} -D spamdyke-qrv/spamdyke-qrv %{buildroot}%{_bindir}/spamdyke-qrv
%{__install} -D %{S:1} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/%{name}.conf