Blame python-azure-mgmt-sqlvirtualmachine.spec

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