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