rebuilt with squeak-vm 4.10.2.2614 [release 1.4.0.7-4mamba;Wed Dec 11 2024]

This commit is contained in:
Silvan Calarco 2024-12-13 10:24:02 +01:00
parent 91d94bc661
commit 3f5703502e
6 changed files with 143 additions and 33 deletions

2
50-wedo.rules Normal file
View File

@ -0,0 +1,2 @@
# Lego WeDo
ATTRS{idVendor}=="0694", ATTRS{idProduct}=="0003", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"

View File

@ -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.

View File

@ -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;

View File

@ -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=""

27
scratch.appdata.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<id type="desktop">scratch.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPLv2 and ASL 2.0 and MIT and CC-BY-SA</project_license>
<name>Scratch</name>
<summary>Programming language learning environment for stories, games, music and art</summary>
<description>
<p>
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.
</p><p>
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.
</p><p>
This package brings in all of the various subpackages which comprise the
full Scratch distribution.
</p>
</description>
<url type="homepage">http://scratch.mit.edu/</url>
<screenshots>
<screenshot type="default">https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Scratch_1.4_Initial_Screen.png/800px-Scratch_1.4_Initial_Screen.png</screenshot>
</screenshots>
</application>

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.4.0.7-4mamba
- rebuilt with squeak-vm 4.10.2.2614
* Thu Nov 22 2012 openmamba WebBuild System <webbuild@openmamba.org> 1.4.0.7-3mamba
- fixed permissions and specfile