File pysycache-lang.spec of Package pysycache-lang
#
# spec file for package pysycache-languagepacks
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: pysycache-lang
Version: 3.0
Release: 0
Group: Amusements/Teaching/Other
Url: http://www.pysycache.org/
Summary: Language packages for PySyCache
License: GPL
Source1: pack-lang-de-3.0.zip
Source2: pack-lang-da-3.0.zip
Source3: pack-lang-en-3.0.zip
Source4: pack-lang-es-3.0.zip
Source5: pack-lang-fi-3.0.zip
Source6: pack-lang-fr-3.0.zip
Source7: pack-lang-it-3.0.zip
Source8: pack-lang-nl-3.0.zip
Source9: pack-lang-pt-3.0.zip
Source100: pysycache-lang-README
Requires: pysycache >= %{version}
Buildrequires: unzip
# for the directory ownership...
BuildRequires: pysycache
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
Autoreqprov: on
BuildArch: noarch
Vendor: openSUSE-Education
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define themes_dir /var/games/pysycache/themes-move
%define py_group pysycache
%define py_user pysycache
%description
This package contains language specific parts for 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
%package da
Summary: Danish language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:da)
%endif
%description da
Danish language pack for PySyCache.
%package de
Summary: German language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:de)
%endif
%description de
German language pack for PySyCache.
%package en
Summary: English language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:en)
%endif
%description en
English language pack for PySyCache.
%package es
Summary: Estonian language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:es)
%endif
%description es
Estonian language pack for PySyCache.
%package fi
Summary: Finish language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:fi)
%endif
%description fi
Finish language pack for PySyCache.
%package fr
Summary: French language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:fr)
%endif
%description fr
French language pack for PySyCache.
%package it
Summary: Italian language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:it)
%endif
%description it
Italian language pack for PySyCache.
%package nl
Summary: Netherlands language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:nl)
%endif
%description nl
Netherlands language pack for PySyCache.
%package pt
Summary: Portugese language pack for PySyCache
Group: Amusements/Teaching/Other
Requires: pysycache >= %version
Provides: pysycache-languagepack = %version-%release
%if %suse_version >= 1010
Provides: locale(pysycache:pt)
%endif
%description pt
Portugese language pack for PySyCache.
%prep
%build
%install
install -d -m755 %buildroot%themes_dir
install -d -m755 %buildroot%{_defaultdocdir}/%name
install -m644 %{SOURCE100} %buildroot%{_defaultdocdir}/%name/README.SuSE
pushd %buildroot%themes_dir 1>/dev/null
cd ..
for i in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9}; do
unzip $i
done
# grmbl: fr comes with extra documentation - move it to the main package...
mv doc/* %buildroot%{_defaultdocdir}/%name/
rmdir doc
popd 1>/dev/null
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%clean
rm -rf %buildroot
%files
%defattr(644,root,root,755)
%doc %{_defaultdocdir}/%name
%files da
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-da
%themes_dir/number-da
%files de
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-de
%themes_dir/number-de
%files en
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-en
%themes_dir/number-en
%files es
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-es
%themes_dir/number-es
%files fi
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-fi
%themes_dir/number-fi
%files fr
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-fr
%themes_dir/number-fr
%files it
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-it
%themes_dir/number-it
%files nl
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-nl
%themes_dir/number-nl
%files pt
%defattr(664,%py_user,%py_group,775)
%themes_dir/alphabet-pt
%themes_dir/number-pt
%changelog