From 665d55724625bb710c656d43fc2c344b47297146 Mon Sep 17 00:00:00 2001 From: Artem Polishchuk Date: Wed, 27 Jan 2021 09:13:26 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + python-gevent-eventemitter.spec | 67 +++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 python-gevent-eventemitter.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2e5e76 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gevent-eventemitter-2.1.tar.gz diff --git a/python-gevent-eventemitter.spec b/python-gevent-eventemitter.spec new file mode 100644 index 0000000..be9b71e --- /dev/null +++ b/python-gevent-eventemitter.spec @@ -0,0 +1,67 @@ +%global pypi_name gevent-eventemitter +%global modname eventemitter +%global eggname gevent_%{modname} + +Name: python-%{pypi_name} +Version: 2.1 +Release: 2%{?dist} +Summary: EventEmitter using gevent +BuildArch: noarch + +# https://github.com/rossengeorgiev/gevent-eventemitter/pull/3 +License: MIT + +URL: https://github.com/rossengeorgiev/gevent-eventemitter + +# Tests works only woth GitHub sources +Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3dist(coverage) >= 4.0.3 +BuildRequires: python3dist(gevent) >= 1.3 +BuildRequires: python3dist(mock) +BuildRequires: python3dist(pytest-cov) >= 2.5.1 +BuildRequires: python3dist(pytest) >= 3.2.1 + +%global _description %{expand: +This module implements EventEmitter with gevent.} + +%description %{_description} + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %{_description} + + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{python3} -m pytest -v + + +%files -n python3-%{pypi_name} +%dnl %license LICENSE +%doc README.rst +%{python3_sitelib}/%{eggname}-%{version}-*.egg-info +%{python3_sitelib}/%{modname}/ + + +%changelog +* Mon Jan 25 2021 Artem Polishchuk - 2.1-2 +- build: Polish to conform Fedora guidelines + +* Wed Sep 16 2020 gasinvein - 2.1-0.1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..0bf462b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gevent-eventemitter-2.1.tar.gz) = 592208406a5b6b86970629745562bebb97a3027456cfd19eaaae12fef2689648663b291196b976cef74e0940481a38d8de0ff9a072a7a28bc5efcacb9319979e