]>
Commit | Line | Data |
---|---|---|
8f283e1c WF |
1 | %define _state stable |
2 | %define orgname kjumpingcube | |
3 | %define qtver 4.8.0 | |
4 | ||
d572b2e1 WF |
5 | Summary: A little tactical game for KDE |
6 | Summary(pl.UTF-8): Prosta gra taktyczna dla KDE | |
7 | Summary(pt_BR.UTF-8): Jogo de estratégia para 2 contendores | |
8f283e1c | 8 | Name: kde4-%{orgname} |
555167f4 | 9 | Version: 4.13.0 |
8f283e1c WF |
10 | Release: 1 |
11 | License: GPL | |
12 | Group: X11/Applications/Games | |
13 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz | |
555167f4 | 14 | # Source0-md5: b393647790d4f3b311a0fa1fe9d231fe |
8f283e1c WF |
15 | BuildRequires: automoc4 >= 0.9.88 |
16 | BuildRequires: cmake >= 2.8.0 | |
17 | BuildRequires: kde4-kdelibs-devel >= %{version} | |
18 | BuildRequires: kde4-libkdegames-devel >= %{version} | |
19 | BuildRequires: qt4-build >= %{qtver} | |
20 | BuildRequires: qt4-qmake >= %{qtver} | |
21 | BuildRequires: rpmbuild(macros) >= 1.600 | |
22 | Obsoletes: kde4-kdegames-%{orgname} | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
d572b2e1 WF |
26 | KJumpingCube is a simple tactical game. You can play it against the |
27 | computer or against the friend. The playing field consists of squares | |
28 | that contains points. By clicking on the squares you can increase the | |
29 | points, and if the points reach a maximum the points will jump to the | |
30 | squares neighbours and take them over. Winer is the one, who owns all | |
31 | squares. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | KJumpingCube to prosta gra taktyczna. Można w nią grać przeciwko | |
35 | komputerowi lub przeciwko koledze. Plansza do gry zawiera pola, które | |
36 | zawierają punkty. Przez klikanie na pola zwiększa się liczbę punktów | |
37 | na nich. Gdy liczba punktów na określonym polu osiągnie maksymalną | |
38 | wartość, punkty przeskakują na sąsiednie pola przejmując je tym samym | |
39 | na własność. Zwycięzca jest jeden - to ten, kto przejmie wszystkie | |
40 | pola na własność. | |
41 | ||
42 | %description -l pt_BR.UTF-8 | |
43 | Jogo de estratégia para 2 contendores. | |
8f283e1c WF |
44 | |
45 | %prep | |
46 | %setup -q -n %{orgname}-%{version} | |
47 | ||
48 | %build | |
49 | install -d build | |
50 | cd build | |
51 | %cmake \ | |
52 | ../ | |
53 | ||
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} -C build install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT \ | |
61 | kde_htmldir=%{_kdedocdir} | |
62 | ||
63 | install -d $RPM_BUILD_ROOT/var/games | |
64 | # remove locolor icons | |
65 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor | |
66 | ||
67 | %find_lang %{orgname} --with-kde | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files -f %{orgname}.lang | |
73 | %defattr(644,root,root,755) | |
74 | %attr(755,root,root) %{_bindir}/kjumpingcube | |
75 | %{_desktopdir}/kde4/kjumpingcube.desktop | |
76 | %{_datadir}/config.kcfg/kjumpingcube.kcfg | |
77 | %{_datadir}/apps/kjumpingcube | |
78 | %{_iconsdir}/*/*/apps/kjumpingcube.png |