File python-whiteboard.spec of Package python-whiteboard
#
# spec file for package
#
# Copyright (c) 2012 SUSE LINUX Products 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: 1.0.git.1352761517
Release: 0.2
License: GPL-2.0
Summary: Build and operate a low-cost electronic whiteboard
Url: https://github.com/pnegre/python-whiteboard/downloads
Group: Amusements/Teaching/Other
Source: %{name}-%{version}.tar.gz
Patch1: remove_sheebang.diff
%if 0%{?suse_version}
BuildRequires: libqt4-devel python-qt4-devel fdupes
Requires: python-xlib
PreReq: python-pybluez python-qt4 python-numpy python
%endif
%if 0%{?fedora}
BuildRequires: qt-devel pyqt4-devel fdupes
Requires: python-xlib pybluez python-qt4 numpy python
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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.
Authors:
--------
pnegre
%prep
%setup -q
%patch1 -p1
%build
%if 0%{?suse_version}
make all
%else
lrelease-qt4 trans/*.ts
%endif
%install
make install DESTDIR=%{buildroot}
%if 0%{?suse_version}
%fdupes -s %{buildroot}
%endif
%__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
#%%post
#%%postun
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/qt4/translations/
%{_datadir}/applications/%%{name}.desktop
%{_datadir}/pixmaps/pywb_pixmap.xpm
%changelog