# what it's called on pypi %global srcname outcome # what it's imported as %global libname outcome # name of egg info directory %global eggname outcome # package name fragment %global pkgname outcome %global _description \ Outcome provides a function for capturing the outcome of a Python function\ call, so that it can be passed around. %bcond_without tests Name: python-%{pkgname} Version: 1.1.0 Release: 1%{?dist} Summary: Capture the outcome of Python function calls License: MIT or ASL 2.0 URL: https://github.com/python-trio/outcome Source0: %pypi_source BuildArch: noarch %description %{_description} %package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %if %{with tests} BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-asyncio BuildRequires: python%{python3_pkgversion}-async-generator BuildRequires: python%{python3_pkgversion}-attrs %endif Requires: python%{python3_pkgversion}-attrs %{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} %description -n python%{python3_pkgversion}-%{pkgname} %{_description} %prep %autosetup -n %{srcname}-%{version} %build %py3_build %install %py3_install %if %{with tests} %check PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose %endif %files -n python%{python3_pkgversion}-%{pkgname} %license LICENSE LICENSE.MIT LICENSE.APACHE2 %doc README.rst %{python3_sitelib}/%{libname} %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info %changelog * Mon Feb 22 2021 Lumír Balhar - 1.1.0-1 - Update to 1.1.0 Resolves: rhbz#1898627 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jul 31 2020 Charalampos Stratakis - 1.0.1-1 - Update to 1.0.1 (#1762713) * Wed Jul 29 2020 Fedora Release Engineering - 1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.0.0-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.0.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.0.0-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Sep 12 2018 Carl George - 1.0.0-1 - Initial package