]>
Commit | Line | Data |
---|---|---|
68050b6e WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
a2591ffa | 4 | %define kdeappsver 23.08.5 |
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} | |
a2591ffa | 10 | Version: 23.08.5 |
35bcb3ca | 11 | Release: 1 |
23a17d76 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
35bcb3ca | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
a2591ffa | 15 | # Source0-md5: 1fe171d8bb690e0edf6cd9cede4f10ab |
b2b9f416 | 16 | URL: https://www.kde.org/ |
35bcb3ca WF |
17 | BuildRequires: Qt5Concurrent-devel |
18 | BuildRequires: Qt5Core-devel >= %{qtver} | |
19 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Multimedia-devel | |
21 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
22 | BuildRequires: Qt5Positioning-devel >= 5.11.1 | |
23 | BuildRequires: Qt5PrintSupport-devel >= 5.11.1 | |
24 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
25 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
26 | BuildRequires: Qt5Svg-devel | |
27 | BuildRequires: Qt5Test-devel | |
28 | BuildRequires: Qt5WebChannel-devel >= 5.11.1 | |
29 | BuildRequires: Qt5WebEngine-devel >= 5.11.1 | |
30 | BuildRequires: Qt5Widgets-devel >= 5.11.1 | |
b935d865 | 31 | BuildRequires: cmake >= 3.20 |
23a17d76 | 32 | BuildRequires: gettext-devel |
d9c7e662 | 33 | BuildRequires: ka5-libkeduvocdocument-devel >= %{kdeappsver} |
35bcb3ca WF |
34 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
35 | BuildRequires: kf5-kcmutils-devel >= %{kframever} | |
36 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
37 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
38 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
39 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
40 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
41 | BuildRequires: kf5-kio-devel >= %{kframever} | |
42 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
43 | BuildRequires: kf5-knotifications-devel >= %{kframever} | |
44 | BuildRequires: kf5-kross-devel >= %{kframever} | |
45 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
46 | BuildRequires: kf5-sonnet-devel >= %{kframever} | |
b4201b08 | 47 | BuildRequires: ninja |
35bcb3ca | 48 | BuildRequires: qt5-build >= %{qtver} |
23a17d76 WF |
49 | BuildRequires: rpmbuild(macros) >= 1.164 |
50 | BuildRequires: shared-mime-info | |
51 | BuildRequires: tar >= 1:1.22 | |
52 | BuildRequires: xz | |
2b90a134 | 53 | ExcludeArch: x32 |
2fb78ff1 | 54 | Requires: %{name}-data = %{version}-%{release} |
23a17d76 WF |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
57 | %description | |
58 | Parley is a program to help you memorize things. Parley supports many | |
59 | language specific features but can be used for other learning tasks | |
60 | just as well. It uses the spaced repetition learning method, also | |
61 | known as flash cards. | |
62 | ||
63 | Creating new vocabulary collections with Parley is easy, but of course | |
64 | it is even better if you can use some of our premade files. Have a | |
65 | look at the store.kde.org page or use the "Download New Collections" | |
66 | feature directly in Parley. | |
67 | ||
68 | Features | |
69 | ||
70 | • Different test types • Mixed Letters (order the letters, anagram | |
71 | like) to get to know new words • Multiple choice • Written tests - | |
72 | type the words (including clever correction mechanisms) • Example | |
73 | sentences can be used to create 'fill in the gap' tests • Article | |
74 | training • Comparison forms (adjectives and/or adverbs) • Conjugations | |
75 | • Synonym/Antonym/Paraphrase | |
76 | ||
77 | • Fast test setup with all options in one dialog • More than two | |
78 | languages (for example English, Chinese Traditional and Chinese | |
79 | Simplified) • Find words (also by word type) quickly • Easy lesson | |
80 | management • Premade vocabulary files ready to use • Share and | |
81 | download vocabulary using Get Hot New Stuff • Open XML file format | |
82 | (shared with KWordQuiz, Kanagram and KHangMan) that can be edited by | |
83 | hand and is easily usable with scripts | |
84 | ||
2fb78ff1 WF |
85 | %package data |
86 | Summary: Data files for %{kaname} | |
87 | Summary(pl.UTF-8): Dane dla %{kaname} | |
88 | Group: X11/Applications | |
89 | BuildArch: noarch | |
90 | ||
91 | %description data | |
92 | Data files for %{kaname}. | |
93 | ||
94 | %description data -l pl.UTF-8 | |
95 | Dane dla %{kaname}. | |
96 | ||
23a17d76 WF |
97 | %prep |
98 | %setup -q -n %{kaname}-%{version} | |
99 | ||
100 | %build | |
23a17d76 | 101 | %cmake \ |
b935d865 | 102 | -B build \ |
b4201b08 | 103 | -G Ninja \ |
68050b6e | 104 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
fd25bf4f | 105 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
b935d865 WF |
106 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
107 | %ninja_build -C build | |
23a17d76 | 108 | |
68050b6e | 109 | %if %{with tests} |
b935d865 | 110 | ctest --test-dir build |
68050b6e WF |
111 | %endif |
112 | ||
113 | ||
23a17d76 WF |
114 | %install |
115 | rm -rf $RPM_BUILD_ROOT | |
b4201b08 | 116 | %ninja_install -C build |
23a17d76 WF |
117 | |
118 | %find_lang %{kaname} --all-name --with-kde | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
2fb78ff1 | 123 | %files |
23a17d76 | 124 | %defattr(644,root,root,755) |
23a17d76 | 125 | %attr(755,root,root) %{_bindir}/parley |
2fb78ff1 WF |
126 | |
127 | %files data -f %{kaname}.lang | |
128 | %defattr(644,root,root,755) | |
23a17d76 WF |
129 | %{_desktopdir}/org.kde.parley.desktop |
130 | %{_datadir}/config.kcfg/documentsettings.kcfg | |
131 | %{_datadir}/config.kcfg/languagesettings.kcfg | |
132 | %{_datadir}/config.kcfg/parley.kcfg | |
35bcb3ca WF |
133 | %{_iconsdir}/hicolor/128x128/apps/parley.png |
134 | %{_iconsdir}/hicolor/16x16/apps/parley.png | |
135 | %{_iconsdir}/hicolor/32x32/apps/parley.png | |
136 | %{_iconsdir}/hicolor/48x48/apps/parley.png | |
137 | %{_iconsdir}/hicolor/64x64/apps/parley.png | |
138 | %{_iconsdir}/hicolor/scalable/apps/parley-parley.svgz | |
139 | %{_iconsdir}/hicolor/scalable/apps/parley-simple.svgz | |
140 | %{_iconsdir}/hicolor/scalable/apps/parley.svgz | |
141 | %{_iconsdir}/oxygen/16x16/actions/cards-block.png | |
142 | %{_iconsdir}/oxygen/16x16/actions/edit-entry.png | |
143 | %{_iconsdir}/oxygen/16x16/actions/edit-table-row.png | |
144 | %{_iconsdir}/oxygen/16x16/actions/lesson-add.png | |
145 | %{_iconsdir}/oxygen/16x16/actions/lesson-remove.png | |
146 | %{_iconsdir}/oxygen/16x16/actions/list-add-card.png | |
147 | %{_iconsdir}/oxygen/16x16/actions/list-remove-card.png | |
148 | %{_iconsdir}/oxygen/16x16/actions/multiple-choice.png | |
149 | %{_iconsdir}/oxygen/16x16/actions/practice-setup.png | |
150 | %{_iconsdir}/oxygen/16x16/actions/practice-start.png | |
151 | %{_iconsdir}/oxygen/16x16/actions/practice-stop.png | |
152 | %{_iconsdir}/oxygen/16x16/actions/remove-duplicates.png | |
153 | %{_iconsdir}/oxygen/16x16/actions/set-language.png | |
154 | %{_iconsdir}/oxygen/16x16/actions/specific-setup.png | |
155 | %{_iconsdir}/oxygen/22x22/actions/cards-block.png | |
156 | %{_iconsdir}/oxygen/22x22/actions/edit-entry.png | |
157 | %{_iconsdir}/oxygen/22x22/actions/edit-table-row.png | |
158 | %{_iconsdir}/oxygen/22x22/actions/lesson-add.png | |
159 | %{_iconsdir}/oxygen/22x22/actions/lesson-remove.png | |
160 | %{_iconsdir}/oxygen/22x22/actions/list-add-card.png | |
161 | %{_iconsdir}/oxygen/22x22/actions/list-remove-card.png | |
162 | %{_iconsdir}/oxygen/22x22/actions/multiple-choice.png | |
163 | %{_iconsdir}/oxygen/22x22/actions/practice-setup.png | |
164 | %{_iconsdir}/oxygen/22x22/actions/practice-start.png | |
165 | %{_iconsdir}/oxygen/22x22/actions/practice-stop.png | |
166 | %{_iconsdir}/oxygen/22x22/actions/remove-duplicates.png | |
167 | %{_iconsdir}/oxygen/22x22/actions/set-language.png | |
168 | %{_iconsdir}/oxygen/22x22/actions/specific-setup.png | |
169 | %{_iconsdir}/oxygen/32x32/actions/cards-block.png | |
170 | %{_iconsdir}/oxygen/32x32/actions/edit-entry.png | |
171 | %{_iconsdir}/oxygen/32x32/actions/edit-table-row.png | |
172 | %{_iconsdir}/oxygen/32x32/actions/lesson-add.png | |
173 | %{_iconsdir}/oxygen/32x32/actions/lesson-remove.png | |
174 | %{_iconsdir}/oxygen/32x32/actions/list-add-card.png | |
175 | %{_iconsdir}/oxygen/32x32/actions/list-remove-card.png | |
176 | %{_iconsdir}/oxygen/32x32/actions/multiple-choice.png | |
177 | %{_iconsdir}/oxygen/32x32/actions/practice-setup.png | |
178 | %{_iconsdir}/oxygen/32x32/actions/practice-start.png | |
179 | %{_iconsdir}/oxygen/32x32/actions/practice-stop.png | |
180 | %{_iconsdir}/oxygen/32x32/actions/remove-duplicates.png | |
181 | %{_iconsdir}/oxygen/32x32/actions/set-language.png | |
182 | %{_iconsdir}/oxygen/32x32/actions/specific-setup.png | |
183 | %{_iconsdir}/oxygen/48x48/actions/cards-block.png | |
184 | %{_iconsdir}/oxygen/48x48/actions/edit-entry.png | |
185 | %{_iconsdir}/oxygen/48x48/actions/edit-table-row.png | |
186 | %{_iconsdir}/oxygen/48x48/actions/lesson-add.png | |
187 | %{_iconsdir}/oxygen/48x48/actions/lesson-remove.png | |
188 | %{_iconsdir}/oxygen/48x48/actions/list-add-card.png | |
189 | %{_iconsdir}/oxygen/48x48/actions/list-remove-card.png | |
190 | %{_iconsdir}/oxygen/48x48/actions/multiple-choice.png | |
191 | %{_iconsdir}/oxygen/48x48/actions/practice-setup.png | |
192 | %{_iconsdir}/oxygen/48x48/actions/practice-start.png | |
193 | %{_iconsdir}/oxygen/48x48/actions/practice-stop.png | |
194 | %{_iconsdir}/oxygen/48x48/actions/remove-duplicates.png | |
195 | %{_iconsdir}/oxygen/48x48/actions/set-language.png | |
196 | %{_iconsdir}/oxygen/48x48/actions/specific-setup.png | |
197 | %{_iconsdir}/oxygen/scalable/actions/cards-block.svgz | |
198 | %{_iconsdir}/oxygen/scalable/actions/edit-entry.svgz | |
199 | %{_iconsdir}/oxygen/scalable/actions/edit-table-row.svgz | |
200 | %{_iconsdir}/oxygen/scalable/actions/lesson-add.svgz | |
201 | %{_iconsdir}/oxygen/scalable/actions/lesson-remove.svgz | |
202 | %{_iconsdir}/oxygen/scalable/actions/list-add-card.svgz | |
203 | %{_iconsdir}/oxygen/scalable/actions/list-remove-card.svgz | |
204 | %{_iconsdir}/oxygen/scalable/actions/practice-setup.svgz | |
205 | %{_iconsdir}/oxygen/scalable/actions/practice-start.svgz | |
206 | %{_iconsdir}/oxygen/scalable/actions/remove-duplicates.svgz | |
207 | %{_iconsdir}/oxygen/scalable/actions/set-language.svgz | |
208 | %{_iconsdir}/oxygen/scalable/actions/specific-setup.svgz | |
209 | %dir %{_datadir}/kxmlgui5/parley | |
210 | %{_datadir}/kxmlgui5/parley/dashboardui.rc | |
211 | %{_datadir}/kxmlgui5/parley/editorui.rc | |
212 | %{_datadir}/kxmlgui5/parley/parleyui.rc | |
213 | %{_datadir}/kxmlgui5/parley/practicesummaryui.rc | |
214 | %{_datadir}/kxmlgui5/parley/practiceui.rc | |
215 | %{_datadir}/kxmlgui5/parley/statisticsui.rc | |
216 | %dir %{_datadir}/kxmlgui5/parley/themes | |
217 | %{_datadir}/kxmlgui5/parley/themes/bees_theme.desktop | |
218 | %{_datadir}/kxmlgui5/parley/themes/bees_theme.svgz | |
219 | %{_datadir}/kxmlgui5/parley/themes/bees_theme_preview.jpg | |
220 | %{_datadir}/kxmlgui5/parley/themes/theme_reference.desktop | |
221 | %{_datadir}/kxmlgui5/parley/themes/theme_reference.svgz | |
222 | %{_datadir}/kxmlgui5/parley/themes/theme_reference_preview.jpg | |
23a17d76 | 223 | %{_datadir}/metainfo/org.kde.parley.appdata.xml |
35bcb3ca WF |
224 | %dir %{_datadir}/parley |
225 | %dir %{_datadir}/parley/themes | |
226 | %{_datadir}/parley/themes/bees_theme.desktop | |
227 | %{_datadir}/parley/themes/bees_theme.svgz | |
228 | %{_datadir}/parley/themes/bees_theme_preview.jpg | |
229 | %{_datadir}/parley/themes/theme_reference.desktop | |
230 | %{_datadir}/parley/themes/theme_reference.svgz | |
231 | %{_datadir}/parley/themes/theme_reference_preview.jpg | |
232 | %dir %{_datadir}/parley/xslt | |
233 | %{_datadir}/parley/xslt/flashcards.xsl | |
234 | %{_datadir}/parley/xslt/table.xsl | |
6f1f3f1b WF |
235 | %{_datadir}/knsrcfiles/parley-themes.knsrc |
236 | %{_datadir}/knsrcfiles/parley.knsrc |