]>
Commit | Line | Data |
---|---|---|
68050b6e WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
01dd4c85 | 4 | %define kdeappsver 24.01.95 |
442b5484 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
23a17d76 WF |
7 | %define kaname parley |
8 | Summary: parley | |
9 | Name: ka5-%{kaname} | |
01dd4c85 WF |
10 | Version: 24.01.95 |
11 | Release: 0.1 | |
23a17d76 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
01dd4c85 WF |
14 | Source0: https://download.kde.org/unstable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
15 | # Source0-md5: ff5af293da4d33fa437c5b8aa9c515ca | |
b2b9f416 | 16 | URL: https://www.kde.org/ |
01dd4c85 WF |
17 | BuildRequires: Qt6Concurrent-devel |
18 | BuildRequires: Qt6Core-devel >= %{qtver} | |
19 | BuildRequires: Qt6Gui-devel >= 5.11.1 | |
20 | BuildRequires: Qt6Multimedia-devel | |
21 | BuildRequires: Qt6Network-devel >= 5.11.1 | |
22 | BuildRequires: Qt6Positioning-devel >= 5.11.1 | |
23 | BuildRequires: Qt6PrintSupport-devel >= 5.11.1 | |
24 | BuildRequires: Qt6Qml-devel >= 5.11.1 | |
25 | BuildRequires: Qt6Quick-devel >= 5.11.1 | |
26 | BuildRequires: Qt6Svg-devel | |
27 | BuildRequires: Qt6Test-devel | |
28 | BuildRequires: Qt6WebChannel-devel >= 5.11.1 | |
29 | BuildRequires: Qt6WebEngine-devel >= 5.11.1 | |
30 | BuildRequires: Qt6Widgets-devel >= 5.11.1 | |
b935d865 | 31 | BuildRequires: cmake >= 3.20 |
23a17d76 | 32 | BuildRequires: gettext-devel |
d9c7e662 | 33 | BuildRequires: ka5-libkeduvocdocument-devel >= %{kdeappsver} |
01dd4c85 WF |
34 | BuildRequires: kf6-extra-cmake-modules >= %{kframever} |
35 | BuildRequires: kf6-kcmutils-devel >= %{kframever} | |
36 | BuildRequires: kf6-kconfig-devel >= %{kframever} | |
37 | BuildRequires: kf6-kcoreaddons-devel >= %{kframever} | |
38 | BuildRequires: kf6-kcrash-devel >= %{kframever} | |
39 | BuildRequires: kf6-kdoctools-devel >= %{kframever} | |
40 | BuildRequires: kf6-ki18n-devel >= %{kframever} | |
41 | BuildRequires: kf6-kio-devel >= %{kframever} | |
42 | BuildRequires: kf6-knewstuff-devel >= %{kframever} | |
43 | BuildRequires: kf6-knotifications-devel >= %{kframever} | |
44 | BuildRequires: kf6-kxmlgui-devel >= %{kframever} | |
45 | BuildRequires: kf6-sonnet-devel >= %{kframever} | |
b4201b08 | 46 | BuildRequires: ninja |
01dd4c85 | 47 | BuildRequires: qt6-build >= %{qtver} |
23a17d76 WF |
48 | BuildRequires: rpmbuild(macros) >= 1.164 |
49 | BuildRequires: shared-mime-info | |
50 | BuildRequires: tar >= 1:1.22 | |
51 | BuildRequires: xz | |
2b90a134 | 52 | ExcludeArch: x32 |
2fb78ff1 | 53 | Requires: %{name}-data = %{version}-%{release} |
23a17d76 WF |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
56 | %description | |
57 | Parley is a program to help you memorize things. Parley supports many | |
58 | language specific features but can be used for other learning tasks | |
59 | just as well. It uses the spaced repetition learning method, also | |
60 | known as flash cards. | |
61 | ||
62 | Creating new vocabulary collections with Parley is easy, but of course | |
63 | it is even better if you can use some of our premade files. Have a | |
64 | look at the store.kde.org page or use the "Download New Collections" | |
65 | feature directly in Parley. | |
66 | ||
67 | Features | |
68 | ||
69 | • Different test types • Mixed Letters (order the letters, anagram | |
70 | like) to get to know new words • Multiple choice • Written tests - | |
71 | type the words (including clever correction mechanisms) • Example | |
72 | sentences can be used to create 'fill in the gap' tests • Article | |
73 | training • Comparison forms (adjectives and/or adverbs) • Conjugations | |
74 | • Synonym/Antonym/Paraphrase | |
75 | ||
76 | • Fast test setup with all options in one dialog • More than two | |
77 | languages (for example English, Chinese Traditional and Chinese | |
78 | Simplified) • Find words (also by word type) quickly • Easy lesson | |
79 | management • Premade vocabulary files ready to use • Share and | |
80 | download vocabulary using Get Hot New Stuff • Open XML file format | |
81 | (shared with KWordQuiz, Kanagram and KHangMan) that can be edited by | |
82 | hand and is easily usable with scripts | |
83 | ||
2fb78ff1 WF |
84 | %package data |
85 | Summary: Data files for %{kaname} | |
86 | Summary(pl.UTF-8): Dane dla %{kaname} | |
87 | Group: X11/Applications | |
88 | BuildArch: noarch | |
89 | ||
90 | %description data | |
91 | Data files for %{kaname}. | |
92 | ||
93 | %description data -l pl.UTF-8 | |
94 | Dane dla %{kaname}. | |
95 | ||
23a17d76 WF |
96 | %prep |
97 | %setup -q -n %{kaname}-%{version} | |
98 | ||
99 | %build | |
23a17d76 | 100 | %cmake \ |
b935d865 | 101 | -B build \ |
b4201b08 | 102 | -G Ninja \ |
68050b6e | 103 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
fd25bf4f | 104 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
b935d865 WF |
105 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
106 | %ninja_build -C build | |
23a17d76 | 107 | |
68050b6e | 108 | %if %{with tests} |
b935d865 | 109 | ctest --test-dir build |
68050b6e WF |
110 | %endif |
111 | ||
112 | ||
23a17d76 WF |
113 | %install |
114 | rm -rf $RPM_BUILD_ROOT | |
b4201b08 | 115 | %ninja_install -C build |
23a17d76 WF |
116 | |
117 | %find_lang %{kaname} --all-name --with-kde | |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
2fb78ff1 | 122 | %files |
23a17d76 | 123 | %defattr(644,root,root,755) |
23a17d76 | 124 | %attr(755,root,root) %{_bindir}/parley |
2fb78ff1 WF |
125 | |
126 | %files data -f %{kaname}.lang | |
127 | %defattr(644,root,root,755) | |
23a17d76 WF |
128 | %{_desktopdir}/org.kde.parley.desktop |
129 | %{_datadir}/config.kcfg/documentsettings.kcfg | |
130 | %{_datadir}/config.kcfg/languagesettings.kcfg | |
131 | %{_datadir}/config.kcfg/parley.kcfg | |
01dd4c85 WF |
132 | %{_iconsdir}/hicolor/*x*/apps/parley.png |
133 | %{_iconsdir}/hicolor/scalable/apps/parley*.svgz | |
134 | %{_iconsdir}/oxygen/*x*/actions/*.png | |
135 | %{_iconsdir}/oxygen/scalable/actions/*.svgz | |
23a17d76 | 136 | %{_datadir}/metainfo/org.kde.parley.appdata.xml |
01dd4c85 | 137 | %{_datadir}/parley |
6f1f3f1b WF |
138 | %{_datadir}/knsrcfiles/parley-themes.knsrc |
139 | %{_datadir}/knsrcfiles/parley.knsrc |