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 http://bugs.opensuse.org/
#


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
Url:            http://www.spamdyke.org
Group:          Development/Libraries/Python
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.conf
# PATCH-FIX-UPSTREAM CFLAGS.patch
Patch0:         CFLAGS.patch
BuildRequires:  openssl-devel
BuildRequires:  vpopmail
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
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!


%prep
%setup -q
%patch0


%build
pushd spamdyke
    %configure
    %{__make}
popd
pushd spamdyke-qrv
    %configure --with-vpopmail-support VALIAS_PATH=/usr/bin/valias VUSERINFO_PATH=/usr/bin/vuserinfo
    %{__make}
popd


%install
%{__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


%files
%defattr(-,root,root)
%{_bindir}/%{name}*
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/%{name}.conf