Blame python-azure-mgmt-dnsresolver.spec

d58249
#
d58249
# spec file for package python-azure-mgmt-dnsresolver
d58249
#
d58249
# Copyright (c) 2022 SUSE LLC
d58249
#
d58249
# All modifications and additions to the file contributed by third parties
d58249
# remain the property of their copyright owners, unless otherwise agreed
d58249
# upon. The license for this file, and modifications and additions to the
d58249
# file, is the same license as for the pristine package itself (unless the
d58249
# license for the pristine package is not an Open Source License, in which
d58249
# case the license is the MIT License). An "Open Source License" is a
d58249
# license that conforms to the Open Source Definition (Version 1.9)
d58249
# published by the Open Source Initiative.
d58249
d58249
# Please submit bugfixes or comments via https://bugs.opensuse.org/
d58249
#
d58249
d58249
d58249
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
d58249
%if 0%{?suse_version} >= 1500
d58249
%define skip_python2 1
d58249
%endif
d58249
Name:           python-azure-mgmt-dnsresolver
d58249
Version:        1.0.0
d58249
Release:        0
d58249
Summary:        Microsoft Azure Dnsresolver Management Client Library for Python
d58249
License:        MIT
d58249
Group:          Development/Languages/Python
d58249
URL:            https://github.com/Azure/azure-sdk-for-python
d58249
Source:         https://files.pythonhosted.org/packages/source/a/azure-mgmt-dnsresolver/azure-mgmt-dnsresolver-%{version}.zip
d58249
Source1:        LICENSE.txt
d58249
BuildRequires:  %{python_module azure-mgmt-nspkg >= 3.0.0}
d58249
BuildRequires:  %{python_module azure-nspkg >= 3.0.0}
d58249
BuildRequires:  %{python_module setuptools}
d58249
BuildRequires:  fdupes
d58249
BuildRequires:  python-rpm-macros
d58249
BuildRequires:  unzip
d58249
Requires:       python-azure-common < 2.0.0
d58249
Requires:       python-azure-common >= 1.1
d58249
Requires:       python-azure-mgmt-core < 2.0.0
d58249
Requires:       python-azure-mgmt-core >= 1.3.2
d58249
Requires:       python-azure-mgmt-nspkg >= 3.0.0
d58249
Requires:       python-azure-nspkg >= 3.0.0
d58249
Requires:       python-msrest >= 0.7.1
d58249
Conflicts:      python-azure-sdk <= 2.0.0
d58249
d58249
BuildArch:      noarch
d58249
d58249
%python_subpackages
d58249
d58249
%description
d58249
This is the Microsoft Azure Dnsresolver Management Client Library.
d58249
d58249
This package has been tested with Python 3.7+.
d58249
d58249
%prep
d58249
%setup -q -n azure-mgmt-dnsresolver-%{version}
d58249
d58249
%build
d58249
install -m 644 %{SOURCE1} %{_builddir}/azure-mgmt-dnsresolver-%{version}
d58249
%python_build
d58249
d58249
%install
d58249
%python_install
d58249
%python_expand %fdupes %{buildroot}%{$python_sitelib}
d58249
%{python_expand # delete common files
d58249
rm -rf %{buildroot}%{$python_sitelib}/azure/mgmt/__init__.*
d58249
rm -rf %{buildroot}%{$python_sitelib}/azure/mgmt/__pycache__
d58249
rm -rf %{buildroot}%{$python_sitelib}/azure/__init__.*
d58249
rm -rf %{buildroot}%{$python_sitelib}/azure/__pycache__
d58249
}
d58249
d58249
%files %{python_files}
d58249
%defattr(-,root,root,-)
d58249
%doc CHANGELOG.md README.md
d58249
%license LICENSE.txt
d58249
%{python_sitelib}/azure/mgmt/dnsresolver
d58249
%{python_sitelib}/azure_mgmt_dnsresolver-*.egg-info
d58249
d58249
%changelog