]>
Commit | Line | Data |
---|---|---|
9869de07 WF |
1 | %define _state stable |
2 | %define orgname kreversi | |
3 | %define qtver 4.8.0 | |
4 | ||
5 | Summary: KDE Reversi game | |
6 | Summary(pl.UTF-8): Gra Reversi dla KDE | |
7 | Summary(pt_BR.UTF-8): Jogo no estilo Otelo para KDE | |
8 | Name: kde4-%{orgname} | |
d50637b4 | 9 | Version: 4.14.3 |
8fd7a32e | 10 | Release: 2 |
9869de07 WF |
11 | License: GPL |
12 | Group: X11/Applications/Games | |
3971432c | 13 | Source0: http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz |
d50637b4 | 14 | # Source0-md5: 2f7f3d9666557787b170fcd97e06e6db |
9869de07 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 | Reversi is a simple strategy game that is played by two players. There | |
27 | is only one type of piece - one side of it is black, the other white. | |
28 | If a player captures a piece on the board, that piece is turned and | |
29 | belongs to that player. The winner is the person that has more pieces | |
30 | of his own color on the board and if there are no more moves possible. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Reversi to prosta gra strategiczna dla dwóch graczy. Jest tylko jeden | |
34 | rodzaj pionu - z jednej strony czarny, z drugiej biały. Jeśli gracz | |
35 | schwyta pion na planszy, jest on obracany i należy do tego gracza. | |
36 | Zwycięzcą jest osoba, która ma na planszy więcej pionów w swoim | |
37 | kolorze w chwili, gdy nie można już wykonać żadnego ruchu. | |
38 | ||
39 | %description -l pt_BR.UTF-8 | |
40 | Jogo no estilo Otelo para KDE. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{orgname}-%{version} | |
44 | ||
45 | %build | |
46 | install -d build | |
47 | cd build | |
48 | %cmake \ | |
49 | ../ | |
50 | ||
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} -C build install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT \ | |
58 | kde_htmldir=%{_kdedocdir} | |
59 | ||
60 | install -d $RPM_BUILD_ROOT/var/games | |
61 | # remove locolor icons | |
62 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor | |
63 | ||
64 | %find_lang %{orgname} --with-kde | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files -f %{orgname}.lang | |
70 | %defattr(644,root,root,755) | |
71 | %attr(755,root,root) %{_bindir}/kreversi | |
72 | %{_desktopdir}/kde4/kreversi.desktop | |
73 | %{_datadir}/apps/kreversi | |
74 | %{_iconsdir}/*/*/actions/legalmoves.png | |
75 | %{_iconsdir}/*/*/actions/lastmoves.png | |
76 | %{_iconsdir}/*/*/apps/kreversi.png | |
77 | %{_iconsdir}/oxygen/scalable/actions/*.svgz |