Files
python-upnpclient/python-upnpclient.spec

65 lines
2.0 KiB
RPMSpec

#
# spec file for package python-upnpclient
#
# Copyright (c) 2024 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/
#
%define skip_python311 1
%define skip_python312 1
Name: python-upnpclient
Version: 1.0.3
Release: 0
Summary: Python 3 library for accessing uPnP devices
License: MIT
URL: https://github.com/flyte/upnpclient
Source: https://files.pythonhosted.org/packages/source/u/upnpclient/upnpclient-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: fdupes
Requires: python3-ifaddr
Requires: python3-lxml
Requires: python3-python-dateutil
Requires: python3-requests
Requires: python3-six
BuildArch: noarch
%python_subpackages
%description
uPnP client library for Python 3.
This library can be used to discover and consume uPnP devices and their services.
It's originally based on [Ferry Boender's work](https://github.com/fboender/pyupnpclient)
and his blog post entitled [Exploring UPnP with Python](https://www.electricmonk.nl/log/2016/07/05/exploring-upnp-with-python/).
%prep
%autosetup -p1 -n upnpclient-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/upnpclient
%{python_sitelib}/upnpclient-%{version}.dist-info
%changelog