]>
Commit | Line | Data |
---|---|---|
f0a92c06 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
af262274 | 4 | %define kdeappsver 21.12.3 |
dd849441 | 5 | %define kframever 5.56.0 |
9576c981 | 6 | %define qtver 5.9.0 |
d76e5194 WF |
7 | %define kaname kreversi |
8 | Summary: kreversi | |
9 | Name: ka5-%{kaname} | |
af262274 | 10 | Version: 21.12.3 |
d76e5194 WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Applications/Games | |
1c04928a | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
af262274 | 15 | # Source0-md5: 7dcdeff3ee35efa863070d75bdc6a728 |
d76e5194 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
9576c981 WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Qml-devel | |
21 | BuildRequires: Qt5Quick-devel | |
22 | BuildRequires: Qt5Svg-devel | |
23 | BuildRequires: Qt5Test-devel | |
24 | BuildRequires: Qt5Widgets-devel | |
d76e5194 | 25 | BuildRequires: cmake >= 2.8.12 |
9576c981 | 26 | BuildRequires: gettext-devel |
269157b2 | 27 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
dd849441 WF |
28 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
29 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
30 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
31 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
32 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
33 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
34 | BuildRequires: kf5-kdeclarative-devel >= %{kframever} | |
35 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
36 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
37 | BuildRequires: kf5-kio-devel >= %{kframever} | |
38 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
39 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
269157b2 | 40 | BuildRequires: ninja |
d76e5194 WF |
41 | BuildRequires: qt5-build >= %{qtver} |
42 | BuildRequires: rpmbuild(macros) >= 1.164 | |
43 | BuildRequires: shared-mime-info | |
44 | BuildRequires: tar >= 1:1.22 | |
45 | BuildRequires: xz | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
9576c981 WF |
49 | KReversi is a simple one player strategy game played against the |
50 | computer. If a player's piece is captured by an opposing player, that | |
51 | piece is turned over to reveal the color of that player. A winner is | |
52 | declared when one player has more pieces of his own color on the board | |
53 | and there are no more possible moves. | |
d76e5194 | 54 | |
88d15703 WF |
55 | %description -l pl.UTF-8 |
56 | Kreversi jest prostą grą strategiczną. Gracz gra przeciwko komputerowi. | |
57 | Jeśli pionek gracza jest zdobyty przez oponenta, to zmienia swój kolor | |
58 | na kolor przeciwnika. Zwycięzcą jest ten z graczy, który ma więcej | |
59 | pionków w swoim kolorze, gdy na planszy nie można już wykonać ruchu. | |
60 | ||
d76e5194 WF |
61 | %prep |
62 | %setup -q -n %{kaname}-%{version} | |
63 | ||
64 | %build | |
65 | install -d build | |
66 | cd build | |
67 | %cmake \ | |
269157b2 | 68 | -G Ninja \ |
f0a92c06 | 69 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
dd849441 | 70 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
d76e5194 WF |
71 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
72 | .. | |
269157b2 | 73 | %ninja_build |
d76e5194 | 74 | |
f0a92c06 WF |
75 | %if %{with tests} |
76 | ctest | |
77 | %endif | |
78 | ||
79 | ||
d76e5194 WF |
80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
269157b2 | 82 | %ninja_install -C build |
d76e5194 WF |
83 | |
84 | %find_lang %{kaname} --all-name --with-kde | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | ||
90 | %files -f %{kaname}.lang | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_bindir}/kreversi | |
93 | %{_desktopdir}/org.kde.kreversi.desktop | |
94 | %{_iconsdir}/hicolor/128x128/apps/kreversi.png | |
95 | %{_iconsdir}/hicolor/16x16/actions/lastmoves.png | |
96 | %{_iconsdir}/hicolor/16x16/actions/legalmoves.png | |
97 | %{_iconsdir}/hicolor/16x16/apps/kreversi.png | |
98 | %{_iconsdir}/hicolor/22x22/actions/lastmoves.png | |
99 | %{_iconsdir}/hicolor/22x22/actions/legalmoves.png | |
100 | %{_iconsdir}/hicolor/22x22/apps/kreversi.png | |
101 | %{_iconsdir}/hicolor/32x32/actions/lastmoves.png | |
102 | %{_iconsdir}/hicolor/32x32/actions/legalmoves.png | |
103 | %{_iconsdir}/hicolor/32x32/apps/kreversi.png | |
104 | %{_iconsdir}/hicolor/48x48/actions/lastmoves.png | |
105 | %{_iconsdir}/hicolor/48x48/actions/legalmoves.png | |
106 | %{_iconsdir}/hicolor/48x48/apps/kreversi.png | |
107 | %{_iconsdir}/hicolor/64x64/apps/kreversi.png | |
108 | %{_iconsdir}/hicolor/scalable/actions/lastmoves.svgz | |
109 | %{_iconsdir}/hicolor/scalable/actions/legalmoves.svgz | |
110 | %{_datadir}/knotifications5/kreversi.notifyrc | |
111 | %{_datadir}/kreversi | |
112 | %{_datadir}/metainfo/org.kde.kreversi.appdata.xml |