]>
Commit | Line | Data |
---|---|---|
fb2c4263 | 1 | Summary: Educational games for children |
2 | Summary(pl.UTF-8): Gry edukacyjne dla dzieci | |
e6339692 | 3 | Name: childsplay |
a66e6030 | 4 | Version: 1.5.1 |
81067d52 | 5 | Release: 3 |
53080f4b | 6 | License: GPL v3+ |
e6339692 | 7 | Group: X11/Applications/Games |
a66e6030 | 8 | Source0: http://downloads.sourceforge.net/schoolsplay/%{name}-%{version}.tgz |
9 | # Source0-md5: 6ed368af17e7e2fd129b0b9c5d4921ec | |
1914eb20 | 10 | Source1: %{name}.desktop |
11 | Source2: pld_setup.py | |
d8558f58 | 12 | Patch0: %{name}-gettext.patch |
bfcd7745 | 13 | URL: http://www.schoolsplay.org/ |
72bdf84b | 14 | BuildRequires: python-devel |
101e9785 | 15 | BuildRequires: rpm-pythonprov |
51ba63f3 | 16 | BuildRequires: rpmbuild(macros) >= 1.112 |
72bdf84b | 17 | %pyrequires_eq python-modules |
bfcd7745 | 18 | Requires: python-SQLAlchemy |
45796f49 | 19 | Requires: python-numpy |
a9015c0b | 20 | Requires: python-pygame >= 1.7 |
86d2c7f1 | 21 | Requires: python-pygtk-gtk >= 1:2.0 |
8a1224fd | 22 | Requires: python-sqlite >= 1.1 |
6a431026 | 23 | BuildArch: noarch |
e6339692 JK |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Childsplay is a 'suite' of educational games for young children, like | |
93b60176 | 28 | gcompris, but without the overkill of C/C++ and the GNOME environment. |
e6339692 JK |
29 | Also the use of the SDL libraries makes smooth animation and the |
30 | playing of sound very easy. | |
31 | ||
772e1e90 | 32 | %description -l pl.UTF-8 |
fb2c4263 | 33 | Childsplay to zestaw gier edukacyjnych dla małych dzieci, podobnych do |
34 | gier z zestawu gcompris. Jest jednak napisana bez narzutu C/C++ i | |
35 | środowiska GNOME - w Pythonie, z użyciem biblioteki SDL, co czyni | |
36 | animacje płynnymi i odtwarzanie dźwięku bardzo łatwym. | |
e6339692 JK |
37 | |
38 | %prep | |
bfcd7745 | 39 | %setup -q |
d8558f58 | 40 | %patch0 -p1 |
e6339692 | 41 | |
e6339692 JK |
42 | %install |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
51ba63f3 | 45 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/{games/%{name}/alphabetsounds,locale},%{_pixmapsdir},%{_desktopdir}} |
0d264f6e | 46 | install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/childsplay_sp |
56dbde4f | 47 | |
a66e6030 | 48 | # use our custom setup.py instead of ugly orginal one |
1914eb20 | 49 | cp %{SOURCE2} setup.py |
a66e6030 | 50 | |
51 | %{__python} setup.py install \ | |
52 | --optimize=2 \ | |
53 | --root=$RPM_BUILD_ROOT | |
54 | ||
51ba63f3 | 55 | cp -fr lib/CPData $RPM_BUILD_ROOT%{_datadir}/games/%{name} |
56 | cp -fr lib/SPData $RPM_BUILD_ROOT%{_datadir}/games/%{name} | |
57 | cp -fr alphabetsounds/en $RPM_BUILD_ROOT%{_datadir}/games/%{name}/alphabetsounds | |
0d264f6e | 58 | cp -fr locale/* $RPM_BUILD_ROOT%{_datadir}/locale |
59 | ||
60 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
61 | install bin/childsplay $RPM_BUILD_ROOT%{_bindir} | |
62 | install lib/SPData/menu/default/logo_cp_64x64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
bfcd7745 | 63 | |
51ba63f3 | 64 | %py_comp $RPM_BUILD_ROOT%{_datadir}/games/%{name} |
65 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/games/%{name} | |
6a431026 | 66 | |
a66e6030 | 67 | %find_lang %{name}_sp --all-name |
e6339692 JK |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
60507f72 | 72 | %files -f %{name}_sp.lang |
e6339692 | 73 | %defattr(644,root,root,755) |
bfcd7745 | 74 | %doc doc/* |
a66e6030 | 75 | %attr(755,root,root) %{_bindir}/childsplay |
51ba63f3 | 76 | %{_datadir}/games/%{name} |
a66e6030 | 77 | %{py_sitescriptdir}/childsplay_sp |
0d264f6e | 78 | %{_desktopdir}/%{name}.desktop |
79 | %{_pixmapsdir}/%{name}.png | |
72bdf84b | 80 | %if "%{py_ver}" > "2.4" |
81 | %{py_sitescriptdir}/childsplay_sp-*.egg-info | |
82 | %endif |