diff --git a/pysendfile-2.0.1.tar.gz b/pysendfile-2.0.1.tar.gz new file mode 100644 index 0000000..9f0b705 Binary files /dev/null and b/pysendfile-2.0.1.tar.gz differ diff --git a/pysendfile.spec b/pysendfile.spec new file mode 100644 index 0000000..443749a --- /dev/null +++ b/pysendfile.spec @@ -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 +- Package Spec generated