From bb6960d209ffd9caad28c35332a43e1223efb36e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sep 14 2020 13:48:40 +0000 Subject: * Fri Sep 11 2020 Fabian Affolter - 1.7-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fea17fe --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sseclient-py-1.7.tar.gz diff --git a/python-sseclient-py.spec b/python-sseclient-py.spec new file mode 100644 index 0000000..8921a81 --- /dev/null +++ b/python-sseclient-py.spec @@ -0,0 +1,51 @@ +%global pypi_name sseclient-py + +Name: python-%{pypi_name} +Version: 1.7 +Release: 1%{?dist} +Summary: SSE client for Python + +License: ASL 2.0 +URL: https://github.com/mpetazzoni/sseclient +Source0: %{url}/archive/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +A Python client for SSE event sources that seamlessly integrates with +urllib3 and requests. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(setuptools) +%description -n python3-%{pypi_name} +A Python client for SSE event sources that seamlessly integrates with +urllib3 and requests. + +%prep +%autosetup -n sseclient-%{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%pytest -v tests/unittests.py + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/sseclient/ +%{python3_sitelib}/sseclient_py-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Fri Sep 11 2020 Fabian Affolter - 1.7-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..72dba57 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sseclient-py-1.7.tar.gz) = 0e52e91c20b33877c46a45dd81454113782ef6d0ef302c9a7702400acebd7afc1258a0eb6cbb4e3abec7dd1784614d444c7391dc4e81e8935d6a2d86d207caae