## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 %global pypi_name obsah %global pypi_version 1.7.1 Name: python-%{pypi_name} Version: %{pypi_version} Release: %autorelease Summary: Packaging wrapper using Ansible License: GPLv2 URL: https://github.com/theforeman/obsah Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel # Test dependencies: BuildRequires: python3dist(pytest) %description An Ansible wrapper that will help you to build CLI applications by writing Ansible playbooks. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} An Ansible wrapper that will help you to build CLI applications by writing Ansible playbooks. %generate_buildrequires %pyproject_buildrequires -r %prep %autosetup -n %{pypi_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import # TODO: include tests in tarball #%%pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %{_bindir}/obsah %changelog ## START: Generated by rpmautospec * Mon Dec 15 2025 Ewoud Kohl van Wijngaarden - 1.7.1-1 - Update to 1.7.1 * Sun Jun 12 2022 Ewoud Kohl van Wijngaarden - 0.0.3-1 - Update to 0.0.3 * Sun Oct 25 2020 Ewoud Kohl van Wijngaarden - 0.0.2-1 - Update to 0.0.2 * Wed May 13 2020 Ewoud Kohl van Wijngaarden - 0.0.1-2 - Allow building with Python 2 on EPEL7 * Thu Nov 28 2019 Ewoud Kohl van Wijngaarden - 0.0.1-1 - Initial package. ## END: Generated by rpmautospec