%global srcname ifcfg Name: python-%{srcname} Version: 0.18 Release: 1%{?dist} Summary: Python cross-platform network interface discovery (ifconfig/ipconfig/ip) License: BSD URL: https://github.com/ftao/%{name} Source0: https://github.com/ftao/%{name}/archive/releases/%{version}/%{name}-releases-%{version}.tar.gz BuildArch: noarch %description Ifcfg is a cross-platform library for parsing ifconfig and ipconfig output in Python. It is useful for pulling information such as IP, Netmask, MAC Address, Hostname, etc. A fallback to ip is included for newer Unix systems w/o ifconfig. %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-mock %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} Ifcfg is a cross-platform library for parsing ifconfig and ipconfig output in Python. It is useful for pulling information such as IP, Netmask, MAC Address, Hostname, etc. A fallback to ip is included for newer Unix systems w/o ifconfig. %prep %autosetup -n %{name}-releases-%{version} %build %py3_build %install %py3_install %check %{__python3} -m nose tests %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %changelog * Tue Aug 27 2019 Scott K Logan - 0.18-1 - Initial package