628abb4
Name:           sugar-view-slides
7d5026a
Version:        15
7d5026a
Release:        1%{?dist}
7d5026a
Summary:        Image series viewer for Sugar
628abb4
628abb4
License:        GPLv3+
7d5026a
URL:            https://wiki.sugarlabs.org/go/Activities/View_Slides
628abb4
Source0:        http://download.sugarlabs.org/sources/honey/ViewSlides/ViewSlides-%{version}.tar.bz2
628abb4
BuildArch:      noarch
628abb4
7d5026a
BuildRequires:  python3 python3-devel
7d5026a
BuildRequires:  sugar-toolkit-gtk3
628abb4
BuildRequires:  gettext
628abb4
7d5026a
Requires:       sugar >= 0.116
7d5026a
Requires:       python3-pygame
628abb4
628abb4
628abb4
%description
628abb4
The View Slides activity is meant to allow the XO laptop to read
628abb4
view the contents of a Zip file containing images named sequentially.
628abb4
Project Gutenberg has a few books as raw scanned images, and this can
628abb4
be a useful format for picture books, comic books, magazine articles,
628abb4
photo essays, etc.
628abb4
628abb4
The interface to View Slides is similar to the core Read activity,
628abb4
which should not be surprising as the toolbar code was adapted from
628abb4
Read's toolbar. You can use the up and down arrows or the game
628abb4
controller to move from page to page.
628abb4
628abb4
628abb4
%prep
7d5026a
%autosetup -n ViewSlides-%{version}
628abb4
7d5026a
sed -i 's/python/python3/' *.py
628abb4
628abb4
%build
7d5026a
python3 setup.py build
628abb4
628abb4
%install
7d5026a
python3 setup.py install --prefix=%{buildroot}/%{_prefix}
7d5026a
rm %{buildroot}%{_prefix}/share/applications/*.desktop || true
628abb4
7d5026a
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3
7d5026a
%py_byte_compile %{python3} %{buildroot}%{_datadir}/{sugaractivitydir}/ViewSlides.activity/
7d5026a
7d5026a
%find_lang org.laptop.ViewSlidesActivity
628abb4
628abb4
%files -f org.laptop.ViewSlidesActivity.lang
7d5026a
%doc README.md
628abb4
%{sugaractivitydir}/ViewSlides.activity/
628abb4
628abb4
628abb4
%changelog
7d5026a
* Sat Aug 07 2021 Ibiam Chihurumnaya <ibiamchihurumnaya@gmail.com> - 15-1
7d5026a
- Release version 15
7d5026a
628abb4
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8-26
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
628abb4
628abb4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8-25
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
628abb4
628abb4
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8-24
628abb4
- Second attempt - Rebuilt for
628abb4
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
628abb4
628abb4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8-23
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
628abb4
628abb4
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8-22
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
628abb4
628abb4
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8-21
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
628abb4
628abb4
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8-20
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
628abb4
628abb4
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8-19
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
628abb4
628abb4
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 8-18
628abb4
- Update Python 2 dependency declarations to new packaging standards
628abb4
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
628abb4
628abb4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8-17
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
628abb4
628abb4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8-16
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
628abb4
628abb4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8-15
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
628abb4
628abb4
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8-14
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
628abb4
628abb4
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-13
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
628abb4
628abb4
* Fri Mar  6 2015 Peter Robinson <pbrobinson@fedoraproject.org> 8-12
628abb4
- Add Requires sugar-toolkit
628abb4
628abb4
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-11
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
628abb4
628abb4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-10
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
628abb4
628abb4
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-9
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
628abb4
628abb4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-8
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
628abb4
628abb4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-7
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
628abb4
628abb4
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-6
628abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
628abb4
628abb4
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 8-5
628abb4
- recompiling .py files against Python 2.7 (rhbz#623390)
628abb4
628abb4
* Wed Mar 17 2010 Fabian Affolter <fabian@bernewireless.net> - 8-4
628abb4
- Added gettext as a BR
628abb4
628abb4
* Mon Mar 15 2010 Fabian Affolter <fabian@bernewireless.net> - 8-3
628abb4
- Minor layout changes
628abb4
628abb4
* Sat Aug 01 2009 Fabian Affolter <fabian@bernewireless.net> - 8-2
628abb4
- Added pygame as a requirement (as mentioned in #508441) 
628abb4
628abb4
* Wed Jun 24 2009 Fabian Affolter <fabian@bernewireless.net> - 8-1
628abb4
- Updated to new upstream version 7
628abb4
- Added translation support
628abb4
- Removed all the vcs checkout stuff 
628abb4
628abb4
* Thu Jan 29 2009 Fabian Affolter <fabian@bernewireless.net> - 0-1.20090129
628abb4
- Initial package for Fedora