diff --git a/getmac-0.8.2.tar.gz b/getmac-0.8.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..53d4785be02fddeaf2414743fb10ecc6f8929cec Binary files /dev/null and b/getmac-0.8.2.tar.gz differ diff --git a/python-getmac.spec b/python-getmac.spec new file mode 100644 index 0000000000000000000000000000000000000000..47550ec90d5a388eeadc25c75172622e98e057b3 --- /dev/null +++ b/python-getmac.spec @@ -0,0 +1,50 @@ +Name: python-getmac +Version: 0.8.2 +Release: 1 +Summary: Python module to get the MAC address of local network interfaces and LAN hosts + +License: MIT +URL: https://github.com/GhostofGoes/getmac +Source0: https://github.com/GhostofGoes/getmac/releases/download/0.8.2/getmac-0.8.2.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +Pure-python module to get the MAC address of remote hosts or network interfaces. +It provides a platform-independent interface to get the MAC addresses of network +interfaces on the local system(by interface name) and remote hosts on the local +network (by IPv4/IPv6 address or host-name). + +%package -n python3-getmac +Summary: %{summary} +%{?python_provide:%python_provide python3-getmac} + +%description -n python3-getmac +Pure-python module to get the MAC address of remote hosts or network interfaces. +It provides a platform-independent interface to get the MAC addresses of network +interfaces on the local system(by interface name) and remote hosts on the local +network (by IPv4/IPv6 address or host-name). + +%prep +%autosetup -n getmac-%{version} + +%build +sed -i '1{/^#!\//d}' getmac/__main__.py +%py3_build + +%install +%py3_install + +%files -n python3-getmac +%license LICENSE +%doc README.md +%{python3_sitelib}/getmac/ +%{python3_sitelib}/getmac-*.egg-info/ +/usr/bin/getmac +%{_mandir}/man1/* + +%changelog +* Tue Jul 20 2021 Li Jiaan - 0.8.2-1 +- Init project