Fix build on x86_64 Spec file cleanup --- a/python-module-twisted-mail.spec +++ b/python-module-twisted-mail.spec @@ -1,18 +1,18 @@ %define version 0.4.0 -%define release alt2 +%define release alt2.1 %define origname TwistedMail %setup_python_module twisted-mail -Name: %{packagename} -Version: %{version} -Release: %{release} +Name: %packagename +Version: %version +Release: %release Summary: A Twisted Mail library, server and client Group: Development/Python License: MIT URL: http://www.twistedmatrix.com Packager: Sergey Alembekov -Source0: http://tmrc.mit.edu/mirror/twisted/Mail/0.4/%{origname}-%{version}.tar.bz2 +Source0: http://tmrc.mit.edu/mirror/twisted/Mail/0.4/%origname-%version.tar.bz2 BuildRequires: python-module-twisted-core >= 2.5.0 BuildRequires: python-devel @@ -30,13 +30,13 @@ mail server. Also included is a read/write Maildir implementation and a basic Mail Exchange calculator. %prep -%setup -q -n %{origname}-%{version} +%setup -q -n %origname-%version %build %__python setup.py build %install -%__python setup.py install --root $RPM_BUILD_ROOT +%__python setup.py install --root $RPM_BUILD_ROOT --install-purelib %python_sitelibdir # this .py file has a shebang line so should be executable #chmod +x $RPM_BUILD_ROOT%{python_sitelibdir}/twisted/mail/test/pop3testserver.py @@ -44,14 +44,17 @@ a basic Mail Exchange calculator. %clean %files -%defattr(-,root,root,-) %doc LICENSE NEWS README doc/* -%{_bindir}/mailmail -%{python_sitelibdir}/twisted/mail/ +%_bindir/mailmail +%python_sitelibdir/twisted/mail -%{python_sitelibdir}/twisted/plugins/twisted_mail.py* +%python_sitelibdir/twisted/plugins/twisted_mail.py* %changelog +* Sat Oct 27 2007 Nikolay A. Fetisov 0.4.0-alt2.1 +- Fix build on x86_64 +- Spec file cleanup + * Sun Apr 01 2007 Sergey Alembekov 0.4.0-alt2 - spec cleanup