!1 python-pysendfile:Add source packages and spec file
From: @zhangy1317 Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
89cecdb172
BIN
pysendfile-2.0.1.tar.gz
Normal file
BIN
pysendfile-2.0.1.tar.gz
Normal file
Binary file not shown.
52
pysendfile.spec
Normal file
52
pysendfile.spec
Normal file
@ -0,0 +1,52 @@
|
||||
%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
|
||||
Loading…
x
Reference in New Issue
Block a user