]>
Commit | Line | Data |
---|---|---|
8decf24b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
98b3d62f | 4 | %define kdeappsver 23.04.0 |
5ea3bbf1 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
abd8a667 WF |
7 | %define kaname kanagram |
8 | Summary: kanagram | |
9 | Name: ka5-%{kaname} | |
98b3d62f WF |
10 | Version: 23.04.0 |
11 | Release: 1 | |
abd8a667 | 12 | License: GPL v2+/LGPL v2.1+ |
11306103 | 13 | Group: X11/Applications/Games |
bf7fc1b7 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
98b3d62f | 15 | # Source0-md5: 2f17a8ca07d82161623f284b733abe97 |
abd8a667 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
11306103 WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
20 | BuildRequires: Qt5OpenGL-devel | |
21 | BuildRequires: Qt5Qml-devel | |
22 | BuildRequires: Qt5Quick-devel | |
23 | BuildRequires: Qt5Widgets-devel >= 5.11.1 | |
abd8a667 | 24 | BuildRequires: cmake >= 2.8.12 |
11306103 | 25 | BuildRequires: gettext-devel |
abd8a667 | 26 | BuildRequires: ka5-libkeduvocdocument-devel >= %{version} |
2beda71d WF |
27 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
28 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
29 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
30 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
31 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
32 | BuildRequires: kf5-kdeclarative-devel >= %{kframever} | |
33 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
34 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
35 | BuildRequires: kf5-kio-devel >= %{kframever} | |
36 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
37 | BuildRequires: kf5-sonnet-devel >= %{kframever} | |
02a05a89 | 38 | BuildRequires: ninja |
abd8a667 WF |
39 | BuildRequires: qt5-build >= %{qtver} |
40 | BuildRequires: rpmbuild(macros) >= 1.164 | |
41 | BuildRequires: shared-mime-info | |
42 | BuildRequires: tar >= 1:1.22 | |
43 | BuildRequires: xz | |
1854ad77 | 44 | Requires: Qt5MultimediaQuick |
73a7399f | 45 | Requires: %{name}-data = %{version}-%{release} |
abd8a667 WF |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
11306103 WF |
49 | Kanagram is a game based on anagrams of words: the puzzle is solved |
50 | when the letters of the scrambled word are put back in the correct | |
51 | order. There is no limit on either time taken, or the amount of | |
52 | attempts to solve the word. | |
53 | ||
54 | Features | |
55 | ||
56 | • Several word lists included • Hints and cheat help system • Word | |
57 | list editor • Word lists distribution via KNewStuff • Scalable user | |
58 | interface appropriate for children | |
abd8a667 | 59 | |
701277aa WF |
60 | %description -l pl.UTF-8 |
61 | Kanagram jest grą bazującą na anagramach słów; zagadka jest rozwiązana | |
22b691b9 WF |
62 | gdy litery szukanego słowa są ustawione z powrotem w poprawnej |
63 | kolejności. Nie ma ograniczeń na wykorzystany czas ani na liczbę prób. | |
701277aa WF |
64 | |
65 | Właściwości | |
66 | ||
22b691b9 WF |
67 | • Wiele list słów wbudowanych • System podpowiedzi • Edytor listy słów |
68 | • Dystrybucja listy słów przez KNewStuff • Skalowalny interfejs | |
69 | użytkownika odpowiedni dla dzieci | |
701277aa | 70 | |
73a7399f WF |
71 | %package data |
72 | Summary: Data files for %{kaname} | |
73 | Summary(pl.UTF-8): Dane dla %{kaname} | |
74 | Group: X11/Applications/Games | |
75 | BuildArch: noarch | |
76 | ||
77 | %description data | |
78 | Data files for %{kaname}. | |
79 | ||
80 | %description data -l pl.UTF-8 | |
81 | Dane dla %{kaname}. | |
82 | ||
abd8a667 WF |
83 | %prep |
84 | %setup -q -n %{kaname}-%{version} | |
85 | ||
86 | %build | |
87 | install -d build | |
88 | cd build | |
89 | %cmake \ | |
02a05a89 | 90 | -G Ninja \ |
8decf24b | 91 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
2beda71d | 92 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
abd8a667 WF |
93 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
94 | .. | |
02a05a89 | 95 | %ninja_build |
abd8a667 | 96 | |
8decf24b WF |
97 | %if %{with tests} |
98 | ctest | |
99 | %endif | |
100 | ||
101 | ||
abd8a667 WF |
102 | %install |
103 | rm -rf $RPM_BUILD_ROOT | |
02a05a89 | 104 | %ninja_install -C build |
abd8a667 WF |
105 | |
106 | %find_lang %{kaname} --all-name --with-kde | |
107 | ||
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | ||
73a7399f | 112 | %files |
abd8a667 | 113 | %defattr(644,root,root,755) |
abd8a667 | 114 | %attr(755,root,root) %{_bindir}/kanagram |
73a7399f WF |
115 | |
116 | %files data -f %{kaname}.lang | |
117 | %defattr(644,root,root,755) | |
abd8a667 WF |
118 | %{_desktopdir}/org.kde.kanagram.desktop |
119 | %{_datadir}/config.kcfg/kanagram.kcfg | |
120 | %{_iconsdir}/hicolor/128x128/apps/kanagram.png | |
121 | %{_iconsdir}/hicolor/16x16/apps/kanagram.png | |
122 | %{_iconsdir}/hicolor/24x24/apps/kanagram.png | |
123 | %{_iconsdir}/hicolor/32x32/apps/kanagram.png | |
124 | %{_iconsdir}/hicolor/48x48/apps/kanagram.png | |
125 | %{_iconsdir}/hicolor/64x64/apps/kanagram.png | |
126 | %{_iconsdir}/hicolor/80x80/apps/kanagram-harmattan.png | |
127 | %{_iconsdir}/hicolor/scalable/apps/kanagram.svgz | |
128 | %{_datadir}/kanagram | |
129 | %{_datadir}/metainfo/org.kde.kanagram.appdata.xml | |
22b691b9 | 130 | %{_datadir}/knsrcfiles/kanagram.knsrc |