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. 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. 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 %define asound_ver 0.9.1
Name: childsplay Name: childsplay
Version: 1.6 Version: 3.4
Release: 3mamba Release: 1mamba
Summary: A 'suite' of educational games for young children Summary: A 'suite' of educational games for young children
Group: Applications/Educational Group: Applications/Educational
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://childsplay.sourceforge.net/ URL: http://childsplay.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/schoolsplay/childsplay_sp/%{version}/childsplay-%{version}.tgz Source0: https://sourceforge.net/projects/schoolsplay/files/childsplay-%{version}.tgz
#Source1: http://downloads.sourceforge.net/sourceforge/%{name}/childsplay_plugins-%{plugins_ver}.tgz
Source2: %{name}.desktop Source2: %{name}.desktop
Source3: http://downloads.sourceforge.net/project/schoolsplay/alphabet_sounds/%{asound_ver}/alphabet_sounds_ca-%{asound_ver}.tgz 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 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 Patch8: childsplay-1.6-python-SQLAlchemy-0.7.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel BuildRequires: python2dist(sqlalchemy)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: gettext-devel Requires: python27
BuildRequires: libSDL-devel Requires: python2dist(sqlalchemy)
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
%description %description
Childsplay is a 'suite' of educational games for young children, like gcompris, but without the overkill of c/c++ and the gnome environ. 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. Also the use of the SDL libraries makes smooth animation and the playing of sound very easy.
#% debug_package
%prep %prep
%setup -q %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 %build
sed -i "s|/usr/local|%{buildroot}%{_prefix}|" setup.py
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
python setup.py install \
--root=%{buildroot} << _EOF
_EOF install -d -m0755 %{buildroot}%{_bindir}
# create the italian locale from the italian catalog file cat <<EOF >%{buildroot}%{_bindir}/%{name}
##install -d locale/it/LC_MESSAGES #!/bin/sh
##/usr/bin/msgfmt doc/po/it/childsplay.po \ cd %{_datadir}/%{name}/
## -o locale/it/LC_MESSAGES/%{name}.mo python2 childsplay.py
EOF
chmod a+x %{buildroot}%{_bindir}/%{name}
#LANG=${LANG/\.UTF-8/} ./INSTALL.sh %{buildroot} install -d -m0755 %{buildroot}%{_datadir}/locale/
#ln -sf /var/games/childsplay.score %{buildroot}%{_datadir}/childsplay/Data/childsplay.score install -d -m0755 %{buildroot}%{_datadir}/%{name}/
%{find_lang} %{name}_sp cp -a *.py lib SPWidgets %{buildroot}%{_datadir}/%{name}/
cp sp_content.db %{buildroot}%{_datadir}/%{name}/lib/
#cd childsplay_plugins-%{plugins_ver} cp -a alphabet-sounds %{buildroot}%{_datadir}/%{name}/
#./install.sh %{buildroot} cp -a locale/* %{buildroot}%{_datadir}/locale/
install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m0644 %{SOURCE14} %{buildroot}%{_datadir}/pixmaps/childsplay.png install -D -m644 lib/SPData/themes/childsplay/logo_cp_64x64.png %{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 %{find_lang} %{name} --all-name
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files -f %{name}_sp.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/childsplay %{_bindir}/childsplay
%{python_sitearch}/childsplay_sp-*-py*.egg-info %dir %{_datadir}/childsplay
%dir %{python_sitearch}/childsplay_sp %{_datadir}/childsplay/*
%{python_sitearch}/childsplay_sp/*
%dir %{_datadir}/childsplay_sp
%{_datadir}/childsplay_sp/*
%{_datadir}/pixmaps/childsplay.png %{_datadir}/pixmaps/childsplay.png
%{_datadir}/applications/childsplay.desktop %{_datadir}/applications/childsplay.desktop
%dir %{_datadir}/sp_alphabetsounds #%dir %{_docdir}/childsplay
%{_datadir}/sp_alphabetsounds/* #%{_docdir}/childsplay/*
%dir %{_docdir}/childsplay_sp %doc COPYING
%{_docdir}/childsplay_sp/*
%changelog %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 * Sun Jun 02 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6-3mamba
- python 2.7 mass rebuild - python 2.7 mass rebuild