File python-repoze.sendmail.spec of Package python-repoze.sendmail

#
# spec file for package python-repoze.sendmail
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 LISA GmbH, Bingen, 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/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-repoze.sendmail
Version:        4.4.1
Release:        0
Summary:        Repoze Sendmail
License:        ZPL-2.1
Group:          Development/Languages/Python
URL:            https://github.com/repoze/repoze.sendmail
Source:         https://files.pythonhosted.org/packages/source/r/repoze.sendmail/repoze.sendmail-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module transaction}
BuildRequires:  %{python_module zope.interface} >= 3.6.0
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-transaction
Requires:       python-zope.interface >= 3.6.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%python_subpackages

%description
`repoze.sendmail` allows coupling the sending of email messages with a
transaction, using the Zope transaction manager.  This allows messages to
only be sent out when and if a transaction is committed, preventing users
from receiving notifications about events which may not have completed
successfully.

Please see `docs/index.rst` for complete documentation, or read the
docs online at http://docs.repoze.org/sendmail

%prep
%setup -q -n repoze.sendmail-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}

%check
%python_exec setup.py test

%files %python_files
%defattr(-,root,root,-)
%doc CHANGES.rst README.rst CONTRIBUTORS.txt
%{python_sitelib}/*
%python3_only %{_bindir}/*

%changelog
openSUSE Build Service is sponsored by