]>
Commit | Line | Data |
---|---|---|
638e4be2 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
84359701 | 4 | %define kdeappsver 22.04.0 |
65a8c2ca | 5 | %define kframever 5.56.0 |
81ee6e04 WF |
6 | %define qtver 5.9.0 |
7 | %define kaname kolf | |
8 | Summary: kolf | |
9 | Name: ka5-%{kaname} | |
84359701 | 10 | Version: 22.04.0 |
81ee6e04 WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Applications/Games | |
043a670a | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
84359701 | 15 | # Source0-md5: 74d51624f94bcbd2e48a65e2da020384 |
81ee6e04 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Widgets-devel | |
21 | BuildRequires: cmake >= 2.8.12 | |
22 | BuildRequires: gettext-devel | |
926c061b | 23 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
65a8c2ca WF |
24 | BuildRequires: kf5-kcompletion-devel >= %{kframever} |
25 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
26 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
27 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
29 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
30 | BuildRequires: kf5-kdelibs4support-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} | |
926c061b | 36 | BuildRequires: ninja |
81ee6e04 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 | Kolf is a miniature golf game. The game is played from an overhead | |
46 | view, with a short bar representing the golf club. Kolf features many | |
47 | different types of objects, such water hazards, slopes, sand traps, | |
48 | and black holes (warps), among others. | |
49 | ||
a254f86e WF |
50 | %description -l pl.UTF-8 |
51 | Kolf jest miniaturową grą w golfa. Gra jest pokazywana z z góry, | |
52 | z małą poprzeczką reprezentującą klub golfowy. Kolf zawiera | |
53 | wiele różnych typów obiektów, takich jak pułapki wodne, zbocza, | |
54 | pułapki piaskowe i czarne dziury. | |
55 | ||
81ee6e04 WF |
56 | %prep |
57 | %setup -q -n %{kaname}-%{version} | |
58 | ||
59 | %build | |
60 | install -d build | |
61 | cd build | |
62 | %cmake \ | |
926c061b | 63 | -G Ninja \ |
638e4be2 | 64 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
65a8c2ca | 65 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
81ee6e04 WF |
66 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
67 | .. | |
926c061b | 68 | %ninja_build |
81ee6e04 | 69 | |
638e4be2 WF |
70 | %if %{with tests} |
71 | ctest | |
72 | %endif | |
73 | ||
74 | ||
81ee6e04 WF |
75 | %install |
76 | rm -rf $RPM_BUILD_ROOT | |
926c061b | 77 | %ninja_install -C build |
81ee6e04 WF |
78 | |
79 | %find_lang %{kaname} --all-name --with-kde | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files -f %{kaname}.lang | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_bindir}/kolf | |
81ee6e04 WF |
87 | %{_desktopdir}/org.kde.kolf.desktop |
88 | %{_iconsdir}/hicolor/128x128/apps/kolf.png | |
89 | %{_iconsdir}/hicolor/16x16/apps/kolf.png | |
90 | %{_iconsdir}/hicolor/22x22/apps/kolf.png | |
91 | %{_iconsdir}/hicolor/32x32/apps/kolf.png | |
92 | %{_iconsdir}/hicolor/48x48/apps/kolf.png | |
93 | %{_iconsdir}/hicolor/64x64/apps/kolf.png | |
65a8c2ca | 94 | %{_iconsdir}/hicolor/scalable/apps/kolf.svgz |
81ee6e04 WF |
95 | %{_datadir}/kolf |
96 | %{_datadir}/kxmlgui5/kolf | |
97 | %{_datadir}/metainfo/org.kde.kolf.appdata.xml |