%global __os_install_post %{nil} %if 0%{?fedora} >= 25 %global activity TurtleBlocks.activity %else %global activity TurtleArt.activity %endif %global commit 21e0b02f0bc3ed9e59d133e075787e2fa796c64d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: icaro Version: 1.0.8 Release: 8%{?dist} Summary: Robotic Educational Project # Icaro is licensed under GPLv3 # Pinguino and puf is licensend under LGPLv2 License: GPLv3 and LGPLv2 URL: http://roboticaro.org #Source0: https://github.com/valentinbasel/icaro/archive/%{commit}/%{name}-%{commit}.tar.gz Source0: https://github.com/valentinbasel/icaro/archive/%{commit}.tar.gz # Add README in english Source1: README.ENG BuildArch: noarch ExclusiveArch: %{ix86} %{arm} x86_64 noarch BuildRequires: python2-devel BuildRequires: desktop-file-utils BuildRequires: sugar-toolkit Requires: python2-cairo Requires: pygtk2 #Requires: pywebkitgtk no compatibility Fedora 26+ Requires: pygtksourceview Requires: sdcc Requires: gputils Requires: python2-pyusb Requires: python2-tools Requires: sugar-turtleart Requires: python2-pyserial Requires: sugar #Requires: hicolor-icon-themei #Requires: gnome-python2-rsvg Requires: vte Requires: python2-matplotlib #Requires: gnome-python2-rsvg %description An educational robotic software aimed to develop robotic and programming fundamentals. %prep %autosetup -n %{name}-%{commit} # sugar-turtleart change paths #%if 0%{?fedora} >= 18 #sed -i -e 's/TurtleArt.activity/TurtleBlocks.activity/' config.dat #%endif # copy README.ENG file to sources as well. #cp -a %{SOURCE1} . #empty files #echo "# Just a comment" > pic16/np05/tmp/stdout # fix spurious permissions in this files #chmod -v 0644 README.md COPYING AUTHORS COPYING-LGPLv2 chmod -v 0644 COPYING AUTHORS COPYING-LGPLv2 %build #Nothing to build %install # ------------- Apicaro ------------------------------------- %{__python2} apicaro/setup.py install --root %{buildroot} # ------------- Icaro --------------------------------------- mkdir -p %{buildroot}%{_datadir}/%{name}/ cp -p -a {hardware,imagenes,locale,paletas,clemente} %{buildroot}%{_datadir}/%{name}/ install -p -m 0644 {*.py,version} %{buildroot}%{_datadir}/%{name}/ # Remove po and pot files find %{buildroot} -name "*.po" | xargs rm -f find %{buildroot} -name "*.pot" | xargs rm -f find %{buildroot} -name "#template.pde#" | xargs rm -f %find_lang %{name} # Tortucaro plugin for sugar mkdir -p %{buildroot}%{sugaractivitydir}/%{activity}/plugins/icaro/ cp -a plugintortucaro/icaro/* %{buildroot}%{sugaractivitydir}/%{activity}/plugins/icaro/ mkdir -p %{buildroot}%{sugaractivitydir}/%{activity}/plugins/icaro/icons cp -a plugintortucaro/icaro/icons/* %{buildroot}%{sugaractivitydir}/%{activity}/plugins/icaro/icons #mkdir -p %{buildroot}%{sugaractivitydir}/%{activity}/plugins/icaro/libreria #cp -a plugintortucaro/icaro/libreria/*%{buildroot}%{sugaractivitydir}/%{activity}/plugins/icaro/libreria mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/ install -p -m 0644 udev/* %{buildroot}%{_sysconfdir}/udev/rules.d/ mkdir -p %{buildroot}%{_bindir} #create executable of program cat > icaro < - 1.0.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.0.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 15 2018 Iryna Shcherbina - 1.0.8-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jan 11 2018 Igor Gnatenko - 1.0.8-5 - Remove obsolete scriptlets * Wed Jul 26 2017 Fedora Release Engineering - 1.0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Apr 13 2017 Omar Berroteran - 1.0.8-3 - Changes to Apicaro to improve stability on BootLoader v4 de Pingüino. - Set the BootLoader v4 to default. * Thu Apr 13 2017 Omar Berroteran - 1.0.8 - Bump to the new upstream version (April 10, 2017) - Remove pyWebKit dependence because fedora 26 compatibility - most bugfixes, improbe performance - new firmwares and boot options - Icaro Plugins changes * Sat Nov 12 2016 Omar Berroteran - 1.0.7 - Bump to the new upstream version * Wed Sep 28 2016 Omar Berroteran - 1.0.6 - Bump to the new upstream version - Firmware Tortucaro set pause time to 10 - se resetea el pic. ahora tiene una espera de 20 seg donde prende y apaga el led1 y con eso estabiliza la comunicación entre el pic y la pc - * Mon Sep 26 2016 Dominik Mierzejewski - 1.0.5-3 - rebuilt for matplotlib-2.0.0 * Tue Aug 23 2016 Omar Berroteran -1.0.5-2 + Requires: python-matplotlib * Wed Jul 20 2016 Omar Berroteran -1.0.4-4 - Bump to the new upstream version - changes on Apicaro * Tue Jul 19 2016 Fedora Release Engineering - 1.0.4-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jan 10 2015 Eduardo Echeverria - 1.0.4-1 - Bump to the new upstream version * Sat Jun 07 2014 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Nov 08 2013 Eduardo Echeverria - 1.0.3-1 - Bump to the new upstream version * Sat Aug 03 2013 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Jun 8 2013 Eduardo Echeverria - 1.0.2-2 - Fix issues with paths * Sat Jun 8 2013 Eduardo Echeverria - 1.0.2-1 - Updated to the new upstream version 1.0.2 - Switch from pygame to pycairo * Sat Mar 30 2013 Eduardo Echeverria - 1.0.1-1 - Updated to the new upstream version * Sat Mar 09 2013 Eduardo Echeverria - 1.0-3 - Added license LGPLv2 for the firmware - Add missing requires - Improve find_lang * Wed Dec 12 2012 Eduardo Echeverria - 1.0-2 - Add support to languages - Add scriplets for icons - Create executables for icaro - Fix permissions - Clean spec * Fri Sep 28 2012 Yader Velasquez - 1.0-1 - First Initial Packaging