File sugar-help.spec of Package sugar-help
#
# spec file for package sugar-help
#
# Copyright (c) 2013 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: sugar-help
Version: 16
%if 0%{?suse_version}
Release: 1
%else
Release: 2%{?dist}
%endif
Summary: Help and Dokumentation for Sugar
License: GPL-2.0+
Url: http://wiki.laptop.org/go/Help_(activity)
Group: Sugar/Activities
Source0: http://download.sugarlabs.org/activities/4051/help-%{version}.xo
Source1: sugar-help-checkout.sh
Source2: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: python
BuildRequires: sugar-toolkit-gtk3
Requires: sugar
Requires: typelib(WebKit) >= 3.0
%description
The Help activity provides a quick interface to help documentation on the XO.
It currently launches a browser and displays html documents describing how
to use the XO and the Sugar interface.
%prep
%setup -q -n Help.activity
chmod -x {NEWS,LICENSE,README,TODO,help/*.html}
chmod -x {activity/activity.info,activity/activity-help.svg,helpactivity.py}
%build
python ./setup.py build
%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc NEWS LICENSE README TODO
%{_datadir}/sugar/activities/Help.activity/
%changelog