Blame python-azure-iot-nspkg.spec

d85087
#
d85087
# spec file for package python-azure-iot-nspkg
d85087
#
511a37
# Copyright (c) 2024 SUSE LLC
d85087
#
d85087
# All modifications and additions to the file contributed by third parties
511a37
# remain the property of their copyright owners, unless otherwise agreed
d85087
# upon. The license for this file, and modifications and additions to the
d85087
# file, is the same license as for the pristine package itself (unless the
d85087
# license for the pristine package is not an Open Source License, in which
d85087
# case the license is the MIT License). An "Open Source License" is a
d85087
# license that conforms to the Open Source Definition (Version 1.9)
d85087
# published by the Open Source Initiative.
d85087
d85087
# Please submit bugfixes or comments via https://bugs.opensuse.org/
d85087
#
d85087
d85087
511a37
%{?sle15_python_module_pythons}
d85087
Name:           python-azure-iot-nspkg
d85087
Version:        1.0.1
d85087
Release:        0
d85087
Summary:        Microsoft Azure IoT namespace package
d85087
License:        MIT
d85087
Group:          Development/Languages/Python
d85087
URL:            https://github.com/Azure/azure-sdk-for-python
d85087
Source:         https://files.pythonhosted.org/packages/source/a/azure-iot-nspkg/azure-iot-nspkg-%{version}.tar.gz
d85087
Source1:        LICENSE.txt
d85087
BuildRequires:  %{python_module azure-nspkg >= 3.0.0}
511a37
BuildRequires:  %{python_module pip}
d85087
BuildRequires:  %{python_module setuptools}
511a37
BuildRequires:  %{python_module wheel}
d85087
BuildRequires:  fdupes
d85087
BuildRequires:  python-rpm-macros
d85087
BuildRequires:  unzip
d85087
Requires:       python-azure-nspkg >= 3.0.0
d85087
Conflicts:      python-azure-sdk <= 2.0.0
511a37
%if 0%{?sle_version} >= 150400
511a37
Obsoletes:      python3-azure-iot-nspkg < 1.0.1
511a37
%endif
d85087
BuildArch:      noarch
d85087
%python_subpackages
d85087
d85087
%description
d85087
This is the Microsoft Azure IoT namespace package.
d85087
d85087
This package is not intended to be installed directly by the end user.
d85087
d85087
It provides the necessary files for other packages to extend the azure.iot namespace.
d85087
d85087
%prep
d85087
%setup -q -n azure-iot-nspkg-%{version}
d85087
d85087
%build
d85087
install -m 644 %{SOURCE1} %{_builddir}/azure-iot-nspkg-%{version}
511a37
%pyproject_wheel
d85087
d85087
%install
511a37
%pyproject_install
d85087
%python_expand %fdupes %{buildroot}%{$python_sitelib}
d85087
%python_expand mkdir -p %{buildroot}%{$python_sitelib}/azure/iot
d85087
d85087
%files %{python_files}
d85087
%doc README.md
d85087
%license LICENSE.txt
511a37
%{python_sitelib}/azure/iot
511a37
%{python_sitelib}/azure_iot_nspkg-*.dist-info
d85087
d85087
%changelog