Compare commits

..

No commits in common. "rawhide" and "f40" have entirely different histories.

2 changed files with 17 additions and 50 deletions

View file

@ -1,37 +0,0 @@
From 58a4b15852980a231a08e5a0d45e71f7fa47aa02 Mon Sep 17 00:00:00 2001
From: Artem Polishchuk <tim77@users.noreply.github.com>
Date: Mon, 25 Jan 2021 23:36:00 +0200
Subject: [PATCH] fix: Add LICENSE file
---
LICENSE | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..1dd5daf
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 gevent-eventemitter developers
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

View file

@ -1,4 +1,6 @@
%global pypi_name gevent-eventemitter
%global modname eventemitter
%global eggname gevent_%{modname}
Name: python-%{pypi_name}
Version: 2.1
@ -8,14 +10,18 @@ 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
Source: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
# Add LICENSE file
Patch: %{url}/pull/3/commits/58a4b15852980a231a08e5a0d45e71f7fa47aa02.patch
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(coverage) >= 4.0.3
BuildRequires: python3dist(gevent) >= 1.3
BuildRequires: python3dist(pytest-cov) >= 2.5.1
BuildRequires: python3dist(pytest) >= 3.2.1
%global _description %{expand:
This module implements EventEmitter with gevent.}
@ -32,27 +38,25 @@ Summary: %{summary}
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%py3_build
%install
%pyproject_install
%pyproject_save_files -l eventemitter
%py3_install
%check
%pyproject_check_import
%pytest
%{python3} -m pytest -v
%files -n python3-%{pypi_name} -f %{pyproject_files}
%files -n python3-%{pypi_name}
%dnl %license LICENSE
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{eggname}-%{version}-*.egg-info
%{python3_sitelib}/%{modname}/
%changelog