Name: pulp-cli Version: 0.29.2 Release: 2%{?dist} Summary: Command line interface to talk to the Pulp 3 REST API License: GPL-2.0-or-later URL: https://github.com/pulp/pulp-cli Source: %{url}/archive/%{version}/pulp-cli-%{version}.tar.gz # See https://github.com/pulp/pulp-cli/pull/1085 Patch0: 0001-Remove-python-toml-dependency.patch BuildArch: noarch BuildRequires: python3-devel Recommends: python3-pygments Recommends: python3-click-shell Recommends: python3-secretstorage %global _description %{expand: pulp-cli provides the "pulp" command, able to communicate with the Pulp3 API in a more natural way than plain http. Specifically, resources can not only be referenced by their href, but also their natural key (e.g. name). It also handles waiting on tasks on behalf of the user.} %description %_description %prep %autosetup -p1 -n pulp-cli-%{version} %generate_buildrequires %pyproject_buildrequires test_requirements.txt %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pulp_cli pulpcore pytest_pulp_cli # Shell completion (borrowed from rpmautospec) for shell_path in \ bash:%{bash_completions_dir}/pulp \ fish:%{fish_completions_dir}/pulp.fish \ zsh:%{zsh_completions_dir}/_pulp; do shell="${shell_path%%:*}" path="${shell_path#*:}" dir="${path%/*}" install -m 755 -d "%{buildroot}${dir}" PYTHONPATH=%{buildroot}%{python3_sitelib} \ _PULP_COMPLETE="${shell}_source" \ %{__python3} -c \ "import sys; sys.argv = ['pulp']; from pulp_cli import main; sys.exit(main())" \ > "%{buildroot}${path}" done %check %pyproject_check_import pulp_cli %pytest -m help_page %files -n pulp-cli -f %{pyproject_files} %license LICENSE %doc README.* %{_bindir}/pulp %dir %{bash_completions_dir} %{bash_completions_dir}/pulp %dir %{fish_completions_dir} %{fish_completions_dir}/pulp.fish %dir %{zsh_completions_dir} %{zsh_completions_dir}/_pulp %changelog * Wed Sep 25 2024 Matthias Dellweg - 0.29.2-2 - Added shell completion macros. * Tue Sep 24 2024 Matthias Dellweg - 0.29.2-1 - new version * Tue Sep 17 2024 Matthias Dellweg - 0.29.1-1 - new version * Tue Sep 17 2024 Matthias Dellweg - 0.29.0-1 - Bump version to 0.29.0. * Wed Sep 11 2024 Matthias Dellweg - 0.28.3-1 - Initial specfile