update to 3.4 [release 3.4-1mamba;Sun May 23 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 21:12:28 +01:00
parent e10805e112
commit 85ac9bddac
2 changed files with 57 additions and 46 deletions

View File

@ -2,4 +2,3 @@
Childsplay is a 'suite' of educational games for young children, like gcompris, but without the overkill of c/c++ and the gnome environ.
Also the use of the SDL libraries makes smooth animation and the playing of sound very easy.

View File

@ -2,16 +2,15 @@
%define asound_ver 0.9.1
Name: childsplay
Version: 1.6
Release: 3mamba
Version: 3.4
Release: 1mamba
Summary: A 'suite' of educational games for young children
Group: Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://childsplay.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/schoolsplay/childsplay_sp/%{version}/childsplay-%{version}.tgz
#Source1: http://downloads.sourceforge.net/sourceforge/%{name}/childsplay_plugins-%{plugins_ver}.tgz
Source0: https://sourceforge.net/projects/schoolsplay/files/childsplay-%{version}.tgz
Source2: %{name}.desktop
Source3: http://downloads.sourceforge.net/project/schoolsplay/alphabet_sounds/%{asound_ver}/alphabet_sounds_ca-%{asound_ver}.tgz
Source4: http://downloads.sourceforge.net/project/schoolsplay/alphabet_sounds/%{asound_ver}/alphabet_sounds_de-%{asound_ver}.tgz
@ -35,74 +34,87 @@ Patch7: childsplay-0.90.2-locale_it_font.patch
Patch8: childsplay-1.6-python-SQLAlchemy-0.7.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: python2dist(sqlalchemy)
## AUTOBUILDREQ-END
BuildRequires: gettext-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_ttf-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libogg-devel
Requires: python-pygame
Requires: python-SQLAlchemy
Requires: libfribidi
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: python27
Requires: python2dist(sqlalchemy)
%description
Childsplay is a 'suite' of educational games for young children, like gcompris, but without the overkill of c/c++ and the gnome environ.
Also the use of the SDL libraries makes smooth animation and the playing of sound very easy.
#% debug_package
%prep
%setup -q
%patch8 -p1
# due unknown Mail module
rm -fv SPDebugDialog.py
rm -fv SPWidgets/test.py
sed -i "s|import SpDebugDialog||" SPMainCore.py
# set pathes
cat <<EOF >SPBasePaths.py
# This module holds all paths needed for %name.
DOCDIR = '%{_datadir}/doc/%{name}-%{version}'
#PYTHONCPDIR = '%python_sitelibdir/%realname'
BASEDIR = '%{_datadir}/%{name}'
SHARELIBDATADIR = '%{_datadir}/%{name}/lib'
ALPHABETDIR = '%{_datadir}/%{name}/alphabet-sounds'
LOCALEDIR = '%{_datadir}/locale'
WWWDIR = 'www/backend'
EOF
%build
sed -i "s|/usr/local|%{buildroot}%{_prefix}|" setup.py
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
python setup.py install \
--root=%{buildroot} << _EOF
_EOF
# create the italian locale from the italian catalog file
##install -d locale/it/LC_MESSAGES
##/usr/bin/msgfmt doc/po/it/childsplay.po \
## -o locale/it/LC_MESSAGES/%{name}.mo
#LANG=${LANG/\.UTF-8/} ./INSTALL.sh %{buildroot}
#ln -sf /var/games/childsplay.score %{buildroot}%{_datadir}/childsplay/Data/childsplay.score
install -d -m0755 %{buildroot}%{_bindir}
%{find_lang} %{name}_sp
cat <<EOF >%{buildroot}%{_bindir}/%{name}
#!/bin/sh
cd %{_datadir}/%{name}/
python2 childsplay.py
EOF
chmod a+x %{buildroot}%{_bindir}/%{name}
#cd childsplay_plugins-%{plugins_ver}
#./install.sh %{buildroot}
install -d -m0755 %{buildroot}%{_datadir}/locale/
install -d -m0755 %{buildroot}%{_datadir}/%{name}/
cp -a *.py lib SPWidgets %{buildroot}%{_datadir}/%{name}/
cp sp_content.db %{buildroot}%{_datadir}/%{name}/lib/
cp -a alphabet-sounds %{buildroot}%{_datadir}/%{name}/
cp -a locale/* %{buildroot}%{_datadir}/locale/
install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m0644 %{SOURCE14} %{buildroot}%{_datadir}/pixmaps/childsplay.png
sed -i "s,%{buildroot},," %{buildroot}%{python_sitearch}/childsplay_sp/SPBasePaths.py
rm -f %{buildroot}%{python_sitearch}/childsplay_sp/SPBasePaths.py
install -D -m644 lib/SPData/themes/childsplay/logo_cp_64x64.png %{buildroot}%{_datadir}/pixmaps/childsplay.png
%{find_lang} %{name} --all-name
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files -f %{name}_sp.lang
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/childsplay
%{python_sitearch}/childsplay_sp-*-py*.egg-info
%dir %{python_sitearch}/childsplay_sp
%{python_sitearch}/childsplay_sp/*
%dir %{_datadir}/childsplay_sp
%{_datadir}/childsplay_sp/*
%dir %{_datadir}/childsplay
%{_datadir}/childsplay/*
%{_datadir}/pixmaps/childsplay.png
%{_datadir}/applications/childsplay.desktop
%dir %{_datadir}/sp_alphabetsounds
%{_datadir}/sp_alphabetsounds/*
%dir %{_docdir}/childsplay_sp
%{_docdir}/childsplay_sp/*
#%dir %{_docdir}/childsplay
#%{_docdir}/childsplay/*
%doc COPYING
%changelog
* Sun May 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4-1mamba
- update to 3.4
* Thu Sep 13 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-1mamba
- update to 3.3
* Wed Apr 09 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-1mamba
- update to 2.5
* Sun Jun 02 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6-3mamba
- python 2.7 mass rebuild