2 %define orgname kreversi
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
12 Group: X11/Applications/Games
13 Source0: http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
14 # Source0-md5: 2f7f3d9666557787b170fcd97e06e6db
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)
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.
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.
39 %description -l pt_BR.UTF-8
40 Jogo no estilo Otelo para KDE.
43 %setup -q -n %{orgname}-%{version}
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} -C build install \
57 DESTDIR=$RPM_BUILD_ROOT \
58 kde_htmldir=%{_kdedocdir}
60 install -d $RPM_BUILD_ROOT/var/games
61 # remove locolor icons
62 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor
64 %find_lang %{orgname} --with-kde
67 rm -rf $RPM_BUILD_ROOT
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