diff --git a/python-openwrt-luci-rpc.changes b/python-openwrt-luci-rpc.changes index 202ccbc..26c084c 100644 --- a/python-openwrt-luci-rpc.changes +++ b/python-openwrt-luci-rpc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 15:04:31 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Mar 16 09:01:58 UTC 2024 - Dirk Müller diff --git a/python-openwrt-luci-rpc.spec b/python-openwrt-luci-rpc.spec index 4da5952..c7a7a84 100644 --- a/python-openwrt-luci-rpc.spec +++ b/python-openwrt-luci-rpc.spec @@ -1,7 +1,7 @@ # # spec file for package python-openwrt-luci-rpc # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,8 +25,10 @@ URL: https://github.com/fbradyirl/openwrt-luci-rpc Source: https://files.pythonhosted.org/packages/source/o/openwrt-luci-rpc/openwrt-luci-rpc-%{version}.tar.gz BuildRequires: %{python_module click >= 6.0} BuildRequires: %{python_module packaging >= 19.1} +BuildRequires: %{python_module pip} BuildRequires: %{python_module requests >= 2.21} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click >= 6.0 @@ -51,14 +53,14 @@ https://openwrt-luci-rpc.readthedocs.io sed -i -e 's:==:>=:g' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover -v +%pyunittest -v %files %{python_files} %license LICENSE