]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: - enable plugins (if possible) | |
3 | # | |
4 | %define plugins_ver 0.90 | |
5 | %define plugins_lfc_ver 0.90 | |
6 | Summary: Games for children with plugins | |
7 | Summary(pl.UTF-8): Gry dla dzieci z wtyczkami | |
8 | Name: childsplay | |
9 | Version: 1.5.1 | |
10 | Release: 0.1 | |
11 | License: GPL v3+ | |
12 | Group: X11/Applications/Games | |
13 | Source0: http://downloads.sourceforge.net/schoolsplay/%{name}-%{version}.tgz | |
14 | # Source0-md5: 6ed368af17e7e2fd129b0b9c5d4921ec | |
15 | #Source1: http://dl.sourceforge.net/childsplay/%{name}_plugins-%{plugins_ver}.tgz | |
16 | ## Source1-md5: 2abd77c938ce4297c3a6190637833ca5 | |
17 | #Source2: http://dl.sourceforge.net/childsplay/%{name}_plugins_lfc-%{plugins_lfc_ver}.tgz | |
18 | ## Source2-md5: 123b24a0af50cda07f8c6869d6f939ff | |
19 | Source3: %{name}.desktop | |
20 | Source4: pld_setup.py | |
21 | Patch0: %{name}-gettext.patch | |
22 | URL: http://www.schoolsplay.org/ | |
23 | %pyrequires_eq python-modules | |
24 | BuildRequires: rpm-pythonprov | |
25 | Requires: python-SQLAlchemy | |
26 | Requires: python-numpy | |
27 | Requires: python-pygame >= 1.7 | |
28 | Requires: python-sqlite >= 1.1 | |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Childsplay is a 'suite' of educational games for young children, like | |
34 | gcompris, but without the overkill of C/C++ and the GNOME environment. | |
35 | Also the use of the SDL libraries makes smooth animation and the | |
36 | playing of sound very easy. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Childsplay to zestaw gier edukacyjnych dla małych dzieci, podobnie do | |
40 | gcompris. Jest jednak napisana bez narzutu C/C++ i środowiska GNOME - | |
41 | w Pythonie, z użyciem biblioteki SDL, co czyni animacje płynnymi i | |
42 | odtwarzanie dźwięku bardzo łatwym. | |
43 | ||
44 | %prep | |
45 | #%%setup -q -a1 -a2 | |
46 | %setup -q | |
47 | %patch0 -p1 | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/alphabetsounds,%{_datadir}/locale,%{py_sitescriptdir}/childsplay_sp} | |
53 | ||
54 | cp -fr lib/CPData $RPM_BUILD_ROOT%{_datadir}/%{name} | |
55 | cp -fr lib/SPData $RPM_BUILD_ROOT%{_datadir}/%{name} | |
56 | cp -fr alphabetsounds/en $RPM_BUILD_ROOT%{_datadir}/%{name}/alphabetsounds | |
57 | cp -fr locale/* $RPM_BUILD_ROOT%{_datadir}/locale | |
58 | ||
59 | install bin/childsplay $RPM_BUILD_ROOT%{_bindir} | |
60 | ||
61 | # use our custom setup.py instead of ugly orginal one | |
62 | cp %{SOURCE4} setup.py | |
63 | ||
64 | %{__python} setup.py install \ | |
65 | --optimize=2 \ | |
66 | --root=$RPM_BUILD_ROOT | |
67 | ||
68 | #install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} | |
69 | #install lib/SPData/menu/default/logo_cp_32x32.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm | |
70 | ||
71 | #cd childsplay_plugins-%{plugins_ver} | |
72 | #cp -fr lib/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lib | |
73 | #cp -fr Data/*.icon.png $RPM_BUILD_ROOT%{_datadir}/%{name}/Data/icons | |
74 | #cp -fr Data/AlphabetSounds $RPM_BUILD_ROOT%{_datadir}/%{name}/Data | |
75 | #cp -fr assetml/childsplay $RPM_BUILD_ROOT%{_datadir}/assetml | |
76 | #%%{__python} add-score.py $RPM_BUILD_ROOT/var/games/ "Packid,Numbers" | |
77 | #cd .. | |
78 | ||
79 | #cd childsplay_plugins_lfc-%{plugins_lfc_ver} | |
80 | #cp -fr lib/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lib | |
81 | #cp -fr Data/*.icon.png $RPM_BUILD_ROOT%{_datadir}/%{name}/Data/icons | |
82 | #cp -fr assetml/childsplay $RPM_BUILD_ROOT%{_datadir}/assetml | |
83 | #cd .. | |
84 | ||
85 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
86 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
87 | ||
88 | #mv $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb} | |
89 | ||
90 | %find_lang %{name}_sp --all-name | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | #%%files -f %{name}_sp.lang | |
96 | %files -f %{name}_sp.lang | |
97 | %defattr(644,root,root,755) | |
98 | %doc doc/* | |
99 | %attr(755,root,root) %{_bindir}/childsplay | |
100 | %{_datadir}/%{name} | |
101 | %{py_sitescriptdir}/childsplay_sp | |
102 | #%%{_desktopdir}/%{name}.desktop | |
103 | #%%{_pixmapsdir}/%{name}.xpm |