%define name python-twisted-mail %define version 12.2.0 %define rel 2 %define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') Summary: An STMP/POP2/IMAP protocol implementation together with clients and servers Name: %{name} Version: %{version} Release: %mkrel %{rel} Source0: http://twistedmatrix.com/Releases/Mail/%{mainver}/TwistedMail-%{version}.tar.bz2 License: MIT Group: Development/Python URL: http://twistedmatrix.com/trac/wiki/TwistedMail BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: python-devel python-twisted-core Requires: python-twisted-core # for mail/relaymanager.py Requires: python-twisted-names %description Twisted Mail contains high-level, efficient protocol implementations for both clients and servers of SMTP, POP3, and IMAP4. Additionally, it contains an "out of the box" combination SMTP/POP3 virtual-hosting mail server. Also included is a read/write Maildir implementation and a basic Mail Exchange calculator (depends on Twisted Names). %prep %setup -q -n TwistedMail-%{version} %build %__python setup.py build %install %__rm -rf %{buildroot} %__python setup.py install --root=%{buildroot} --install-purelib=%{py_platsitedir} %__install -d %{buildroot}%{_mandir}/man1 %__install -m 644 doc/man/*.1 %{buildroot}%{_mandir}/man1 %clean %__rm -rf %{buildroot} %files %defattr(0755,root,root,0755) %_bindir/* %defattr(0644,root,root,0755) %doc LICENSE README doc/* %dir %py_platsitedir/twisted/mail %py_platsitedir/twisted/mail/* %py_platsitedir/twisted/plugins/* %py_platsitedir/*.egg-info %_mandir/man1/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 12.2.0-2.mga3 + Revision: 379603 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Sep 20 2012 philippem <philippem> 12.2.0-1.mga3 + Revision: 296376 - Update to 12.2.0 * Wed Nov 23 2011 philippem <philippem> 11.1.0-1.mga2 + Revision: 171294 - Update to 11.1.0 * Sun Jun 19 2011 kharec <kharec> 11.0.0-1.mga2 + Revision: 109927 - new version 11.0.0 * Mon Feb 21 2011 ahmad <ahmad> 10.2.0-1.mga1 + Revision: 55800 - update to 10.2.0 * Sun Jan 23 2011 ennael <ennael> 10.1.0-2.mga1 + Revision: 34795 - imported package python-twisted-mail