]>
Commit | Line | Data |
---|---|---|
fcf7818e | 1 | %define kdeappsver 18.12.1 |
483e87bb WF |
2 | %define qtver 5.9.0 |
3 | %define kaname kblocks | |
4 | Summary: Kblocks | |
5 | Name: ka5-%{kaname} | |
fcf7818e | 6 | Version: 18.12.1 |
483e87bb WF |
7 | Release: 1 |
8 | License: GPL v2+/LGPL v2.1+ | |
9 | Group: X11/Applications/Games | |
10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
fcf7818e | 11 | # Source0-md5: 6407acfb7713d4c82d04d1c06aedc45a |
483e87bb WF |
12 | URL: http://www.kde.org/ |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
14 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
15 | BuildRequires: Qt5Network-devel | |
16 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
17 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
18 | BuildRequires: Qt5Svg-devel | |
19 | BuildRequires: Qt5Widgets-devel | |
20 | BuildRequires: cmake >= 2.8.12 | |
21 | BuildRequires: gettext-devel | |
fcf7818e | 22 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
483e87bb WF |
23 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 |
24 | BuildRequires: kf5-kconfig-devel >= 5.30.0 | |
25 | BuildRequires: kf5-kconfigwidgets-devel >= 5.30.0 | |
26 | BuildRequires: kf5-kcoreaddons-devel >= 5.30.0 | |
27 | BuildRequires: kf5-kcrash-devel >= 5.30.0 | |
28 | BuildRequires: kf5-kdbusaddons-devel >= 5.30.0 | |
29 | BuildRequires: kf5-kdoctools-devel >= 5.30.0 | |
30 | BuildRequires: kf5-ki18n-devel >= 5.30.0 | |
31 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.30.0 | |
32 | BuildRequires: kf5-kxmlgui-devel >= 5.30.0 | |
fcf7818e | 33 | BuildRequires: ninja |
483e87bb WF |
34 | BuildRequires: qt5-build >= %{qtver} |
35 | BuildRequires: rpmbuild(macros) >= 1.164 | |
36 | BuildRequires: shared-mime-info | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xz | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | KBlocks is the classic falling blocks game. The idea is to stack the | |
43 | falling blocks to create horizontal lines without any gaps. When a | |
44 | line is completed it is removed, and more space is available in the | |
45 | play area. When there is not enough space for blocks to fall, the game | |
46 | is over. | |
47 | ||
48 | %prep | |
49 | %setup -q -n %{kaname}-%{version} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
54 | %cmake \ | |
fcf7818e | 55 | -G Ninja \ |
483e87bb WF |
56 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
57 | .. | |
fcf7818e | 58 | %ninja_build |
483e87bb WF |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
fcf7818e | 62 | %ninja_install -C build |
483e87bb WF |
63 | |
64 | %find_lang %{kaname} --all-name --with-kde | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files -f %{kaname}.lang | |
70 | %defattr(644,root,root,755) | |
71 | /etc/xdg/kblocks.categories | |
72 | /etc/xdg/kblocks.knsrc | |
73 | %attr(755,root,root) %{_bindir}/kblocks | |
74 | %{_desktopdir}/org.kde.kblocks.desktop | |
75 | %{_datadir}/config.kcfg/kblocks.kcfg | |
76 | %{_iconsdir}/hicolor/128x128/apps/kblocks.png | |
77 | %{_iconsdir}/hicolor/16x16/apps/kblocks.png | |
78 | %{_iconsdir}/hicolor/22x22/apps/kblocks.png | |
79 | %{_iconsdir}/hicolor/32x32/apps/kblocks.png | |
80 | %{_iconsdir}/hicolor/48x48/apps/kblocks.png | |
81 | %{_iconsdir}/hicolor/64x64/apps/kblocks.png | |
82 | %{_datadir}/kblocks | |
83 | %{_datadir}/kxmlgui5/kblocks | |
84 | %{_datadir}/metainfo/org.kde.kblocks.appdata.xml |