b1b1f69
%global srcname getmac
b1b1f69
b1b1f69
Name:           python-%{srcname}
c91ad15
Version:        0.8.2
0892ed6
Release:        4%{?dist}
b1b1f69
Summary:        Python module to get the MAC address of local network interfaces and LAN hosts
b1b1f69
b1b1f69
License:        MIT
b1b1f69
URL:            https://github.com/GhostofGoes/getmac
b1b1f69
Source0:        %pypi_source
b1b1f69
b1b1f69
BuildArch:      noarch
b1b1f69
BuildRequires:  python3-devel, python3-setuptools
b1b1f69
b1b1f69
%description
b1b1f69
Pure-python module to get the MAC address of remote hosts or network interfaces.
b1b1f69
It provides a platform-independent interface to get the MAC addresses of network
b1b1f69
interfaces on the local system(by interface name) and remote hosts on the local
b1b1f69
network (by IPv4/IPv6 address or host-name).
b1b1f69
b1b1f69
%package -n python3-%{srcname}
b1b1f69
Summary:        %{summary}
b1b1f69
%{?python_provide:%python_provide python3-getmac}
b1b1f69
b1b1f69
%description -n python3-%{srcname}
b1b1f69
Pure-python module to get the MAC address of remote hosts or network interfaces.
b1b1f69
It provides a platform-independent interface to get the MAC addresses of network
b1b1f69
interfaces on the local system(by interface name) and remote hosts on the local
b1b1f69
network (by IPv4/IPv6 address or host-name).
b1b1f69
b1b1f69
%prep
b1b1f69
%autosetup -n %{srcname}-%{version}
b1b1f69
b1b1f69
%build
b1b1f69
sed -i '1{/^#!\//d}' getmac/__main__.py
b1b1f69
%py3_build
b1b1f69
b1b1f69
%install
b1b1f69
%py3_install
b1b1f69
b1b1f69
%files -n python3-%{srcname}
b1b1f69
%license LICENSE
b1b1f69
%doc README.md
b1b1f69
%{python3_sitelib}/%{srcname}/
b1b1f69
%{python3_sitelib}/%{srcname}-*.egg-info/
b1b1f69
/usr/bin/getmac
b1b1f69
%{_mandir}/man1/*
b1b1f69
b1b1f69
%changelog
0892ed6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
0892ed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0892ed6
eaa2c02
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.2-3
eaa2c02
- Rebuilt for Python 3.10
eaa2c02
39cd09e
* Tue May 25 2021 Henrik Boeving <hargonix@gmail.com> - 0.8.2-2
4bfd059
- Update to 0.8.2
4bfd059
ed4d382
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-8
ed4d382
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ed4d382
9f9f510
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-7
9f9f510
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9f9f510
2e0c88c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-6
2e0c88c
- Rebuilt for Python 3.9
2e0c88c
0267f36
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
0267f36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0267f36
9fdfd53
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-4
9fdfd53
- Rebuilt for Python 3.8.0rc1 (#1748018)
9fdfd53
02e5286
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-3
02e5286
- Rebuilt for Python 3.8
02e5286
13b1c14
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
13b1c14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
13b1c14
b9e8c19
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
b9e8c19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b9e8c19
b1b1f69
* Sat Oct 13 2018 Henrik Boeving <hargonix@gmail.com> - 0.6.0-1
b1b1f69
- initial packaging