Blame python-azure-mgmt-recoveryservices.spec

92b2112
%bcond_without  tests
92b2112
1db7586
%global         srcname     azure-mgmt-recoveryservices
1db7586
1db7586
Name:           python-%{srcname}
92b2112
Version:        2.0.0
907bea6
Release:        4%{?dist}
1db7586
Summary:        Microsoft Azure Recovery Services Client Library for Python
1db7586
License:        MIT
1db7586
URL:            https://pypi.org/project/%{srcname}/
1db7586
Source0:        %{pypi_source %{srcname} %{version} zip}
1db7586
1db7586
BuildArch:      noarch
1db7586
105491c
Epoch:          1
105491c
1db7586
1e5899a
BuildRequires:  python3-devel
1db7586
BuildRequires:  pyproject-rpm-macros
1db7586
92b2112
%if %{with tests}
92b2112
BuildRequires:  python3dist(azure-devtools)
92b2112
BuildRequires:  python3dist(azure-mgmt-keyvault)
92b2112
BuildRequires:  python3dist(azure-mgmt-resource)
92b2112
BuildRequires:  python3dist(azure-sdk-tools)
92b2112
BuildRequires:  python3dist(pytest)
92b2112
BuildRequires:  python3dist(pytest-aiohttp)
92b2112
%endif
1db7586
1db7586
%global _description %{expand:
1db7586
Microsoft Azure Recovery Services Client Library for Python}
1db7586
1db7586
%description %{_description}
1db7586
1db7586
1e5899a
%package -n python3-%{srcname}
1db7586
Summary:        %{summary}
907bea6
Obsoletes:      python3-azure-sdk < 5.0.1
1e5899a
%description -n python3-%{srcname} %{_description}
1db7586
1db7586
1db7586
%prep
1db7586
%autosetup -n %{srcname}-%{version}
1db7586
1db7586
1db7586
%generate_buildrequires
1db7586
%pyproject_buildrequires -r
1db7586
1db7586
1db7586
%build
1db7586
%pyproject_wheel
1db7586
1db7586
1db7586
%install
1db7586
%pyproject_install
1db7586
%pyproject_save_files azure
1db7586
1db7586
92b2112
%if %{with tests}
92b2112
%check
92b2112
%pytest
92b2112
%endif
92b2112
92b2112
92b2112
# LICENSE missing. Made a PR to fix:
92b2112
# https://github.com/Azure/azure-sdk-for-python/pull/20178
1db7586
%files -n python3-%{srcname} -f %{pyproject_files}
92b2112
%doc README.md CHANGELOG.md
1db7586
1db7586
1db7586
%changelog
907bea6
* Wed Sep 08 2021 Major Hayden <major@mhtx.net> - 1:2.0.0-4
907bea6
- Move obsoletes into subpackage
907bea6
92b2112
* Mon Aug 09 2021 Major Hayden <major@mhtx.net> - 1:2.0.0-3
92b2112
- Update to 2.0.0
92b2112
53bc3eb
* Mon Jul 26 2021 Major Hayden <major@mhtx.net> - 1:1.0.0-2
105491c
- Add epoch number for 1.0.0 downgrade
105491c
5131f2c
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
5131f2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5131f2c
1e5899a
* Tue Jul 20 2021 Major Hayden <major@mhtx.net> - 2.0.0-1
1e5899a
- Update to 2.0.0
1e5899a
1db7586
* Tue Jun 01 2021 Major Hayden <major@mhtx.net> - 1.0.0-1
1db7586
- First package.