File sugar-viewslides.spec of Package sugar-viewslides
#
# spec file for package sugar-viewslides
#
# 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-viewslides
Version: 14
%if 0%{?suse_version}
Release: 1
%else
Release: 1%{?dist}
%endif
Summary: Slide is useful for picture books, slideshows, comic books
License: GPL-2.0+
Url: http://wiki.laptop.org/go/View_Slides
Group: Sugar/Activities
Source0: http://download.sugarlabs.org/activities/4039/view_slides-%{version}.xo
Source1: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: sugar-activities
BuildRequires: python
BuildRequires: sugar-toolkit
Requires: python-pygame
Requires: sugar
%description
You can create a slideshow for View Slides by collecting image files in any
combination of TIFF, GIF, PNG, JPG, and BMP formats. Name them so they are in
sequence when the names are sorted alphanumerically. Then store them in a Zip
archive. When viewed these images will be displayed to best fit on the screen
in its current orientation. If you rotate the screen orientation the imaged
will be resized to fit.
%prep
%setup -q -n ViewSlides.activity
%build
python ./setup.py build
%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang org.laptop.ViewSlidesActivity
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files -f org.laptop.ViewSlidesActivity.lang
%defattr(-,root,root,-)
%{sugaractivitydir}/ViewSlides.activity/
%changelog