File python-home-assistant-chip-clusters.spec of Package python-home-assistant-chip-clusters

#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
# wheeldir of name build does not work well with this packagename gh#openSUSE/python-rpm-macros#157
%define _pyproject_wheeldir distwheel

%{?sle15_python_module_pythons}
%define         skip_python39 1

Name:           python-home_assistant_chip_clusters
Version:        2023.10.2
Release:        0
Summary:        2023.10.2
License:        Apache
URL:            https://pypi.org/project/home-assistant-chip-clusters
Source0:      https://files.pythonhosted.org/packages/ab/56/ee833bd1c57ee218d7f6d791ab310d0feff4b38b649e9daf52d48ee68bb1/home_assistant_chip_clusters-2023.10.2-py3-none-any.whl
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module wheel}
BuildRequires:  unzip
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  python3-setuptools-wheel
Requires: python-aenum
%python_subpackages

%description

%prep

%build

%install
%{python_expand export p=python3.${python_flavor#python3}; mkdir -p %{buildroot}/usr/lib/${p}/site-packages; cd %{buildroot}/usr/lib/${p}/site-packages; unzip %{S:0}
}

%files %{python_files}
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by