python-pysendfile/pysendfile.spec
2021-01-04 10:19:43 +08:00

53 lines
1.2 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: pysendfile
Version: 2.0.1
Release: 1
Summary: A Python interface to sendfile(2)
License: MIT
URL: https://github.com/giampaolo/pysendfile
Source0: https://files.pythonhosted.org/packages/cd/3f/4aa268afd0252f06b3b487c296a066a01ddd4222a46b7a3748599c8fc8c3/pysendfile-2.0.1.tar.gz
BuildRequires: gcc
%description
sendfile(2) is a system call which provides a "zero-copy" way of copying data
from one file descriptor to another (a socket).
%package -n python3-pysendfile
Summary: A Python interface to sendfile(2)
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-pysendfile
sendfile(2) is a system call which provides a "zero-copy" way of copying data
from one file descriptor to another (a socket).
%prep
%setup -q
%build
%py3_build
%install
%py3_install
%check
PYTHONPATH="$RPM_BUILD_ROOT%{python3_sitearch}" %{__python3} test/test_sendfile.py
%files -n python3-pysendfile
%doc README.rst
%license LICENSE
%attr(755, root, root) %{python3_sitearch}/sendfile.*.so
%{python3_sitearch}/pysendfile-%{version}-*.egg-info
%changelog
* Mon Jan 04 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated