]> git.pld-linux.org Git - packages/childsplay.git/blame_incremental - childsplay.spec
- release 3
[packages/childsplay.git] / childsplay.spec
... / ...
CommitLineData
1Summary: Educational games for children
2Summary(pl.UTF-8): Gry edukacyjne dla dzieci
3Name: childsplay
4Version: 1.5.1
5Release: 3
6License: GPL v3+
7Group: X11/Applications/Games
8Source0: http://downloads.sourceforge.net/schoolsplay/%{name}-%{version}.tgz
9# Source0-md5: 6ed368af17e7e2fd129b0b9c5d4921ec
10Source1: %{name}.desktop
11Source2: pld_setup.py
12Patch0: %{name}-gettext.patch
13URL: http://www.schoolsplay.org/
14BuildRequires: python-devel
15BuildRequires: rpm-pythonprov
16BuildRequires: rpmbuild(macros) >= 1.112
17%pyrequires_eq python-modules
18Requires: python-SQLAlchemy
19Requires: python-numpy
20Requires: python-pygame >= 1.7
21Requires: python-pygtk-gtk >= 1:2.0
22Requires: python-sqlite >= 1.1
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Childsplay is a 'suite' of educational games for young children, like
28gcompris, but without the overkill of C/C++ and the GNOME environment.
29Also the use of the SDL libraries makes smooth animation and the
30playing of sound very easy.
31
32%description -l pl.UTF-8
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.
37
38%prep
39%setup -q
40%patch0 -p1
41
42%install
43rm -rf $RPM_BUILD_ROOT
44
45install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/{games/%{name}/alphabetsounds,locale},%{_pixmapsdir},%{_desktopdir}}
46install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/childsplay_sp
47
48# use our custom setup.py instead of ugly orginal one
49cp %{SOURCE2} setup.py
50
51%{__python} setup.py install \
52 --optimize=2 \
53 --root=$RPM_BUILD_ROOT
54
55cp -fr lib/CPData $RPM_BUILD_ROOT%{_datadir}/games/%{name}
56cp -fr lib/SPData $RPM_BUILD_ROOT%{_datadir}/games/%{name}
57cp -fr alphabetsounds/en $RPM_BUILD_ROOT%{_datadir}/games/%{name}/alphabetsounds
58cp -fr locale/* $RPM_BUILD_ROOT%{_datadir}/locale
59
60install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
61install bin/childsplay $RPM_BUILD_ROOT%{_bindir}
62install lib/SPData/menu/default/logo_cp_64x64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
63
64%py_comp $RPM_BUILD_ROOT%{_datadir}/games/%{name}
65%py_ocomp $RPM_BUILD_ROOT%{_datadir}/games/%{name}
66
67%find_lang %{name}_sp --all-name
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%files -f %{name}_sp.lang
73%defattr(644,root,root,755)
74%doc doc/*
75%attr(755,root,root) %{_bindir}/childsplay
76%{_datadir}/games/%{name}
77%{py_sitescriptdir}/childsplay_sp
78%{_desktopdir}/%{name}.desktop
79%{_pixmapsdir}/%{name}.png
80%if "%{py_ver}" > "2.4"
81%{py_sitescriptdir}/childsplay_sp-*.egg-info
82%endif
This page took 0.090299 seconds and 4 git commands to generate.