%global srcname first %global _description\ Simple function that returns the first true value from an iterable, or None if\ there is none. Name: python-%{srcname} Version: 2.0.1 Release: 6%{?dist} Summary: Return the first true value of an iterable License: MIT URL: http://github.com/hynek/first/ Source0: https://github.com/hynek/first/archive/%{version}/%{srcname}-%{version}.tar.gz #Source0: https://files.pythonhosted.org/packages/source/f/%%{srcname}/%%{srcname}-%%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(setuptools) %description %_description %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %check # from upstream's tox.ini pytest-3 --doctest-glob='*.rst' --doctest-modules --ignore=setup.py -v %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{srcname}.py %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info %changelog * Fri Jul 26 2019 Fedora Release Engineering - 2.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jun 24 2018 Miro Hrončok - 2.0.1-3 - Rebuilt for Python 3.7 * Sat Jun 23 2018 Miro Hrončok - 2.0.1-2 - Run tests * Fri Jun 08 2018 Dhanesh B. Sabane - 2.0.1-1 - Initial package.