%global srcname azure-mgmt-sqlvirtualmachine # Fedora's packaging versioning scheme for betas doesn't match with what PyPi # uses. %global pypi_version 1.0.0b1 Name: python-%{srcname} Version: 1.0.0~b1 Release: %autorelease Summary: Microsoft Azure SQL Virtual Machine Management Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ Source0: %{pypi_source %{srcname} %{pypi_version} zip} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %global _description %{expand: Microsoft Azure SQL Virtual Machine Management Client Library for Python} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} Obsoletes: python3-azure-sdk < 5.0.1 %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{pypi_version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files azure %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md CHANGELOG.md %changelog %autochangelog