Blame python-azure-iot-nspkg.spec

d85087
#
d85087
# spec file for package python-azure-iot-nspkg
d85087
#
d85087
# Copyright (c) 2022 SUSE LLC
d85087
#
d85087
# All modifications and additions to the file contributed by third parties
d85087
# remiotn 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
d85087
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
d85087
%if 0%{?suse_version} >= 1500
d85087
%define skip_python2 1
d85087
%endif
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}
d85087
BuildRequires:  %{python_module setuptools}
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
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}
d85087
%python_build
d85087
d85087
%install
d85087
%python_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
d85087
%dir %{python_sitelib}/azure/iot
d85087
%python2_only %{python_sitelib}/azure/iot
d85087
%{python_sitelib}/azure_iot_nspkg-*.egg-info
d85087
d85087
%changelog