File python-smbios.spec of Package dmiget

#
# spec file for package python-smbios
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (C) <2008> <Banco do Brasil S.A.>
#
# 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/

#ExclusiveArch:  do_not_build

%define skip_python2 1

Summary:		Python module to get data from smbios
Name:			python-smbios
Version:		1.0
Release:		0
License:		GPL-2.0
Source:			dmiget-%{version}.tar.xz
URL:			https://github.com/PerryWerneck/dmiget
Group:			Development/Libraries/Python

BuildRoot:		/var/tmp/%{name}-%{version}


BuildRequires:	gcc-c++
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	%{python_module devel}

# https://en.opensuse.org/openSUSE:Packaging_Python
BuildRequires:	python-rpm-macros
BuildRequires:	%{python_module packaging}
BuildRequires:	%{python_module pip}
BuildRequires:	%{python_module wheel}
BuildRequires:	%{python_module meson-python}
BuildRequires:	fdupes

%python_subpackages

%description
This is an extension allowing smbios access for python applications.

%prep
%autosetup -n dmiget-%{version}

%build
%pyproject_wheel

%install
%pyproject_install

%files %{python_files}

# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
%doc README.md
%license LICENSE

%{python_sitearch}/*.so
%{python_sitearch}/*-info

%changelog
openSUSE Build Service is sponsored by