## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # what it's called on pypi %global srcname Rx # what it's imported as %global libname rx # name of egg info directory %global eggname %{srcname} # package name fragment %global pkgname %{libname} %global _description \ Rx is a library for composing asynchronous and event-based programs using\ observable collections and LINQ-style query operators in Python. %bcond_without tests Name: python-%{pkgname} Version: 3.2.0 Release: %autorelease Summary: Reactive Extensions (Rx) for Python License: MIT URL: https://github.com/ReactiveX/RxPY # PyPI tarball doesn't have tests Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz # https://github.com/ReactiveX/RxPY/pull/570 Patch0: 0001-Set-daemon-attribute-instead-of-using-setDaemon-meth.patch # https://github.com/ReactiveX/RxPY/pull/575 Patch1: 0002-Remove-deprecated-loop-parameter.patch # Python 3.11 compatibility: replace coroutine decorator with async keyword Patch3: https://github.com/ReactiveX/RxPY/commit/a4e84d8a488d6c7c75bdb09f6d6f08edcb2b23b0.patch BuildArch: noarch %description %{_description} %package -n python3-%{pkgname} Summary: %{summary} BuildRequires: python3-coverage BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio BuildRequires: python3-pytest-runner BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pkgname}} %description -n python3-%{pkgname} %{_description} %prep %autosetup -n RxPY-%{version} -p 1 rm -rf %{eggname}.egg-info %build %py3_build %install %py3_install %if %{with tests} %check %pytest --verbose %endif %files -n python3-%{pkgname} %license LICENSE %doc README.rst authors.txt changes.md %{python3_sitelib}/%{libname} %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info %changelog * Sun Mar 05 2023 Gwyn Ciesla - 3.2.0-9 - migrated to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 3.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 3.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.2.0-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jun 27 2021 Carl George - 3.2.0-1 - Latest upstream - Fixes: rhbz#1907944 * Fri Jun 04 2021 Python Maint - 3.1.1-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 3.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 17 2020 Artem Polishchuk - 3.1.1-1 - Update to 3.1.1 * Fri Jun 26 2020 Artem Polishchuk - 3.1.0-1 - Update to 3.1.0 * Tue May 26 2020 Miro Hrončok - 3.0.1-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 16 2019 Artem Polishchuk - 3.0.1-2 - Add missed BR for new version: python3-coverage, python3-pytest, python3-pytest-asyncio, python3-pytest-runner - Don't skip any tests, fixed in upstream * Sun Sep 15 2019 Artem Polishchuk - 3.0.1-1 - Update to 3.0.1 * Mon Aug 19 2019 Miro Hrončok - 1.6.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Oct 15 2018 Carl George - 1.6.1-1 - Initial package