File fetch-ethercodes.spec of Package fetch-ethercodes

#
# spec file for package fetch-ethercodes
#
# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2018 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           fetch-ethercodes
Version:        0.5
Release:        0
License:        MIT
Summary:        Fetch and generate ethercodes data for arpwatch
Group:          Productivity/Networking/Diagnostic
URL:		https://github.com/frispete/%{name}
Source:         %{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python3 >= 3.3
BuildRequires:  python3-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch


%description
Fetch current IEEE MA-L Assignments file (oui.csv) from IEEE.org,
and generate ethercodes.dat for arpwatch consumption.

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc README.md LICENSE.txt
%{_bindir}/fetch-ethercodes
%{_bindir}/query-ethercodes
%{python3_sitelib}/

%changelog