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