scratch/scratch.spec

77 lines
2.9 KiB
RPMSpec

### AUTOUPDATE-OFF: 9
Name: scratch
Version: 1.4.0.7
Release: 3mamba
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/
Source: http://download.scratch.mit.edu/scratch-%{version}.src.tar.gz
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
%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
%prep
%setup -q -n %{name}-%{version}.src
%build
%make
%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/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/scratch
%{_libdir}/scratch/Scratch.image
%{_libdir}/scratch/Plugins/*
%{_datadir}/scratch/Help/*
%{_datadir}/scratch/locale/*
%{_datadir}/scratch/Media/*
%{_datadir}/scratch/Projects/*
%changelog
* Thu Nov 22 2012 openmamba WebBuild System <webbuild@openmamba.org> 1.4.0.7-3mamba
- fixed permissions and specfile
* Wed Nov 21 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.4.0.7-2mamba
- fixed permissions
* Wed Nov 21 2012 openmamba WebBuild System <webbuild@openmamba.org> 1.4.0.7-1mamba
- package created by ercolinux using the webbuild interface