%define name python-twisted
%define version 9.0.0
%define release 1

Summary: An asynchronous networking framework written in Python
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: MIT
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Vendor: Glyph Lefkowitz <glyph@twistedmatrix.com>
Url: http://twistedmatrix.com/

%description
An extensible framework for Python programming, with special focus
on event-based network programming and multiprotocol integration.


%prep
%setup

%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)