Files
perl-postfix-policyd-spf/postfix-policyd-spf-perl.spec

62 lines
1.9 KiB
RPMSpec

#
# spec file for package postfix-policyd-spf-perl
#
# Copyright (c) 2013 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/
#
Summary: Perl Postfix policy daemon for SPF checking
License: GPL-2.0+
Group: Development/Libraries/Perl
Name: postfix-policyd-spf-perl
Version: 2.010
Release: 0
Url: https://launchpad.net/postfix-policyd-spf-perl/
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl
Requires: postfix >= 2.1
Requires: perl(Mail::SPF)
Requires: perl(NetAddr::IP)
Requires: perl(Sys::Hostname::Long)
BuildArch: noarch
%description
postfix-policyd-spf-perl is a Postfix SMTPd policy server for SPF
checking. It is implemented in pure Perl and uses the Mail::SPF CPAN
module. The SPF web site is http://www.openspf.org/. The Postfix
configuration must be changed to check SPF. See INSTALL and README in
%{_docdir}/%{name}.
%prep
%setup
chmod a-x CHANGES INSTALL LICENSE README
sed -i 's@/usr/local/lib@/usr/lib@g' INSTALL README
%build
%install
# make directories
mkdir -p "$RPM_BUILD_ROOT"/usr/lib
install -T -m 755 postfix-policyd-spf-perl \
"$RPM_BUILD_ROOT"/usr/lib/policyd-spf-perl
%files
%defattr(-,root,root)
/usr/lib/policyd-spf-perl
%doc CHANGES INSTALL LICENSE README
%changelog