]>
Commit | Line | Data |
---|---|---|
f0a92c06 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
6ef23fe9 | 4 | %define kdeappsver 23.08.5 |
f906ce4e WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
d76e5194 WF |
7 | %define kaname kreversi |
8 | Summary: kreversi | |
9 | Name: ka5-%{kaname} | |
6ef23fe9 | 10 | Version: 23.08.5 |
4248d6e7 | 11 | Release: 1 |
d76e5194 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications/Games | |
4248d6e7 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
6ef23fe9 | 15 | # Source0-md5: d20cede89a241252e2e943dc8842be72 |
d76e5194 | 16 | URL: http://www.kde.org/ |
4248d6e7 WF |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
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 | |
33f070f3 | 25 | BuildRequires: cmake >= 3.20 |
9576c981 | 26 | BuildRequires: gettext-devel |
269157b2 | 27 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
4248d6e7 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 |
4248d6e7 | 41 | BuildRequires: qt5-build >= %{qtver} |
d76e5194 WF |
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 | |
d76e5194 | 65 | %cmake \ |
33f070f3 | 66 | -B build \ |
269157b2 | 67 | -G Ninja \ |
f0a92c06 | 68 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
dd849441 | 69 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
33f070f3 WF |
70 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
71 | %ninja_build -C build | |
d76e5194 | 72 | |
f0a92c06 | 73 | %if %{with tests} |
33f070f3 | 74 | ctest --test-dir build |
f0a92c06 WF |
75 | %endif |
76 | ||
77 | ||
d76e5194 WF |
78 | %install |
79 | rm -rf $RPM_BUILD_ROOT | |
269157b2 | 80 | %ninja_install -C build |
d76e5194 WF |
81 | |
82 | %find_lang %{kaname} --all-name --with-kde | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | ||
88 | %files -f %{kaname}.lang | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_bindir}/kreversi | |
91 | %{_desktopdir}/org.kde.kreversi.desktop | |
4248d6e7 WF |
92 | %{_iconsdir}/hicolor/128x128/apps/kreversi.png |
93 | %{_iconsdir}/hicolor/16x16/actions/lastmoves.png | |
94 | %{_iconsdir}/hicolor/16x16/actions/legalmoves.png | |
95 | %{_iconsdir}/hicolor/16x16/apps/kreversi.png | |
96 | %{_iconsdir}/hicolor/22x22/actions/lastmoves.png | |
97 | %{_iconsdir}/hicolor/22x22/actions/legalmoves.png | |
98 | %{_iconsdir}/hicolor/22x22/apps/kreversi.png | |
99 | %{_iconsdir}/hicolor/32x32/actions/lastmoves.png | |
100 | %{_iconsdir}/hicolor/32x32/actions/legalmoves.png | |
101 | %{_iconsdir}/hicolor/32x32/apps/kreversi.png | |
102 | %{_iconsdir}/hicolor/48x48/actions/lastmoves.png | |
103 | %{_iconsdir}/hicolor/48x48/actions/legalmoves.png | |
104 | %{_iconsdir}/hicolor/48x48/apps/kreversi.png | |
105 | %{_iconsdir}/hicolor/64x64/apps/kreversi.png | |
106 | %{_iconsdir}/hicolor/scalable/actions/lastmoves.svgz | |
107 | %{_iconsdir}/hicolor/scalable/actions/legalmoves.svgz | |
108 | %{_datadir}/knotifications5/kreversi.notifyrc | |
d76e5194 WF |
109 | %{_datadir}/kreversi |
110 | %{_datadir}/metainfo/org.kde.kreversi.appdata.xml |