]>
Commit | Line | Data |
---|---|---|
80b71c2a WF |
1 | %define _state stable |
2 | %define orgname lskat | |
3 | %define qtver 4.8.0 | |
4 | ||
5 | Summary: KDE lskat | |
6 | Summary(pl.UTF-8): Lskat dla KDE | |
7 | Summary(pt_BR.UTF-8): Jogo de cartas Lieutenant Skat para KDE | |
8 | Name: kde4-%{orgname} | |
b068a4a3 | 9 | Version: 4.12.4 |
80b71c2a 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 | |
b068a4a3 | 14 | # Source0-md5: 19e6043c3b2d82d2937867d5a539fec7 |
80b71c2a 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 | |
26 | Lieutenant skat (from German Offiziersskat) is a card game for two | |
27 | players. It is roughly played according to the rules of Skat but with | |
28 | only two players and simplified rules. Every player has a set of cards | |
29 | in front of him/her, half of them covered and half of them open. Both | |
30 | players try to win more than 60 of the 120 possible points. After 16 | |
31 | moves all cards are played and the game ends. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Lieutenant skat (oficerski skat, od niemieckiego Offizierskat) to gra | |
35 | karciana dla dwóch graczy. Jest rozgrywana z grubsza na zasadach | |
36 | skata, ale tylko między dwoma graczami i z uproszczonymi zasadami. | |
37 | Każdy gracz ma zestaw kart przed sobą, z których połowa jest zakryta, | |
38 | a połowa odkryta. Obaj gracze próbują wygrać ponad 60 ze 120 możliwych | |
39 | punktów. Po 16 ruchach wszystkie karty są rozegrane i gra się kończy. | |
40 | ||
41 | %description -l pt_BR.UTF-8 | |
42 | Jogo de cartas Lieutenant Skat para KDE | |
43 | ||
44 | %prep | |
45 | %setup -q -n %{orgname}-%{version} | |
46 | ||
47 | %build | |
48 | install -d build | |
49 | cd build | |
50 | %cmake \ | |
51 | ../ | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} -C build install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT \ | |
60 | kde_htmldir=%{_kdedocdir} | |
61 | ||
62 | install -d $RPM_BUILD_ROOT/var/games | |
63 | # remove locolor icons | |
64 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor | |
65 | ||
66 | %find_lang %{orgname} --with-kde | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files -f %{orgname}.lang | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_bindir}/lskat | |
74 | %{_desktopdir}/kde4/lskat.desktop | |
75 | %{_datadir}/apps/lskat | |
76 | %{_iconsdir}/*/*/apps/lskat.png |