## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 Name: python-reactivex Version: 4.0.4 Release: %autorelease Summary: API for asynchronous programming with observable streams License: MIT URL: https://github.com/ReactiveX/RxPY # Use two sources. # Only PyPi sources contains a version number in pyproject files # Only github archive contains tests Source0: %{pypi_source reactivex} Source1: %{url}/archive/v%{version}/RxPy-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Test dependencies: BuildRequires: python3dist(pytest) %global _description\ ReactiveX for Python (RxPY) is a library for composing asynchronous and\ event-based programs using observable sequences and pipable query\ operators in Python. Using Rx, developers represent asynchronous\ data streams with Observables, query asynchronous data streams\ using operators, and parameterize concurrency in data/event\ streams using Schedulers. %description %_description %package -n python3-reactivex Summary: %{summary} %description -n python3-reactivex %_description %prep %autosetup -n reactivex-%{version} tar -xf %{SOURCE1} RxPY-%{version}/tests --strip-components=1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files reactivex %check %pytest %pyproject_check_import %files -n python3-reactivex -f %{pyproject_files} %doc README.rst %license LICENSE %changelog ## START: Generated by rpmautospec * Fri Mar 03 2023 Steve Traylen - 4.0.4-1 - Initial Package ## END: Generated by rpmautospec