941a48e
Name:           scratch
941a48e
Version:        1.4.0.7
fa3b5b4
Release:        23%{?dist}
941a48e
Summary:        Programming language learning environment for stories, games, music and art
941a48e
941a48e
License:        GPLv2 and ASL 2.0 and MIT and CC-BY-SA
941a48e
URL:            http://scratch.mit.edu
941a48e
Source0:        http://download.scratch.mit.edu/%{name}-%{version}.src.tar.gz
941a48e
# The following source file is not used in the build process, but together
941a48e
# with Scratch.image and src/Scratch.changes comprises the preferred means
941a48e
# of modification -- see the included README. This file is under the MIT
941a48e
# and Apache 2.0 licenses.
941a48e
Source1:        http://ftp.squeak.org/2.0/SqueakV2.sources.gz
cb710e7
Source2:        50-wedo.rules
9399cb9
Source3:		scratch.appdata.xml
941a48e
Patch0:         scratch-1.4.0.7-use-fedora-squeak.patch
941a48e
Patch1:         scratch-1.4.0.6-desktopfile-semicolon.patch
941a48e
941a48e
BuildArch:	noarch
941a48e
941a48e
BuildRequires: desktop-file-utils
70b091a
BuildRequires: systemd
941a48e
941a48e
Requires:       scratch-image
941a48e
Requires:       scratch-media, scratch-projects
941a48e
Requires:       scratch-help, scratch-i18n
941a48e
941a48e
941a48e
%description
941a48e
Scratch is a programming language that makes it easy to create your own
941a48e
interactive stories, animations, games, music, and art -- and share your
941a48e
creations on the web.
941a48e
941a48e
As young people create and share Scratch projects, they learn important
941a48e
mathematical and computational ideas, while also learning to think
941a48e
creatively, reason systematically, and work collaboratively.
941a48e
941a48e
This package brings in all of the various subpackages which comprise the
941a48e
full Scratch distribution.
941a48e
941a48e
941a48e
%package image
941a48e
Summary: The Scratch programming environment
941a48e
License: GPLv2 and ASL 2.0 and MIT
941a48e
Requires: squeak-vm >= 4.10.2.2593
941a48e
BuildArch: noarch
941a48e
941a48e
%description image
941a48e
Scratch is a programming language that makes it easy to create your own
941a48e
interactive stories, animations, games, music, and art -- and share your
941a48e
creations on the web.
941a48e
941a48e
This package contains the core Scratch programming environment.
941a48e
941a48e
941a48e
%package help
941a48e
Summary: Documentation for the Scratch programming language
941a48e
License: CC-BY-SA
941a48e
BuildArch: noarch
941a48e
941a48e
%description help
941a48e
This package contains HTML and PDF documentation for scratch. The HTML
941a48e
documentation is referenced in the Scratch menu, and the PDFs are linked
941a48e
from that.
941a48e
941a48e
941a48e
%package media
941a48e
Summary: The standard distribution of sprites and media for Scratch
941a48e
License: CC-BY-SA
941a48e
BuildArch: noarch
941a48e
941a48e
%description media
941a48e
This package contains the standard collection of images and sounds for the
941a48e
Scratch programming language.
941a48e
941a48e
941a48e
%package projects
941a48e
Summary: The standard distribution of Scratch projects
941a48e
License: CC-BY-SA
941a48e
BuildArch: noarch
941a48e
941a48e
%description projects
941a48e
This package contains the standard collection of sample projects for the
941a48e
Scratch programming language.
941a48e
941a48e
941a48e
%package i18n
941a48e
Summary: Translations for the Scratch programming environment
941a48e
License: GPLv2
941a48e
BuildArch: noarch
941a48e
941a48e
%description i18n
941a48e
This package contains international support for the Scratch programming
941a48e
environment. If it is not installed, Scratch will only be available in
941a48e
English
941a48e
941a48e
941a48e
%prep
941a48e
%setup -q -n %{name}-%{version}.src
941a48e
%patch0 -p1
941a48e
%patch1 -p1
941a48e
941a48e
941a48e
%build
941a48e
# since the Squeak VM version 4.10.2.2593 and greater includes all the
941a48e
# plugins previously included as part of Scratch, we don't need to build
941a48e
# anything here.
941a48e
941a48e
941a48e
%install
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}
941a48e
install -m 644 Scratch.image %{buildroot}%{_datadir}/%{name}/
941a48e
install -m 644 Scratch.ini %{buildroot}%{_datadir}/%{name}/
941a48e
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Help/en/images
941a48e
install -m 644 Help/en/*.pdf %{buildroot}%{_datadir}/%{name}/Help/en/
941a48e
install -m 644 Help/en/*.html %{buildroot}%{_datadir}/%{name}/Help/en/
941a48e
install -m 644 Help/en/*.gif %{buildroot}%{_datadir}/%{name}/Help/en/
941a48e
install -m 644 Help/en/images/*.gif %{buildroot}%{_datadir}/%{name}/Help/en/images/
941a48e
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/locale
941a48e
install -m 644 locale/* %{buildroot}%{_datadir}/%{name}/locale/
941a48e
941a48e
cp -R Media  %{buildroot}%{_datadir}/%{name}/
941a48e
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Animation
941a48e
install -m 644 Projects/Animation/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Animation/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Games
941a48e
install -m 644 Projects/Games/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Games/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Greetings
941a48e
install -m 644 Projects/Greetings/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Greetings/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Interactive\ Art
941a48e
install -m 644 Projects/Interactive\ Art/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Interactive\ Art/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Music\ and\ Dance
941a48e
install -m 644 Projects/Music\ and\ Dance/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Music\ and\ Dance/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Names
941a48e
install -m 644 Projects/Names/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Names/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Sensors\ and\ Motors
941a48e
install -m 644 Projects/Sensors\ and\ Motors/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Sensors\ and\ Motors/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Simulations
941a48e
install -m 644 Projects/Simulations/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Simulations/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Speak\ Up
941a48e
install -m 644 Projects/Speak\ Up/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Speak\ Up/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Stories
941a48e
install -m 644 Projects/Stories/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Stories/
941a48e
941a48e
install -m 755 -d %{buildroot}%{_bindir}/
941a48e
install -m 755 src/scratch %{buildroot}%{_bindir}/
941a48e
941a48e
install -m 755 -d %{buildroot}%{_mandir}/man1
941a48e
install -m 644 src/man/scratch.1.gz %{buildroot}%{_mandir}/man1/
941a48e
941a48e
install -m 755 -d %{buildroot}%{_datadir}/applications
941a48e
desktop-file-install --dir=%{buildroot}%{_datadir}/applications src/%{name}.desktop
941a48e
941a48e
install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
941a48e
install -m 644 src/icons/48x48/scratch.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
941a48e
install -m 644 src/icons/128x128/scratch.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes
941a48e
install -m 644 src/icons/48x48/gnome-mime-application-x-scratch-project.png %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/
941a48e
install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes
941a48e
install -m 644 src/icons/128x128/gnome-mime-application-x-scratch-project.png %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes/
941a48e
941a48e
install -m 755 -d %{buildroot}%{_datadir}/mime/packages
941a48e
install -m 644 src/%{name}.xml %{buildroot}%{_datadir}/mime/packages/
941a48e
cb710e7
install -m 755 -d %{buildroot}%{_udevrulesdir}
2903500
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/
941a48e
9399cb9
mkdir -p %{buildroot}%{_datadir}/appdata
9399cb9
cp -a %{SOURCE3} %{buildroot}%{_datadir}/appdata/
9399cb9
941a48e
%files
14056dc
%license LICENSE gpl-2.0.txt TRADEMARK_POLICY
14056dc
%doc KNOWN-BUGS ACKNOWLEDGEMENTS NOTICE
941a48e
%{_bindir}/%{name}
941a48e
%{_mandir}/man1/%{name}*.1*
941a48e
%{_datadir}/applications/%{name}.desktop
941a48e
%{_datadir}/mime/packages/%{name}.xml
941a48e
%{_datadir}/icons/hicolor/48x48/apps/*
941a48e
%{_datadir}/icons/hicolor/48x48/mimetypes/*
941a48e
%{_datadir}/icons/hicolor/128x128/apps/*
941a48e
%{_datadir}/icons/hicolor/128x128/mimetypes/*
cb710e7
%{_udevrulesdir}/50-wedo.rules
9399cb9
%{_datadir}/appdata/%{name}.appdata.xml
941a48e
941a48e
%files image
14056dc
%license LICENSE gpl-2.0.txt
941a48e
%dir %{_datadir}/%{name}
941a48e
%{_datadir}/%{name}/Scratch.image
941a48e
%{_datadir}/%{name}/Scratch.ini
941a48e
941a48e
%files help
14056dc
%license LICENSE
941a48e
%dir %{_datadir}/%{name}/Help
941a48e
%{_datadir}/%{name}/Help/*
941a48e
941a48e
%files media
14056dc
%license LICENSE
941a48e
%dir %{_datadir}/%{name}/Media
941a48e
%{_datadir}/%{name}/Media/*
941a48e
941a48e
%files projects
14056dc
%license LICENSE
941a48e
%dir %{_datadir}/%{name}/Projects
941a48e
%{_datadir}/%{name}/Projects/*
941a48e
941a48e
%files i18n
14056dc
%license LICENSE gpl-2.0.txt
941a48e
%{_datadir}/%{name}/locale
941a48e
941a48e
941a48e
%changelog
fa3b5b4
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-23
fa3b5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
fa3b5b4
ccc596b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-22
ccc596b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ccc596b
a6cdadd
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-21
a6cdadd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a6cdadd
1f5fdc8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-20
1f5fdc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1f5fdc8
a7d41bf
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-19
a7d41bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a7d41bf
70d83c7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-18
70d83c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
70d83c7
9bb986a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-17
9bb986a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9bb986a
9bddd78
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-16
9bddd78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9bddd78
ace9597
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.0.7-15
ace9597
- Remove obsolete scriptlets
ace9597
a4cc6ab
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-14
a4cc6ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a4cc6ab
70b091a
* Mon Feb 20 2017 msuchy@redhat.com - 1.4.0.7-13
70b091a
- build require systemd to recognize udev macro
70b091a
d373e7c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-12
d373e7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d373e7c
b83202b
* Tue Feb 09 2016 msuchy@redhat.com - 1.4.0.7-11
b83202b
- 1161108 - add appdata file
b83202b
- 1173319 - add udev rule for Lego WeDo
b83202b
2d740ca
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.7-10
2d740ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2d740ca
08e8533
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0.7-9
08e8533
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
08e8533
Rex Dieter 6336990
* Thu Oct 02 2014 Rex Dieter <rdieter@fedoraproject.org> 1.4.0.7-8
Rex Dieter 6336990
- add mime scriptlets, fix icon scriptlets
Rex Dieter 6336990
c482a0c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0.7-7
c482a0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c482a0c
9faa3b6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0.7-6
9faa3b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9faa3b6
941a48e
* Sat Nov 24 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.7-5
941a48e
- delete SQ_DIR code from scratch launch script -- not needed since
941a48e
  we're using distro-provided packages and we know where our own stuff
941a48e
  lives.
941a48e
941a48e
* Wed Nov  7 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.7-4
941a48e
- new squeak-vm now includes the plugins needed here (including the
941a48e
  Scratch plugin), so we don't need to build them here.
941a48e
- update startup script to not refer to plugins from this package 
941a48e
- move xshm change to single fedora squeak patch, for simplicity
941a48e
- move startup script and icons to main package
941a48e
- remove pulseaudio hack since that should now just work
941a48e
941a48e
* Fri Sep 28 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.7-3
941a48e
- xshm extension has been reported to cause problems with newer squeak,
941a48e
  and definitely breaks remote use. Does not appear to give a noticeable
941a48e
  performance benefit, so let's not use it.
941a48e
941a48e
941a48e
* Fri Sep 28 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.7-2
941a48e
- add source file and license info for squeak vm
941a48e
- use buildroot macro consistently
941a48e
- add rpm scripts for icon cache refresh
941a48e
- install desktop file properly
941a48e
941a48e
* Fri Sep 14 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.7-1
941a48e
- update to 1.4.0.7, which removes the mp3 issue thanks to upstream
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-15
941a48e
- work around possible missing pulse plugin for squeak
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-14
941a48e
- right name for the camera plugin
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-13
941a48e
- license files for all!
941a48e
- proper license for different subpackages
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-12
941a48e
- whoops forgot to require the camera plugin
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-11
941a48e
- use santized source file (no included pre-built binaries)
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-10
941a48e
- fix whine about invalid desktop file due to missing ;
941a48e
- de-dot the summaries
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-9
941a48e
- missing defattr -- whoops
941a48e
- put docs in both image and main wrapper package
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-8
941a48e
- delete mp3s since they won't work without support
941a48e
- remove binary plugins in prep stage
941a48e
- move more things to noarch subpackages -- now only plugins and
941a48e
  main "wrapper" package are arch-specific
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-7
941a48e
- split plugins into subpackages
941a48e
- split help and media into subpackages
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-5
941a48e
- remove MIDI plugin, which is part of the main squeak vm package
941a48e
- remove MP3 plugin, which is a) a binary in the source distribution,
941a48e
  b) missing source, and c) not allowed in Fedora
941a48e
941a48e
* Mon Sep 10 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-4
941a48e
- update layout to deal with arch issues
941a48e
- set cflags; get proper debuginfo packages
941a48e
941a48e
* Fri Sep  7 2012 Matthew Miller <mattdm[@]mattdm.org> - 1.4.0.6-1
941a48e
- update to gplv2 version
941a48e
- tweak source filename and build dir to match upstream
941a48e
- update patch to point to system squeak vm
941a48e
941a48e
* Mon Jan 17 2011 W. Michael Petullo <mike[@]flyn.org> - 1.4.0.1-1
941a48e
- Initial package