]>
Commit | Line | Data |
---|---|---|
8decf24b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
e951824c | 4 | %define kdeappsver 22.08.1 |
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} | |
e951824c | 10 | Version: 22.08.1 |
daf496c1 | 11 | Release: 3 |
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 |
e951824c | 15 | # Source0-md5: e5634578674e2ed5c40f129522060665 |
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 |
abd8a667 WF |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
11306103 WF |
48 | Kanagram is a game based on anagrams of words: the puzzle is solved |
49 | when the letters of the scrambled word are put back in the correct | |
50 | order. There is no limit on either time taken, or the amount of | |
51 | attempts to solve the word. | |
52 | ||
53 | Features | |
54 | ||
55 | • Several word lists included • Hints and cheat help system • Word | |
56 | list editor • Word lists distribution via KNewStuff • Scalable user | |
57 | interface appropriate for children | |
abd8a667 | 58 | |
701277aa WF |
59 | %description -l pl.UTF-8 |
60 | Kanagram jest grą bazującą na anagramach słów; zagadka jest rozwiązana | |
22b691b9 WF |
61 | gdy litery szukanego słowa są ustawione z powrotem w poprawnej |
62 | kolejności. Nie ma ograniczeń na wykorzystany czas ani na liczbę prób. | |
701277aa WF |
63 | |
64 | Właściwości | |
65 | ||
22b691b9 WF |
66 | • Wiele list słów wbudowanych • System podpowiedzi • Edytor listy słów |
67 | • Dystrybucja listy słów przez KNewStuff • Skalowalny interfejs | |
68 | użytkownika odpowiedni dla dzieci | |
701277aa | 69 | |
abd8a667 WF |
70 | %prep |
71 | %setup -q -n %{kaname}-%{version} | |
72 | ||
73 | %build | |
74 | install -d build | |
75 | cd build | |
76 | %cmake \ | |
02a05a89 | 77 | -G Ninja \ |
8decf24b | 78 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
2beda71d | 79 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
abd8a667 WF |
80 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
81 | .. | |
02a05a89 | 82 | %ninja_build |
abd8a667 | 83 | |
8decf24b WF |
84 | %if %{with tests} |
85 | ctest | |
86 | %endif | |
87 | ||
88 | ||
abd8a667 WF |
89 | %install |
90 | rm -rf $RPM_BUILD_ROOT | |
02a05a89 | 91 | %ninja_install -C build |
abd8a667 WF |
92 | |
93 | %find_lang %{kaname} --all-name --with-kde | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | ||
99 | %files -f %{kaname}.lang | |
100 | %defattr(644,root,root,755) | |
abd8a667 WF |
101 | %attr(755,root,root) %{_bindir}/kanagram |
102 | %{_desktopdir}/org.kde.kanagram.desktop | |
103 | %{_datadir}/config.kcfg/kanagram.kcfg | |
104 | %{_iconsdir}/hicolor/128x128/apps/kanagram.png | |
105 | %{_iconsdir}/hicolor/16x16/apps/kanagram.png | |
106 | %{_iconsdir}/hicolor/24x24/apps/kanagram.png | |
107 | %{_iconsdir}/hicolor/32x32/apps/kanagram.png | |
108 | %{_iconsdir}/hicolor/48x48/apps/kanagram.png | |
109 | %{_iconsdir}/hicolor/64x64/apps/kanagram.png | |
110 | %{_iconsdir}/hicolor/80x80/apps/kanagram-harmattan.png | |
111 | %{_iconsdir}/hicolor/scalable/apps/kanagram.svgz | |
112 | %{_datadir}/kanagram | |
113 | %{_datadir}/metainfo/org.kde.kanagram.appdata.xml | |
22b691b9 | 114 | %{_datadir}/knsrcfiles/kanagram.knsrc |