]>
Commit | Line | Data |
---|---|---|
d027232b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4e8546e4 | 4 | %define kdeappsver 22.12.3 |
88a2072c WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
1ae0a345 WF |
7 | %define kaname artikulate |
8 | Summary: Artikulate | |
9 | Name: ka5-%{kaname} | |
4e8546e4 | 10 | Version: 22.12.3 |
12e9154b | 11 | Release: 1 |
1ae0a345 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
830bf30a | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
4e8546e4 | 15 | # Source0-md5: 10329874c3f705baaa381155ad57be86 |
1ae0a345 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
b5cfb9d8 WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Multimedia-devel | |
20 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Qml-devel | |
22 | BuildRequires: Qt5Quick-devel | |
23 | BuildRequires: Qt5Sql-devel | |
24 | BuildRequires: Qt5Test-devel | |
25 | BuildRequires: Qt5Widgets-devel | |
26 | BuildRequires: Qt5XmlPatterns-devel | |
1ae0a345 | 27 | BuildRequires: cmake >= 2.8.12 |
b5cfb9d8 | 28 | BuildRequires: gettext-devel |
ab30f877 WF |
29 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
30 | BuildRequires: kf5-karchive-devel >= %{kframever} | |
31 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
32 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
33 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
34 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
35 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
31c3fbd5 | 36 | BuildRequires: ninja |
1ae0a345 WF |
37 | BuildRequires: qt5-build >= %{qtver} |
38 | BuildRequires: rpmbuild(macros) >= 1.164 | |
39 | BuildRequires: shared-mime-info | |
40 | BuildRequires: tar >= 1:1.22 | |
41 | BuildRequires: xz | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | Artikulate is a language learning application that helps improving | |
46 | pronunciation skills for various languages. This repository maintains | |
47 | the application and language specifications. All course files are | |
48 | maintained in a separate repository named "artikulate-data" and hosted | |
49 | on the KDE infrastructure. | |
50 | ||
136265fb WF |
51 | %description -l pl.UTF-8 |
52 | Artikulate jest programem wspomagającym naukę języków, który pomaga | |
53 | poprawić umiejętności wymowy dla wielu z nich. To repozytorium | |
54 | zawiera program i specyfikacje języków. Wszystkie plików kursów | |
55 | są utrzymywane w oddzielnym repozytorum nazwanym "artikulate-data" | |
56 | i hostowanym przez infrastrukturę KDE. | |
57 | ||
1ae0a345 WF |
58 | %prep |
59 | %setup -q -n %{kaname}-%{version} | |
60 | ||
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | %cmake \ | |
31c3fbd5 | 65 | -G Ninja \ |
d027232b | 66 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ab30f877 | 67 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
1ae0a345 WF |
68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
69 | .. | |
31c3fbd5 | 70 | %ninja_build |
1ae0a345 | 71 | |
d027232b WF |
72 | %if %{with tests} |
73 | ctest | |
74 | %endif | |
75 | ||
76 | ||
1ae0a345 WF |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
31c3fbd5 | 79 | %ninja_install -C build |
1ae0a345 WF |
80 | |
81 | %find_lang %{kaname} --all-name --with-kde | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files -f %{kaname}.lang | |
90 | %defattr(644,root,root,755) | |
1ae0a345 WF |
91 | %attr(755,root,root) %{_bindir}/artikulate |
92 | %attr(755,root,root) %{_bindir}/artikulate_editor | |
1ae0a345 | 93 | %attr(755,root,root) %{_libdir}/libartikulatecore.so.0 |
1ae0a345 | 94 | %attr(755,root,root) %{_libdir}/libartikulatelearnerprofile.so.0 |
1ae0a345 | 95 | %attr(755,root,root) %{_libdir}/libartikulatesound.so.0 |
1ae0a345 | 96 | %{_desktopdir}/org.kde.artikulate.desktop |
1ae0a345 | 97 | %{_datadir}/config.kcfg/artikulate.kcfg |
de45a717 | 98 | %{_datadir}/metainfo/org.kde.artikulate.appdata.xml |
1ae0a345 | 99 | %{_iconsdir}/hicolor/16x16/apps/artikulate.png |
1ae0a345 | 100 | %{_iconsdir}/hicolor/32x32/apps/artikulate.png |
1ae0a345 | 101 | %{_iconsdir}/hicolor/48x48/apps/artikulate.png |
1ae0a345 | 102 | %{_iconsdir}/hicolor/64x64/apps/artikulate.png |
1ae0a345 | 103 | %{_iconsdir}/hicolor/scalable/apps/artikulate.svg |
de45a717 | 104 | %{_datadir}/knsrcfiles/artikulate.knsrc |