]>
Commit | Line | Data |
---|---|---|
33a938a3 | 1 | %define kdeappsver 21.04.3 |
00676d72 | 2 | %define kframever 5.56.0 |
9d6a6c6e WF |
3 | %define qtver 5.9.0 |
4 | %define kaname klines | |
5 | Summary: klines | |
6 | Name: ka5-%{kaname} | |
33a938a3 | 7 | Version: 21.04.3 |
9d6a6c6e WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Applications/Games | |
1e9c149d | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
33a938a3 | 12 | # Source0-md5: 517e775101e56e7a0a970a7956e822c7 |
9d6a6c6e WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
16 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
17 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
18 | BuildRequires: Qt5Widgets-devel | |
19 | BuildRequires: cmake >= 2.8.12 | |
20 | BuildRequires: gettext-devel | |
8495cdb6 | 21 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
00676d72 WF |
22 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
23 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
24 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
25 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
26 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
27 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
29 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
30 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
31 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
8495cdb6 | 32 | BuildRequires: ninja |
9d6a6c6e WF |
33 | BuildRequires: qt5-build >= %{qtver} |
34 | BuildRequires: rpmbuild(macros) >= 1.164 | |
35 | BuildRequires: shared-mime-info | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: xz | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | KLines is a simple but highly addictive one player game. The player | |
42 | has to move the colored balls around the game board, gathering them | |
43 | into the lines of the same color by five. Once the line is complete it | |
44 | is removed from the board, therefore freeing precious space. | |
45 | ||
fef799c4 WF |
46 | %description -l pl.UTF-8 |
47 | KLines jest prostą albo bardzo wciągającą grą dla jednej osoby. Gracz | |
48 | ma przemieszczać kolorowe piłki po planszy, zbierając je po pięć | |
49 | w linii jednego koloru. Kompletne linie są usuwane z planszy | |
50 | zwalniając cenne miejsce. | |
51 | ||
9d6a6c6e WF |
52 | %prep |
53 | %setup -q -n %{kaname}-%{version} | |
54 | ||
55 | %build | |
56 | install -d build | |
57 | cd build | |
58 | %cmake \ | |
8495cdb6 | 59 | -G Ninja \ |
00676d72 | 60 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
9d6a6c6e WF |
61 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
62 | .. | |
8495cdb6 | 63 | %ninja_build |
9d6a6c6e WF |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
8495cdb6 | 67 | %ninja_install -C build |
9d6a6c6e WF |
68 | |
69 | %find_lang %{kaname} --all-name --with-kde | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files -f %{kaname}.lang | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_bindir}/klines | |
77 | %{_desktopdir}/org.kde.klines.desktop | |
78 | %{_datadir}/config.kcfg/klines.kcfg | |
79 | %{_iconsdir}/hicolor/128x128/apps/klines.png | |
80 | %{_iconsdir}/hicolor/16x16/apps/klines.png | |
81 | %{_iconsdir}/hicolor/22x22/apps/klines.png | |
82 | %{_iconsdir}/hicolor/32x32/apps/klines.png | |
83 | %{_iconsdir}/hicolor/48x48/apps/klines.png | |
84 | %{_iconsdir}/hicolor/64x64/apps/klines.png | |
85 | %{_datadir}/klines | |
86 | %{_datadir}/metainfo/org.kde.klines.appdata.xml | |
1e9c149d | 87 | %{_datadir}/qlogging-categories5/klines.categories |