File python-whiteboard.spec of Package python-whiteboard

#
# spec file for package python-whiteboard
#
# Copyright (c) 2025SUSE LLC
#
# 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:           python-whiteboard
Version:        x
Release:        0
Summary:        Build and operate a low-cost electronic whiteboard
License:        GPL-2.0-only
Group:          Amusements/Teaching/Other
URL:            https://github.com/pnegre/python-whiteboard
Source:         %{name}-%{version}.tar.gz
Patch0:         python-whiteboard-fix-qt.patch
BuildRequires:  fdupes
BuildRequires:  libqt5-linguist
Requires:       python-numpy
Requires:       python-pybluez
Requires:       python-qt5
BuildArch:      noarch

%description
With this software you can build and operate a low-cost electronic
whiteboard. You only need a wiimote, an IR pen and a great OS: gnu/linux.

%prep
%setup -q
%patch 0

%build
%make_build all

%install
%make_install

chmod 755 %{buildroot}%{_datadir}/python-whiteboard/pywhiteboard.py
chmod 755 %{buildroot}%{_datadir}/python-whiteboard/wiimote.py

%fdupes -s %{buildroot}

%files
%doc README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/pywb_pixmap.xpm
%{_datadir}/applications/%{name}.desktop
%{_datadir}/qt5/translations/
%{_datadir}/qt5/

%changelog
openSUSE Build Service is sponsored by