diff --git a/58a4b15852980a231a08e5a0d45e71f7fa47aa02.patch b/58a4b15852980a231a08e5a0d45e71f7fa47aa02.patch deleted file mode 100644 index a475a97..0000000 --- a/58a4b15852980a231a08e5a0d45e71f7fa47aa02.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 58a4b15852980a231a08e5a0d45e71f7fa47aa02 Mon Sep 17 00:00:00 2001 -From: Artem Polishchuk -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. diff --git a/changelog b/changelog deleted file mode 100644 index a615f51..0000000 --- a/changelog +++ /dev/null @@ -1,38 +0,0 @@ -* Sat Jan 27 2024 Maxwell G - 2.1-13 -- Remove unused python3-mock test dependency - -* Fri Jan 26 2024 Fedora Release Engineering - 2.1-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 2.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jul 21 2023 Fedora Release Engineering - 2.1-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Fri Jun 16 2023 Python Maint - 2.1-9 -- Rebuilt for Python 3.12 - -* Fri Jan 20 2023 Fedora Release Engineering - 2.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Jul 22 2022 Fedora Release Engineering - 2.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Tue Jun 14 2022 Python Maint - 2.1-6 -- Rebuilt for Python 3.11 - -* Fri Jan 21 2022 Fedora Release Engineering - 2.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 2.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 2.1-3 -- Rebuilt for Python 3.10 - -* 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/python-gevent-eventemitter.spec b/python-gevent-eventemitter.spec index 7a6df22..d42a4d8 100644 --- a/python-gevent-eventemitter.spec +++ b/python-gevent-eventemitter.spec @@ -1,21 +1,28 @@ %global pypi_name gevent-eventemitter +%global modname eventemitter +%global eggname gevent_%{modname} Name: python-%{pypi_name} Version: 2.1 -Release: %autorelease +Release: 4%{?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 -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(mock) +BuildRequires: python3dist(pytest-cov) >= 2.5.1 +BuildRequires: python3dist(pytest) >= 3.2.1 %global _description %{expand: This module implements EventEmitter with gevent.} @@ -32,28 +39,36 @@ 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 -%autochangelog +* Fri Jul 23 2021 Fedora Release Engineering - 2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 2.1-3 +- Rebuilt for Python 3.10 + +* 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