%define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') # we don't want to provide private python extension libs %define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so %define module TwistedWeb Name: python-twisted-web Version: 14.0.0 Release: %mkrel 1 Summary: An HTTP protocol implementation together with clients and servers License: MIT Group: Development/Python URL: http://twistedmatrix.com/projects/web/ Source0: http://twistedmatrix.com/Releases/Web/%{mainver}/%{module}-%{version}.tar.bz2 BuildRequires: python-devel BuildRequires: python-twisted-core Requires: python-twisted-core %description An HTTP protocol implementation together with clients and servers, based on the twisted python framework. %prep %setup -q -n %{module}-%{version} %build %{__python} setup.py build %install %{__python} setup.py install --root=%{buildroot} --skip-build --install-purelib=%{python_sitearch} %files %doc LICENSE README NEWS %dir %{python_sitearch}/twisted/web %{python_sitearch}/twisted/web/* %{python_sitearch}/twisted/plugins/* %{python_sitearch}/Twisted_Web-%{version}-py%{pyver}.egg-info