Name: python-tplib Version: 1.0.0 Release: 2.git.133.b882512%{?dist} Summary: Library for test cases, test plans License: BSD Source0: python-tplib-git-133.b882512.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-sphinx BuildRequires: python3-tox BuildRequires: python3-wheel Obsoletes: python-tclib %global _description %{expand: A python library for test cases, test plans, and requirements stored in yaml files.} %description %_description %package -n python3-tplib Summary: %{summary} %if 0%{?rhel} < 9 Requires: python3-jinja2 Requires: python3-pyyaml %endif %description -n python3-tplib %_description %prep %autosetup -p1 -n python-tplib-git-133.b882512 -p1 %if 0%{?fedora} > 30 || 0%{?rhel} > 8 # for fedora and potentially epel9 %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files tplib %check %tox %pyproject_check_import tplib %files -n python3-tplib -f %{pyproject_files} /usr/bin/* %doc README.* %else # for epel8 %build %py3_build %install %py3_install %check %files -n python3-tplib /usr/bin/* %{python3_sitelib}/tplib/ %{python3_sitelib}/tplib-*.egg-info/ %doc README.* %endif %changelog * Tue May 24 2022 Jiri Kortus 1.0.0-2 - rename the library and package to tplib * Fri Apr 29 2022 Marta Lewandowska 1.0.0-1 - new package built with tito