File sugar-readetexts-activity.spec of Package sugar-readetexts-activity
#
# spec file for package sugar-readetexts-activity
#
# 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/
#
%define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
Name: sugar-readetexts-activity
Version: 26
%if 0%{?suse_version}
Release: 2
%else
Release: 1.20090309%{?dist}
%endif
License: GPL-2.0+
Summary: Gutenberg ETexts reader for Sugar
Url: http://sugarlabs.org/
Group: Sugar/Activities
Source: http://download.sugarlabs.org/activities/4035/read_etexts-%{version}.xo
Source1: %{name}-rpmlintrc
Requires: gstreamer-0_10-plugins-espeak
Requires: python
Requires: sugar
Requires: sugar-toolkit >= 0.83.7
BuildRequires: fdupes
BuildRequires: gettext-runtime
BuildRequires: python-devel
BuildRequires: sugar
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Read Etexts is an alternative to the regular Read Activity which can read
Project Gutenberg plain text files, something Read currently cannot do. I see
it as a stopgap until Read itself can use this format. Plain text files are by
far the most popular Gutenberg format, and this Activity will allow the user
to read tens of thousands of free books in many languages.
%prep
%setup -q -n ReadETexts.activity
%build
python \
setup.py \
build
%install
python \
setup.py \
install \
--prefix=%{buildroot}/%{_prefix}
%find_lang org.laptop.sugar.ReadEtextsActivity
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files -f org.laptop.sugar.ReadEtextsActivity.lang
%defattr(-,root,root,-)
%{_datadir}/sugar/activities/*
%doc *.txt
%changelog