File pysycache-cartoons.spec of Package pysycache-cartoon

#
# spec file for package pysycache-cartoons
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:		    pysycache-cartoons
Version:	    3.0
Release:	    0
Group:          Amusements/Teaching/Other
Url:		    http://www.pysycache.org/
Summary:	    Add on for the "Drag and drop" activity
License:	    GPL
Source1:        cartoons-%version.zip 
Requires:	    pysycache >= %{version}
Buildrequires:	unzip 
# for the directory ownership...
BuildRequires:  pysycache
BuildArch:      noarch
Vendor:         openSUSE-Education
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         puzzle_dir /usr/share/pysycache/themes-puzzle

%description
This package contains an add on for the "Drag and drop" activity
of PySyCache - an educational software for the young children (4-7 years old) 
with target to learn them to move the mouse to click with mouse buttons.


%prep

%build

%install
install -d -m755 %buildroot%puzzle_dir
install -d -m755 %buildroot%{_defaultdocdir}/%name
# cartoons
mkdir %buildroot%puzzle_dir/cartoons
pushd %buildroot%puzzle_dir 1>/dev/null
unzip %SOURCE1
mv themes-puzzle/copyright* themes-puzzle/credits* %buildroot%{_defaultdocdir}/%name/
mv themes-puzzle/* %buildroot%puzzle_dir/cartoons/
rmdir themes-puzzle
popd 1>/dev/null

%clean
rm -rf %buildroot

%files
%defattr(644,root,root,755)
%doc %{_defaultdocdir}/%name
%puzzle_dir/*

%changelog
openSUSE Build Service is sponsored by