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