File python-sendfile.spec of Package python-sendfile

%define modname py-sendfile
Name:           python-sendfile
Version:        1.2.4
Release:        1
Summary:        A Python Interface to sendfile(2)
URL:            http://pypi.python.org/pypi/py-sendfile
License:        LGPL
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires:  python-devel python-setuptools

%description
A Python interface to sendfile(2), which is an interface for copying data
between file descriptors in the kernel without passing the data to or from
userspace.

Authors:
--------
    Stephan Peijnik <stephan@peijnik.at>
    Ben Woolley <tautolog@gmail.com>

%prep
%setup -q -n %{modname}-%{version}

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

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf %{buildroot}

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

%changelog
openSUSE Build Service is sponsored by