File python-pypolicyd-spf.spec of Package python-pypolicyd-spf

#
# spec file for package python-pyodbc
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%{?!python_module:%define python_module() python-%{**} python3-%{**}}

%define pythons python3

# norootforbuild
Name:               python-pypolicyd-spf
Version:            2.0.2
Release:            1.1
Summary:            Python based policy daemon for Postfix SPF checking
Group:              Development/Languages/Python
License:            GPL-2.0
URL:                https://launchpad.net/pypolicyd-spf/
Source:             https://files.pythonhosted.org/packages/source/p/pypolicyd-spf/pypolicyd-spf-%{version}.tar.gz
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
BuildRequires:      %{python_module setuptools}
BuildRequires:      python-rpm-macros
BuildRequires:      fdupes
Requires:           python-pyspf
Requires:           postfix >= 2.1
BuildArch:          noarch

%python_subpackages

%description
python-policyd-spf is a Postfix SMTPd policy engine for SPF checking.
It is implemented in pure Python and uses the python-spf module.  The SPF
web site is http://www.openspf.org/.  The Postfix configuration must be
changed to check SPF.  See man 1 python-policyd-spf for
details.

Author:
--------
    Sean Reifschneider <jafo@tummy.com>
    Scott Kitterman <scott@kitterman.com>


%prep
%setup -q -n pypolicyd-spf-%{version}

%build
%python_build

%install
%python_install
%fdupes %{buildroot}/%{_prefix}

%clean
rm -rf $RPM_BUILD_ROOT

%files %{python_files}
%{python_sitelib}/*.py
%{python_sitelib}/*.egg-info
%pycache_only %{python_sitelib}/__pycache__
%{_bindir}/policyd-spf
%dir /etc/python-policyd-spf/
%config /etc/python-policyd-spf/policyd-spf.conf
%_mandir/*/*
%doc README README.per_user_whitelisting

%changelog

openSUSE Build Service is sponsored by