]> git.pld-linux.org Git - packages/ka5-kblocks.git/blame - ka5-kblocks.spec
- updated to 23.08.2
[packages/ka5-kblocks.git] / ka5-kblocks.spec
CommitLineData
b096654a
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
b001dad4 4%define kdeappsver 23.08.2
498a813b
WF
5%define kframever 5.94.0
6%define qtver 5.15.2
483e87bb
WF
7%define kaname kblocks
8Summary: Kblocks
9Name: ka5-%{kaname}
b001dad4 10Version: 23.08.2
11c8c311 11Release: 1
483e87bb
WF
12License: GPL v2+/LGPL v2.1+
13Group: X11/Applications/Games
0d529cf5 14Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
b001dad4 15# Source0-md5: 44f72110377b00d74de088d2323c1e0c
483e87bb
WF
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel >= %{qtver}
18BuildRequires: Qt5Gui-devel >= 5.11.1
19BuildRequires: Qt5Network-devel
20BuildRequires: Qt5Qml-devel >= 5.11.1
21BuildRequires: Qt5Quick-devel >= 5.11.1
22BuildRequires: Qt5Svg-devel
23BuildRequires: Qt5Widgets-devel
6eea7480 24BuildRequires: cmake >= 3.20
483e87bb 25BuildRequires: gettext-devel
fcf7818e 26BuildRequires: ka5-libkdegames-devel >= %{kdeappsver}
fe0088e9
WF
27BuildRequires: kf5-extra-cmake-modules >= %{kframever}
28BuildRequires: kf5-kconfig-devel >= %{kframever}
29BuildRequires: kf5-kconfigwidgets-devel >= %{kframever}
30BuildRequires: kf5-kcoreaddons-devel >= %{kframever}
31BuildRequires: kf5-kcrash-devel >= %{kframever}
32BuildRequires: kf5-kdbusaddons-devel >= %{kframever}
33BuildRequires: kf5-kdoctools-devel >= %{kframever}
34BuildRequires: kf5-ki18n-devel >= %{kframever}
35BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever}
36BuildRequires: kf5-kxmlgui-devel >= %{kframever}
fcf7818e 37BuildRequires: ninja
483e87bb
WF
38BuildRequires: qt5-build >= %{qtver}
39BuildRequires: rpmbuild(macros) >= 1.164
40BuildRequires: shared-mime-info
41BuildRequires: tar >= 1:1.22
42BuildRequires: xz
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46KBlocks is the classic falling blocks game. The idea is to stack the
47falling blocks to create horizontal lines without any gaps. When a
48line is completed it is removed, and more space is available in the
49play area. When there is not enough space for blocks to fall, the game
50is over.
51
17375938
WF
52%description -l pl.UTF-8
53KBlocks jest klasyczną grą w spadające bloki. Ideą gry jest
54układać spadające bloki tak, aby tworzyły poziome linie bez przerw.
55Kompletne linie są usuwane i robi się więcej miejsca w obszarze gry.
56Gdy nie ma już miejsca na spadające bloki, gra się kończy.
57
483e87bb
WF
58%prep
59%setup -q -n %{kaname}-%{version}
60
61%build
483e87bb 62%cmake \
6eea7480 63 -B build \
fcf7818e 64 -G Ninja \
b096654a 65 %{!?with_tests:-DBUILD_TESTING=OFF} \
fe0088e9 66 -DHTML_INSTALL_DIR=%{_kdedocdir} \
6eea7480
WF
67 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
68%ninja_build -C build
483e87bb 69
b096654a 70%if %{with tests}
6eea7480 71ctest --test-dir build
b096654a
WF
72%endif
73
74
483e87bb
WF
75%install
76rm -rf $RPM_BUILD_ROOT
fcf7818e 77%ninja_install -C build
483e87bb
WF
78
79%find_lang %{kaname} --all-name --with-kde
80
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%files -f %{kaname}.lang
85%defattr(644,root,root,755)
483e87bb
WF
86%attr(755,root,root) %{_bindir}/kblocks
87%{_desktopdir}/org.kde.kblocks.desktop
88%{_datadir}/config.kcfg/kblocks.kcfg
89%{_iconsdir}/hicolor/128x128/apps/kblocks.png
90%{_iconsdir}/hicolor/16x16/apps/kblocks.png
91%{_iconsdir}/hicolor/22x22/apps/kblocks.png
92%{_iconsdir}/hicolor/32x32/apps/kblocks.png
93%{_iconsdir}/hicolor/48x48/apps/kblocks.png
94%{_iconsdir}/hicolor/64x64/apps/kblocks.png
95%{_datadir}/kblocks
483e87bb 96%{_datadir}/metainfo/org.kde.kblocks.appdata.xml
9bf70a85
WF
97%{_datadir}/qlogging-categories5/kblocks.categories
98%{_datadir}/knsrcfiles/kblocks.knsrc
This page took 0.660339 seconds and 4 git commands to generate.