add: python-nmcli

for nmgui
This commit is contained in:
madonuko
2026-06-28 15:53:19 +08:00
parent e4836e5327
commit 217efa2420
3 changed files with 54 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "python-nmcli.spec"
}
}
+48
View File
@@ -0,0 +1,48 @@
Name: python-nmcli
Version: 1.8.0
Release: 1%?dist
Summary: A python wrapper library for the network-manager cli client
License: MIT
URL: https://github.com/ushiboy/nmcli
Source: %{pypi_source nmcli}
Packager: madonuko <mado@fyralabs.com>
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
nmcli is a python wrapper library for the network-manager cli client.}
%description %_description
%package -n python3-nmcli
Summary: %{summary}
%description -n python3-nmcli %_description
%prep
%autosetup -p1 -n nmcli-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files nmcli
%check
%pyproject_check_import
%files -n python3-nmcli -f %{pyproject_files}
%doc README.md
%license LICENSE.txt
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(pypi("nmcli"));