Name: python-first Version: 2.0.2 Release: %autorelease Summary: Return the first true value of an iterable License: MIT URL: http://github.com/hynek/first VCS: git:%{URL}.git Source: %{url}/archive/%{version}/first-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: `first` is an MIT-licensed Python package with a simple function that returns the first true value from an iterable, or `None` if there is none. If you need more power, you can also supply a `key` function that is used to judge the truth value of the element or a `default` value if `None` doesn’t fit your use case.} %description %_description %package -n python3-first Summary: %{summary} %description -n python3-first %_description %prep %autosetup -p1 -n first-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l first %check %pyproject_check_import %{py3_test_envvars} %{python3} test_first.py %files -n python3-first -f %{pyproject_files} %doc README.rst %doc AUTHORS.rst %doc HISTORY.rst %changelog %autochangelog