File sugar-clock.spec of Package sugar-clock
#
# spec file for package sugar-clock
#
# 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.
%define date 20090207
Name: sugar-clock
Summary: Clock activity for Sugar
Version: 9
%if 0%{?suse_version}
Release: 1
%else
Release: 0.3.%{date}%{?dist}
%endif
Group: Sugar/Activities
License: GPLv3+
Url: http://wiki.laptop.org/go/Clock
Source0: http://download.sugarlabs.org/activities/4191/clock-%{version}.xo
Source1: sugar-clock-checkout.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: python
BuildRequires: sugar-toolkit
Requires: sugar
%description
This activity displays time in analog, digital, and "natural" forms.
The "natural" form will be an image of a sun or moon arcing across
the sky, rising and setting as the day progresses. This is more than
a simple clock; the user will be able to grab any element and readjust
it, which will update each of the other elements. In this manner,
hopefully the children can explore and understand different methods of
telling time.
%prep
%setup -q -n Clock.activity
sed -i 's/\r$//' {icons/*,activity/activity-clock.svg}
chmod -x {icons/*,activity/activity-clock.svg}
chmod +x {test_timewriter/*.py,speaker.py,timewriter.py,pgettext.py}
%build
python ./setup.py build
%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang tv.alterna.Clock
%clean
rm -rf %{buildroot}
%files -f tv.alterna.Clock.lang
%defattr(-,root,root,-)
%doc NEWS README
%{sugaractivitydir}/Clock.activity/
%changelog