File python-TurboMail.spec of Package python-TurboMail
#norootforbuild
#
%define real_name TurboMail
#
#
Name: python-%{real_name}
Group: Development/Libraries/Python
Version: 3.0.3
Release: 0
License: MIT
Summary: TurboMail is a mail delivery subsystem and MIME message generation framework for Python
Autoreqprov: on
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Requires: python-TurboGears2
Url: http://www.python-turbomail.org
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif
%description
TurboMail 3 offers:
* Simplified creation of complex messages, including rich text, attachments,
and more.
* Modular delivery managers including the blocking immediate manager and the
threaded on demand manager.
* Modular back-ends ('transports') including SMTP and in-memory (debug)
* Easier debugging when using the debug back-end in concert with the immediate
manager.
* A plugin architecture with a sample plugin for altered message encoding.
* Automatic integration into TurboGears 1.x.
Python includes several standard packages for handling e-mail. These libraries
are independent of each-other, their documentation is hard-to-follow, and their
examples are hardly real-world. TurboMail ties these dispersant elements
together with an elegant and extensible API, freeing you (the developer) from
drudge-work, strained eyes, and loss of hair, even for the most complicated
use-cases.
%prep
%setup -n %{real_name}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc PKG-INFO README.txt
%changelog
* Sun Nov 23 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 3.0.3
- Initial build for tg21