File sugar-moon.spec of Package sugar-moon

#
# spec file for package sugar-moon
#
# 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-moon
Version:        16
%if 0%{?suse_version}
Release:        1
%else
Release:        1%{?dist}
%endif

Summary:        Moon phases activity for sugar

License:        GPL-2.0+
Url:            http://wiki.laptop.org/go/Moon
Group:          Sugar/Activities
Source0:        http://download.sugarlabs.org/sources/honey/Moon/moon-%{version}.xo
Source1:        %{name}-rpmlintrc

BuildRequires:  fdupes
BuildRequires:  python
BuildRequires:  sugar-toolkit
Requires:       python-json
Requires:       sugar
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Moon is a simple Lunar phase activity for the XO.

%prep
%setup -q -n Moon.activity

%build
python ./setup.py build

%install
mkdir -p %{buildroot}%{sugaractivitydir}
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang com.garycmartin.Moon
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files -f com.garycmartin.Moon.lang
%defattr(-,root,root,-)
%doc COPYING
%doc AUTHORS
%{sugaractivitydir}/Moon.activity/

%changelog
openSUSE Build Service is sponsored by