]> git.pld-linux.org Git - packages/ka5-kolf.git/blame - ka5-kolf.spec
- updated to 23.08.5
[packages/ka5-kolf.git] / ka5-kolf.spec
CommitLineData
638e4be2
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
40c0f1b2 4%define kdeappsver 23.08.5
892e06c0
WF
5%define kframever 5.94.0
6%define qtver 5.15.2
81ee6e04
WF
7%define kaname kolf
8Summary: kolf
9Name: ka5-%{kaname}
40c0f1b2 10Version: 23.08.5
2706ba7a 11Release: 1
81ee6e04
WF
12License: GPL v2+/LGPL v2.1+
13Group: X11/Applications/Games
2706ba7a 14Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
40c0f1b2 15# Source0-md5: e9828e89fa0880c0594a40b1d2a4a65e
81ee6e04 16URL: http://www.kde.org/
2706ba7a
WF
17BuildRequires: Qt5Core-devel >= %{qtver}
18BuildRequires: Qt5Qml-devel >= 5.11.1
19BuildRequires: Qt5Quick-devel >= 5.11.1
20BuildRequires: Qt5Widgets-devel
846f7a65 21BuildRequires: cmake >= 3.20
81ee6e04 22BuildRequires: gettext-devel
926c061b 23BuildRequires: ka5-libkdegames-devel >= %{kdeappsver}
2706ba7a
WF
24BuildRequires: kf5-kcompletion-devel >= %{kframever}
25BuildRequires: kf5-kconfig-devel >= %{kframever}
26BuildRequires: kf5-kconfigwidgets-devel >= %{kframever}
27BuildRequires: kf5-kcoreaddons-devel >= %{kframever}
28BuildRequires: kf5-kcrash-devel >= %{kframever}
29BuildRequires: kf5-kdbusaddons-devel >= %{kframever}
30BuildRequires: kf5-kdelibs4support-devel >= %{kframever}
31BuildRequires: kf5-kdoctools-devel >= %{kframever}
32BuildRequires: kf5-ki18n-devel >= %{kframever}
33BuildRequires: kf5-kio-devel >= %{kframever}
34BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever}
35BuildRequires: kf5-kxmlgui-devel >= %{kframever}
926c061b 36BuildRequires: ninja
2706ba7a 37BuildRequires: qt5-build >= %{qtver}
81ee6e04
WF
38BuildRequires: rpmbuild(macros) >= 1.164
39BuildRequires: shared-mime-info
40BuildRequires: tar >= 1:1.22
41BuildRequires: xz
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
45Kolf is a miniature golf game. The game is played from an overhead
46view, with a short bar representing the golf club. Kolf features many
47different types of objects, such water hazards, slopes, sand traps,
48and black holes (warps), among others.
49
a254f86e
WF
50%description -l pl.UTF-8
51Kolf jest miniaturową grą w golfa. Gra jest pokazywana z z góry,
52z małą poprzeczką reprezentującą klub golfowy. Kolf zawiera
53wiele różnych typów obiektów, takich jak pułapki wodne, zbocza,
54pułapki piaskowe i czarne dziury.
55
81ee6e04
WF
56%prep
57%setup -q -n %{kaname}-%{version}
58
59%build
81ee6e04 60%cmake \
846f7a65 61 -B build \
926c061b 62 -G Ninja \
638e4be2 63 %{!?with_tests:-DBUILD_TESTING=OFF} \
65a8c2ca 64 -DHTML_INSTALL_DIR=%{_kdedocdir} \
846f7a65
WF
65 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
66%ninja_build -C build
81ee6e04 67
638e4be2 68%if %{with tests}
846f7a65 69ctest --test-dir build
638e4be2
WF
70%endif
71
72
81ee6e04
WF
73%install
74rm -rf $RPM_BUILD_ROOT
926c061b 75%ninja_install -C build
81ee6e04
WF
76
77%find_lang %{kaname} --all-name --with-kde
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%files -f %{kaname}.lang
83%defattr(644,root,root,755)
84%attr(755,root,root) %{_bindir}/kolf
81ee6e04 85%{_desktopdir}/org.kde.kolf.desktop
2706ba7a
WF
86%{_iconsdir}/hicolor/128x128/apps/kolf.png
87%{_iconsdir}/hicolor/16x16/apps/kolf.png
88%{_iconsdir}/hicolor/22x22/apps/kolf.png
89%{_iconsdir}/hicolor/32x32/apps/kolf.png
90%{_iconsdir}/hicolor/48x48/apps/kolf.png
91%{_iconsdir}/hicolor/64x64/apps/kolf.png
65a8c2ca 92%{_iconsdir}/hicolor/scalable/apps/kolf.svgz
81ee6e04 93%{_datadir}/kolf
2706ba7a 94%{_datadir}/kxmlgui5/kolf
81ee6e04 95%{_datadir}/metainfo/org.kde.kolf.appdata.xml
This page took 0.802126 seconds and 4 git commands to generate.