Fix build on x86_64 Spec file clenaup --- a/python-module-twisted-web.spec +++ b/python-module-twisted-web.spec @@ -1,27 +1,22 @@ %define version 0.7.0 -%define release alt1 +%define release alt1.1 %define origname TwistedWeb %setup_python_module twisted-web -Name: %{packagename} -Version: %{version} -Release: %{release} +Name: %packagename +Version: %version +Release: %release Summary: Twisted web server, programmable in Python Group: Development/Python License: MIT URL: http://twistedmatrix.com/trac/wiki/TwistedWeb Packager: Sergey Alembekov -Source0: http://tmrc.mit.edu/mirror/twisted/Web/0.7/%{origname}-%{version}.tar.bz2 +Source0: http://tmrc.mit.edu/mirror/twisted/Web/0.7/%origname-%version.tar.bz2 BuildRequires: python-module-twisted-core BuildRequires: python-devel -Requires: python-module-twisted-core -Requires: python-module-pygoogle - -%add_python_req_skip SOAPpy - %description Twisted is an event-based framework for internet applications. @@ -30,27 +25,32 @@ applications using Twisted and Python, but fully able to serve static pages, also. %prep -%setup -q -n %{origname}-%{version} +%setup -q -n %origname-%version -%{__sed} -i -e '/^#! *\/usr\/bin\/python/d' twisted/web/test/test_cgi.py -%{__sed} -i -e '/^#! *\/usr\/bin\/python/d' twisted/web/test/test_distrib.py +subst 's@^#! */usr/bin/python@@' twisted/web/test/test_cgi.py +subst 's@^#! */usr/bin/python@@' twisted/web/test/test_distrib.py %build %__python setup.py build %install -%__python setup.py install --root $RPM_BUILD_ROOT - -%clean +%__python setup.py install --root $RPM_BUILD_ROOT --install-purelib %python_sitelibdir %files -%defattr(-,root,root,-) %doc README LICENSE NEWS doc/* -%{python_sitelibdir}/twisted/web/ +%python_sitelibdir/twisted/web +%python_sitelibdir/twisted/plugins/twisted_web.py* + +# There are no SOAPpy in ALT Linux Sisyphus - remove it support +%exclude %python_sitelibdir/twisted/web/soap.py +%exclude %python_sitelibdir/twisted/web/test/test_soap.py -%{python_sitelibdir}/twisted/plugins/twisted_web.py* %changelog +* Sat Oct 27 2007 Nikolay A. Fetisov 0.7.0-alt1.1 +- Fix build on x86_64 +- Spec file clenaup + * Fri Mar 30 2007 Sergey Alembekov 0.7.0-alt1 - Build for new upstream version