From b1b1f69742070ee0978a56ba3de49aad912ce32e Mon Sep 17 00:00:00 2001 From: hargoniX Date: Nov 09 2018 17:21:41 +0000 Subject: first package version --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4002747 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/getmac-0.6.0.tar.gz diff --git a/python-getmac.spec b/python-getmac.spec new file mode 100644 index 0000000..eda54da --- /dev/null +++ b/python-getmac.spec @@ -0,0 +1,51 @@ +%global srcname getmac + +Name: python-%{srcname} +Version: 0.6.0 +Release: 1%{?dist} +Summary: Python module to get the MAC address of local network interfaces and LAN hosts + +License: MIT +URL: https://github.com/GhostofGoes/getmac +Source0: %pypi_source + +BuildArch: noarch +BuildRequires: python3-devel, 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-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-getmac} + +%description -n python3-%{srcname} +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 %{srcname}-%{version} + +%build +sed -i '1{/^#!\//d}' getmac/__main__.py +%py3_build + +%install +%py3_install + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-*.egg-info/ +/usr/bin/getmac +%{_mandir}/man1/* + +%changelog +* Sat Oct 13 2018 Henrik Boeving - 0.6.0-1 +- initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..0ce0a27 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (getmac-0.6.0.tar.gz) = 871021a9265bc803845f0d20144095b7339b93eb9a5bfed8bfd4397bdc9d548d503085a0279b13db21c769bc33739bf6217df8a7f61858cb210f6c423c2e2ae0