File childsplay_plugins.spec of Package childsplay_plugins

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


Name:           childsplay_plugins
Version:        0.90
Release:        4
Summary:        Game-modules (plug-ins) for childsplay
Group:          Amusements/Games
License:        GPLv3
Url:            http://childsplay.sourceforge.net/
Vendor:         openSUSE-Education
BuildArch:      noarch
Requires:       childsplay >= 0.85.1
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
Source:         %{name}-%{version}.tar.bz2
Patch0:         childsplay_plugins-0.80.7-alphabet-sounds.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Plug-ins for Childsplay a suite of educational games for young
children. The aim is to be educational and at the same time be fun to play.

* Numbers: Put the correct operator between two numbers.
* SoundNpic: A toy for young children with pictures and sounds.
* Packid: A pac-man game, try to catch the letters.
* Soundmemory: The classic memory game, with sounds.
* Fallingletters: Type them before they reach the ground.
* Findsound: Listen to a sound and find the image to which it belongs.
* Findsound2: The same as findsound, now with numbers and letters.
* Pong: The classic game, play alone,against the computer or against
  another child.
* Billiard: Try to put the balls in the hole.
* MultiTables: Learn the multiplication tables.
* Puzzle: Recreate the image.
* LetterFlashcard: Learn the alphabeth by listening to the words and
  initials.




%prep
%setup -q
%patch0 -p1
find -name "*.orig" | xargs rm; 
# the translation is merged into the assetml file, so don't ship it seperatly
rm -r assetml/childsplay/sounds-misc/po

%build

%install
install -d %buildroot%{_datadir}/childsplay/plugins
install -d %buildroot%{_datadir}/childsplay/Data/icons
cp -a Data/*.icon.png %buildroot%{_datadir}/childsplay/Data/icons
cp -a lib/* %buildroot%{_datadir}/childsplay/plugins
cp -a assetml/childsplay/* %buildroot%{_datadir}/childsplay

%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README*
%{_datadir}/childsplay

%changelog
openSUSE Build Service is sponsored by