## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 Name: python-toml-cli Version: 0.7.0 Release: %autorelease Summary: Read and write keys/values to/from toml files License: MIT URL: https://github.com/mrijken/toml-cli # PyPI tarball doesn't include tests Source: %{url}/archive/v%{version}/toml-cli-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: Command line interface for toml files.} %description %_description %package -n python3-toml-cli Summary: %{summary} %description -n python3-toml-cli %_description %package -n toml-cli Summary: %{summary} Requires: python3-toml-cli # Provides a binary at the same path Conflicts: libtoml %description -n toml-cli %_description %prep %autosetup -p1 -n toml-cli-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L toml_cli %check %pytest -v %files -n python3-toml-cli -f %{pyproject_files} %license LICENSE %doc README.md CHANGELOG.md %files -n toml-cli %{_bindir}/toml %changelog ## START: Generated by rpmautospec * Wed Mar 05 2025 Davide Cavalca - 0.7.0-1 - Initial import; Fixes: RHBZ#2333266 ## END: Generated by rpmautospec