File python3-glMAC.spec of Package python3-glMAC
#
# spec file for package python3-glMAC
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, 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 https://bugs.opensuse.org/
#
Name: python3-glMAC
Version: X
Release: 0
Summary: Retrieves vendor information from MAC address
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://git.gallochri.com/gallochri/glMAC
Source: https://files.pythonhosted.org/packages/source/g/glMAC/glMAC-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python3-devel
BuildRequires: python3-qt5
BuildRequires: python3-requests
BuildRequires: python3-rpm-macros
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files
Requires: python3-qt5
Requires: python3-requests
BuildArch: noarch
%description
Utility to retrives vendor name from MAC address using api from macvendors.com
%prep
%setup -q -n glMAC-%{version}
%build
%python3_build
%install
%python3_install
mkdir -p -m0755 %{buildroot}%{_datadir}/{pixmaps,appdata}
install -p -m0644 glMAC/images/logo.png %{buildroot}%{_datadir}/pixmaps/glMAC.png
desktop-file-install --dir=%{buildroot}%{_datadir}/applications glMAC/resources/glMAC.desktop
install -p -m0644 glMAC/resources/glMAC.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/glMAC.desktop
%if 0%{?suse_version} < 1330
%post
%desktop_database_post
%endif
%if 0%{?suse_version} < 1330
%postun
%desktop_database_postun
%endif
%files
%doc README.md
%{_bindir}/glMAC
%{_datadir}/applications/glMAC.desktop
%{_datadir}/pixmaps/glMAC.png
%{_datadir}/appdata/%{name}.appdata.xml
%{python3_sitelib}/*
%changelog