File python-whiteboard.spec of Package python-whiteboard
#
# spec file for package python-whiteboard
#
# Copyright (c) 2018 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 http://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
BuildRequires: fdupes
BuildRequires: libqt4-linguist
Requires: python-future
Requires: python-numpy
Requires: python-pybluez
Requires: python-qt5
Requires: python-xlib
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
%build
make all %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_datadir}/qt5/translations/
ln trans/*.qm %{buildroot}%{_datadir}/qt5/translations/
rm -rf %{buildroot}%{_datadir}/applications/%{name}.desktop
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
GenericName=%{name}
Exec=%{name}
Icon=pywb_pixmap.xpm
Terminal=0
Categories=KDE;Education;Engineering;
Type=Application
X-SuSE-translate=false
EOF
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}/qt4/translations/
%{_datadir}/qt5/
%{_datadir}/qt5/translations/
%{_datadir}/applications/%%{name}.desktop
%{_datadir}/pixmaps/pywb_pixmap.xpm
%changelog