Пакет python-module-Products.MailHost: Specfile

%define oname Products.MailHost

Name: python-module-%oname
Version: 2.13.3
Release: alt1.git20141102
Summary: zope.sendmail integration for Zope 2
License: ZPLv2.1
Group: Development/Python
Url: https://pypi.python.org/pypi/Products.MailHost/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# https://github.com/zopefoundation/Products.MailHost.git
Source: %name-%version.tar

BuildPreReq: python-module-setuptools-tests python-module-Zope2-tests
BuildPreReq: python-module-zope.deferredimport
BuildPreReq: python-module-zope.sendmail

%py_provides %oname
Requires: python-module-Zope2
%py_requires zope.sendmail zope.deferredimport zope.interface

%description
The MailHost product provides support for sending email from within the
Zope environment using MailHost objects.

%package tests
Summary: Tests for %oname
Group: Development/Python
Requires: %name = %EVR

%description tests
The MailHost product provides support for sending email from within the
Zope environment using MailHost objects.

This package contains tests for %oname.

%prep
%setup

%build
%python_build_debug

%install
%python_install

%ifarch x86_64
mv %buildroot%_libexecdir %buildroot%_libdir
%endif

%check
export PYTHONPATH=$PWD/src
python setup.py test

%files
%doc *.txt
%python_sitelibdir/Products/*
%python_sitelibdir/*.egg-info
%exclude %python_sitelibdir/Products/*/tests

%files tests
%python_sitelibdir/Products/*/tests

%changelog
* Tue Nov 04 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.13.3-alt1.git20141102
- Version 2.13.3

* Thu Oct 16 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.13.2-alt1.dev.git20130313
- Version 2.13.2dev
- Enabled testing

* Sat Oct 11 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.13.1-alt1
- Initial build for Sisyphus