Name: python-cs Version: 3.2.0 Release: 3%{?dist} Summary: A simple, yet powerful CloudStack API client for python and the command-line License: BSD URL: https://github.com/exoscale/cs Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: A simple, yet powerful CloudStack API client for python and the command-line. * Async support. * All present and future CloudStack API calls and parameters are supported. * Syntax highlight in the command-line client if Pygments is installed.} %description %_description %package -n python3-cs Summary: %{summary} BuildRequires: python3-devel # Test dependencies: BuildRequires: python3dist(aiohttp) BuildRequires: python3dist(pytest) # clearsilver also wants to install the cs executable, the upstream is dead, # Fedora package is probably used by someone, python3-cs is modern, and conflicts are unlikely. Conflicts: clearsilver %description -n python3-cs %_description %pyproject_extras_subpkg -n python3-cs async highlight %prep %autosetup -n cs-%{version} # Remove unnecessary shebang sed -i '/#! \/usr\/bin\/env python/d' cs/client.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files cs %check %pytest -c /dev/null tests.py %files -n python3-cs -f %{pyproject_files} %doc README.rst %license LICENSE %{_bindir}/cs %changelog * Fri Jul 21 2023 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jul 06 2023 Roman Inflianskas - 3.2.0-2 - Rebuilt for Python 3.12 (resolve rhbz#2220176) - Simplify testing * Thu Jun 22 2023 Roman Inflianskas - 3.2.0-1 - Update to 3.2.0 (resolve rhbz#2212846) * Fri Jan 20 2023 Fedora Release Engineering - 3.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 3.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 3.0.0-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Nov 06 2021 Roman Inflianskas - 3.0.0-4 - Fix summary * Fri Oct 29 2021 Roman Inflianskas - 3.0.0-3 - Return cs binary back, add the package clearsilver to conflicts * Wed Oct 27 2021 Roman Inflianskas - 3.0.0-2 - Remove cs binary because it is provided by the package clearsilver * Mon Oct 25 2021 Roman Inflianskas - 3.0.0-1 - Initial package