From 3f5703502ed92ff6b50b405691f58325b579ee79 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 13 Dec 2024 10:24:02 +0100 Subject: [PATCH] rebuilt with squeak-vm 4.10.2.2614 [release 1.4.0.7-4mamba;Wed Dec 11 2024] --- 50-wedo.rules | 2 + README.md | 1 - scratch-1.4.0.7-desktopfile-semicolon.patch | 8 ++ scratch-1.4.0.7-use-system-squeak.patch | 18 +++ scratch.appdata.xml | 27 +++++ scratch.spec | 120 ++++++++++++++------ 6 files changed, 143 insertions(+), 33 deletions(-) create mode 100644 50-wedo.rules create mode 100644 scratch-1.4.0.7-desktopfile-semicolon.patch create mode 100644 scratch-1.4.0.7-use-system-squeak.patch create mode 100644 scratch.appdata.xml diff --git a/50-wedo.rules b/50-wedo.rules new file mode 100644 index 0000000..90c9286 --- /dev/null +++ b/50-wedo.rules @@ -0,0 +1,2 @@ +# Lego WeDo +ATTRS{idVendor}=="0694", ATTRS{idProduct}=="0003", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev" diff --git a/README.md b/README.md index 90e85c3..fe19425 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,3 @@ Scratch is a programming language that makes it easy to create your own interactive stories, animations, games, music, and art -- and share your creations on the web. As young people create and share Scratch projects, they learn important mathematical and computational ideas, while also learning to think creatively, reason systematically, and work collaboratively. - diff --git a/scratch-1.4.0.7-desktopfile-semicolon.patch b/scratch-1.4.0.7-desktopfile-semicolon.patch new file mode 100644 index 0000000..b013193 --- /dev/null +++ b/scratch-1.4.0.7-desktopfile-semicolon.patch @@ -0,0 +1,8 @@ +--- scratch-1.4.0.6.src/src/scratch.desktop-semicolon 2012-09-10 13:04:14.075940196 -0400 ++++ scratch-1.4.0.6.src/src/scratch.desktop 2012-09-10 13:04:18.345846641 -0400 +@@ -6,4 +6,4 @@ + Type=Application + Icon=scratch + Categories=Development; +-MimeType=application/x-scratch-project ++MimeType=application/x-scratch-project; diff --git a/scratch-1.4.0.7-use-system-squeak.patch b/scratch-1.4.0.7-use-system-squeak.patch new file mode 100644 index 0000000..96fa801 --- /dev/null +++ b/scratch-1.4.0.7-use-system-squeak.patch @@ -0,0 +1,18 @@ +diff -ur scratch-1.4.0.6.src.orig/src/scratch scratch-1.4.0.6.src/src/scratch +--- scratch-1.4.0.6.src.orig/src/scratch 2011-07-01 18:21:32.000000000 -0400 ++++ scratch-1.4.0.6.src/src/scratch 2012-09-10 09:39:20.555278005 -0400 +@@ -4,11 +4,9 @@ + # Original Author: Bert Freudenberg + # Adapted by: Miriam Ruiz + +-VM_VERSION=`find /usr/lib/squeak/ -name "squeakvm" -type f|cut -f5 -d"/"` +-SQ_DIR=/usr/lib/squeak/$VM_VERSION +-VM="$SQ_DIR/squeakvm" +-VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/Plugins/:$SQ_DIR/" +-IMAGE="/usr/lib/scratch/Scratch.image" ++VM="/usr/bin/squeak" ++VMOPTIONS="-encoding UTF-8" ++IMAGE="/usr/share/scratch/Scratch.image" + IMOPTIONS="" + DOCUMENT="" + WRAPPER="" diff --git a/scratch.appdata.xml b/scratch.appdata.xml new file mode 100644 index 0000000..a8b16d3 --- /dev/null +++ b/scratch.appdata.xml @@ -0,0 +1,27 @@ + + + scratch.desktop + CC0-1.0 + GPLv2 and ASL 2.0 and MIT and CC-BY-SA + Scratch + Programming language learning environment for stories, games, music and art + +

+ Scratch is a programming language that makes it easy to create your own +interactive stories, animations, games, music, and art -- and share your +creations on the web. +

+As young people create and share Scratch projects, they learn important +mathematical and computational ideas, while also learning to think +creatively, reason systematically, and work collaboratively. +

+This package brings in all of the various subpackages which comprise the +full Scratch distribution. +

+
+ http://scratch.mit.edu/ + + https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Scratch_1.4_Initial_Screen.png/800px-Scratch_1.4_Initial_Screen.png + +
+ diff --git a/scratch.spec b/scratch.spec index fe63626..734a964 100644 --- a/scratch.spec +++ b/scratch.spec @@ -1,56 +1,102 @@ -### AUTOUPDATE-OFF: 9 Name: scratch Version: 1.4.0.7 -Release: 3mamba +Release: 4mamba Summary: A programming language aimed to educational pourposes Group: Graphical Desktop/Applications/Educational Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://info.scratch.mit.edu/ +URL: https://scratch.mit.edu/ Source: http://download.scratch.mit.edu/scratch-%{version}.src.tar.gz +Source1: scratch.appdata.xml +Source2: 50-wedo.rules +Patch0: scratch-1.4.0.7-desktopfile-semicolon.patch +Patch1: scratch-1.4.0.7-use-system-squeak.patch License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: glibc-devel -BuildRequires: libcairo-devel -BuildRequires: libglib-devel -BuildRequires: libpango-devel ## AUTOBUILDREQ-END -Requires: Squeak -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: squeak-vm %description Scratch is a programming language that makes it easy to create your own interactive stories, animations, games, music, and art -- and share your creations on the web. As young people create and share Scratch projects, they learn important mathematical and computational ideas, while also learning to think creatively, reason systematically, and work collaboratively. -%debug_package +#% debug_package %prep %setup -q -n %{name}-%{version}.src +# From Fedora +%patch 0 -p1 -b .desktopfile-semicolon +%patch 1 -p1 -b .use-system-squeak %build -%make +# since the Squeak VM version 4.10.2.2593 and greater includes all the +# plugins previously included as part of Scratch, we don't need to build +# anything here. %install -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -install -D src/scratch %{buildroot}%{_bindir}/scratch -install -D Scratch.image %{buildroot}%{_libdir}/scratch/Scratch.image -mkdir -p %{buildroot}/usr/share/scratch -cp -dr --no-preserve=ownership Plugins %{buildroot}%{_libdir}/scratch/Plugins -cp -dr --no-preserve=ownership Help %{buildroot}/usr/share/scratch/Help -cp -dr --no-preserve=ownership locale %{buildroot}/usr/share/scratch/locale -cp -dr --no-preserve=ownership Media %{buildroot}/usr/share/scratch/Media -cp -dr --no-preserve=ownership Projects %{buildroot}/usr/share/scratch/Projects -chmod 755 %{buildroot}/usr/share/scratch/Help/en -chmod 755 %{buildroot}/usr/share/scratch/Help/en/images -chmod 755 %{buildroot}/usr/share/scratch/Media/* -chmod 755 %{buildroot}/usr/share/scratch/Media/Backgrounds/Sports -chmod 755 %{buildroot}/usr/share/scratch/Media/Backgrounds/Indoors -chmod 755 %{buildroot}/usr/share/scratch/Media/Backgrounds/Nature -chmod 755 %{buildroot}/usr/share/scratch/Media/Backgrounds/Outdoors -chmod 755 %{buildroot}/usr/share/scratch/Media/Costumes/* -chmod 755 %{buildroot}/usr/share/scratch/Media/Sounds/* -chmod 755 %{buildroot}/usr/share/scratch/Projects/* +install -m 755 -d %{buildroot}%{_datadir}/%{name} +install -m 644 Scratch.image %{buildroot}%{_datadir}/%{name}/ +install -m 644 Scratch.ini %{buildroot}%{_datadir}/%{name}/ + +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Help/en/images +install -m 644 Help/en/*.pdf %{buildroot}%{_datadir}/%{name}/Help/en/ +install -m 644 Help/en/*.html %{buildroot}%{_datadir}/%{name}/Help/en/ +install -m 644 Help/en/*.gif %{buildroot}%{_datadir}/%{name}/Help/en/ +install -m 644 Help/en/images/*.gif %{buildroot}%{_datadir}/%{name}/Help/en/images/ + +install -m 755 -d %{buildroot}%{_datadir}/%{name}/locale +install -m 644 locale/* %{buildroot}%{_datadir}/%{name}/locale/ + +cp -R Media %{buildroot}%{_datadir}/%{name}/ + +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Animation +install -m 644 Projects/Animation/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Animation/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Games +install -m 644 Projects/Games/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Games/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Greetings +install -m 644 Projects/Greetings/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Greetings/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Interactive\ Art +install -m 644 Projects/Interactive\ Art/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Interactive\ Art/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Music\ and\ Dance +install -m 644 Projects/Music\ and\ Dance/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Music\ and\ Dance/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Names +install -m 644 Projects/Names/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Names/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Sensors\ and\ Motors +install -m 644 Projects/Sensors\ and\ Motors/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Sensors\ and\ Motors/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Simulations +install -m 644 Projects/Simulations/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Simulations/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Speak\ Up +install -m 644 Projects/Speak\ Up/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Speak\ Up/ +install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Stories +install -m 644 Projects/Stories/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Stories/ + +install -m 755 -d %{buildroot}%{_bindir}/ +install -m 755 src/scratch %{buildroot}%{_bindir}/ + +install -m 755 -d %{buildroot}%{_mandir}/man1 +install -m 644 src/man/scratch.1.gz %{buildroot}%{_mandir}/man1/ + +install -m 755 -d %{buildroot}%{_datadir}/applications +desktop-file-install --dir=%{buildroot}%{_datadir}/applications src/%{name}.desktop + +install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/48x48/apps +install -m 644 src/icons/48x48/scratch.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/ +install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/128x128/apps +install -m 644 src/icons/128x128/scratch.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/ +install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes +install -m 644 src/icons/48x48/gnome-mime-application-x-scratch-project.png %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/ +install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes +install -m 644 src/icons/128x128/gnome-mime-application-x-scratch-project.png %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes/ + +install -m 755 -d %{buildroot}%{_datadir}/mime/packages +install -m 644 src/%{name}.xml %{buildroot}%{_datadir}/mime/packages/ + +install -m 755 -d %{buildroot}%{_udevrulesdir} +install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/ + +mkdir -p %{buildroot}%{_datadir}/appdata +cp -a %{SOURCE1} %{buildroot}%{_datadir}/appdata/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -58,14 +104,24 @@ chmod 755 %{buildroot}/usr/share/scratch/Projects/* %files %defattr(-,root,root) %{_bindir}/scratch -%{_libdir}/scratch/Scratch.image -%{_libdir}/scratch/Plugins/* +%{_datadir}/applications/scratch.desktop +%{_datadir}/appdata/scratch.appdata.xml +%{_datadir}/mime/packages/scratch.xml +%{_udevrulesdir}/50-wedo.rules +%{_datadir}/scratch/Scratch.image +%{_datadir}/scratch/Scratch.ini %{_datadir}/scratch/Help/* %{_datadir}/scratch/locale/* %{_datadir}/scratch/Media/* %{_datadir}/scratch/Projects/* +%{_datadir}/icons/hicolor/*/apps/scratch.png +%{_datadir}/icons/hicolor/*/mimetypes/gnome-mime-application-x-scratch-project.png +%{_mandir}/man1/scratch.1* %changelog +* Wed Dec 11 2024 Silvan Calarco 1.4.0.7-4mamba +- rebuilt with squeak-vm 4.10.2.2614 + * Thu Nov 22 2012 openmamba WebBuild System 1.4.0.7-3mamba - fixed permissions and specfile