]>
Commit | Line | Data |
---|---|---|
92df15de WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
b88d08fe | 4 | %define kdeappsver 23.04.1 |
508b561c WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
7503f0bb WF |
7 | %define kaname klickety |
8 | Summary: klickety | |
9 | Name: ka5-%{kaname} | |
b88d08fe | 10 | Version: 23.04.1 |
beccd391 | 11 | Release: 1 |
7503f0bb WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications/Games | |
b8cb1438 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
b88d08fe | 15 | # Source0-md5: 8aa8bfdaa569311d8d328ef43fa5b9e2 |
7503f0bb WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Widgets-devel | |
22 | BuildRequires: cmake >= 2.8.12 | |
23 | BuildRequires: gettext-devel | |
fcafcc36 | 24 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
94fb7f65 WF |
25 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
26 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
27 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
28 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
29 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
30 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
31 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
32 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
33 | BuildRequires: kf5-kio-devel >= %{kframever} | |
34 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
35 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
fcafcc36 | 36 | BuildRequires: ninja |
7503f0bb WF |
37 | BuildRequires: qt5-build >= %{qtver} |
38 | BuildRequires: rpmbuild(macros) >= 1.164 | |
39 | BuildRequires: shared-mime-info | |
40 | BuildRequires: tar >= 1:1.22 | |
41 | BuildRequires: xz | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | Klickety is a simple, yet challenging color matching game modeled | |
46 | after once famous game of SameGame.The idea behind Klickety is to | |
47 | completely clear the game board filled with the multicolored marbles. | |
48 | ||
03063b46 WF |
49 | %description -l pl.UTF-8 |
50 | Klickety to prosta, ale wymagająca gra, wzororowana na słynnej grze | |
51 | SameGame. Celem gry jest całkowite wyczyszczenie planszy wypełnionej | |
52 | wielobrawnymi gałkami. | |
53 | ||
7503f0bb WF |
54 | %prep |
55 | %setup -q -n %{kaname}-%{version} | |
56 | ||
57 | %build | |
58 | install -d build | |
59 | cd build | |
60 | %cmake \ | |
fcafcc36 | 61 | -G Ninja \ |
92df15de | 62 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
94fb7f65 | 63 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
7503f0bb WF |
64 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
65 | .. | |
fcafcc36 | 66 | %ninja_build |
7503f0bb | 67 | |
92df15de WF |
68 | %if %{with tests} |
69 | ctest | |
70 | %endif | |
71 | ||
72 | ||
7503f0bb WF |
73 | %install |
74 | rm -rf $RPM_BUILD_ROOT | |
fcafcc36 | 75 | %ninja_install -C build |
7503f0bb WF |
76 | |
77 | %find_lang %{kaname} --all-name --with-kde | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files -f %{kaname}.lang | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_bindir}/klickety | |
85 | %{_desktopdir}/org.kde.klickety.desktop | |
86 | %{_desktopdir}/org.kde.ksame.desktop | |
87 | %{_iconsdir}/hicolor/128x128/apps/klickety.png | |
88 | %{_iconsdir}/hicolor/128x128/apps/ksame.png | |
89 | %{_iconsdir}/hicolor/16x16/apps/klickety.png | |
90 | %{_iconsdir}/hicolor/16x16/apps/ksame.png | |
91 | %{_iconsdir}/hicolor/22x22/apps/klickety.png | |
92 | %{_iconsdir}/hicolor/22x22/apps/ksame.png | |
93 | %{_iconsdir}/hicolor/32x32/apps/klickety.png | |
94 | %{_iconsdir}/hicolor/32x32/apps/ksame.png | |
95 | %{_iconsdir}/hicolor/48x48/apps/klickety.png | |
96 | %{_iconsdir}/hicolor/48x48/apps/ksame.png | |
97 | %{_iconsdir}/hicolor/64x64/apps/klickety.png | |
98 | %{_iconsdir}/hicolor/64x64/apps/ksame.png | |
79cef7fe | 99 | %attr(755,root,root) %{_datadir}/kconf_update/klickety-2.0-inherit-ksame-highscore.pl |
7503f0bb WF |
100 | %{_datadir}/kconf_update/klickety.upd |
101 | %{_datadir}/klickety | |
7503f0bb WF |
102 | %{_datadir}/metainfo/org.kde.klickety.appdata.xml |
103 | %{_datadir}/metainfo/org.kde.ksame.appdata.xml | |
104 | %{_datadir}/sounds/klickety |