On Wednesday 18 January 2006 17:56, Jacek Konieczny wrote: > Poza tym w miarę ok. Czekam na poprawionego speca, co bym mógł do CVS > wrzucić i córeczce zbudować ;-) > > Pozdrowienia, > Jacek
Wprowadziłem zmiany o których mówiłeś, mam nadzieję, że o to chodziło. ________________________________________________ Linux is like Wigwam. No Gates, No Windows, Apache Inside !!!
# $Revision:$, $Date:$ %define plugins_ver 0.80.3 Summary: Games for children with plugins Summary(pl): Gra dla dzieci z wtyczkami Name: childsplay Version: 0.81.1 Release: 1 Group: X11/Applications/Games Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tgz Source1: http://dl.sourceforge.net/sourceforge/%{name}/%{name}_plugins-%{plugins_ver}.tgz # Source0-md5: License: GPL v2 URL: http://childsplay.sourceforge.net/ BuildRequires: SDL-devel BuildRequires: SDL_image-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_ttf-devel BuildRequires: gettext-devel >= 0.14.1 BuildRequires: libogg-devel BuildRequires: python-devel BuildRequires: python-pygame-devel Requires: python-pygame >= 1.6 Patch0: %{name}-install.patch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl Childsplay jest gra edukacyjna dla dzieci podobna do gcompris. Jest jednak napisana w pythonie, uzywa biblioteki SDL. %prep %setup -q -a1 %patch0 -p1 ### fix python compile error #perl -pi.orig -e 's|quiet\=1||g' install.py cat <<'EOF' >childsplay.sh #!/bin/sh exec python %{_libdir}/childsplay/childsplay.py $@ EOF cat <<'EOF' >BASEPATH.py BASEPATH = "%{_prefix}" EXECDIR = "%{_bindir}" LOCALEDIR = "%{_datadir}/locale" ASSETMLDIR = "%{_datadir}/assetml" SCOREDIR = "/var/games/" SCOREFILE = SCOREDIR + "childsplay.score" DOCDIR = "%{_docdir}/childsplay" MANDIR = "%{_mandir}/man6" CPDIR = "%{_prefix}/lib/childsplay" SHAREDIR = CPDIR BINDIR = "%{_prefix}/games" LIBDIR = CPDIR + "/lib" MODULESDIR = LIBDIR SHARELIBDATADIR = SHAREDIR + "/lib" SHAREDATADIR = SHAREDIR + "/Data" RCDIR = SHARELIBDATADIR + "/ConfigData" CHILDSPLAYRC = "childsplayrc" HOME_DIR_NAME = ".childsplayrc" EOF %build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} \ $RPM_BUILD_ROOT%{_libdir}/childsplay/lib/ConfigData/ \ $RPM_BUILD_ROOT%{_libdir}/childsplay/lib/MemoryData/ \ $RPM_BUILD_ROOT%{_mandir}/man6/ \ $RPM_BUILD_ROOT%{_datadir}/locale \ $RPM_BUILD_ROOT%{_datadir}/assetml \ $RPM_BUILD_ROOT/var/games install -Dp childsplay.sh $RPM_BUILD_ROOT%{_bindir}/childsplay install -Dp man/childsplay.6.gz $RPM_BUILD_ROOT%{_mandir}/man6/childsplay.6.gz cp -fr Data/childsplay.score $RPM_BUILD_ROOT/var/games/childsplay.score cp -fr *.py $RPM_BUILD_ROOT%{_libdir}/childsplay/ cp -fr Data/ $RPM_BUILD_ROOT%{_libdir}/childsplay/ cp -fr lib $RPM_BUILD_ROOT%{_libdir}/childsplay/ cp -fr locale $RPM_BUILD_ROOT%{_datadir}/ cp -fr assetml $RPM_BUILD_ROOT%{_datadir}/ ### compile bytecode %{__python} install.py --compile $RPM_BUILD_ROOT%{_libdir}/childsplay/ %{__python} install.py --makedir $RPM_BUILD_ROOT%{_libdir}/childsplay/ ### install plugins cd %{name}_plugins-%{plugins_ver}/ python $RPM_BUILD_ROOT%{_libdir}/childsplay/install.py --compile Lib cp -fr lib/* $RPM_BUILD_ROOT%{_libdir}/childsplay/lib/ cp -fr Data/*.icon.png $RPM_BUILD_ROOT%{_libdir}/childsplay/Data/icons/ cp -fr Data/AlphabetSounds $RPM_BUILD_ROOT%{_libdir}/childsplay/Data/ cp -fr assetml/%{name} $RPM_BUILD_ROOT%{_datadir}/assetml/ %{__python} add-score.py $RPM_BUILD_ROOT/var/games/ "Packid,Numbers" cd - %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README* doc/GPL* doc/README* %{_libdir}/%{name}/ %{_datadir}/* %attr(755,root,games) %{_bindir}/* #%changelog #* Initial package. %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <[EMAIL PROTECTED]> All persons listed below can be reached at <cvs_login>@pld-linux.org $Log:$
--- childsplay-0.81.1/install.py 2005-11-13 13:46:03.000000000 +0100 +++ childsplay-0.81.1/install.py 2006-01-18 20:42:52.000000000 +0100 @@ -52,7 +52,7 @@ if len(sys.argv) == 3: if sys.argv[1] == '--compile': try: - compileall.compile_dir(sys.argv[2],quiet=1) + compileall.compile_dir(sys.argv[2],) except TypeError: compileall.compile_dir(sys.argv[2]) elif sys.argv[1] == '--checkversion':
_______________________________________________ pld-devel-pl mailing list pld-devel-pl@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl