]>
Commit | Line | Data |
---|---|---|
d5d95daf | 1 | %define kdeappsver 21.08.0 |
d59b4bac | 2 | %define kframever 5.56.0 |
79fd56c2 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname kmouth | |
5 | Summary: kmouth | |
6 | Name: ka5-%{kaname} | |
d5d95daf | 7 | Version: 21.08.0 |
79fd56c2 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Applications | |
973be114 | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
d5d95daf | 12 | # Source0-md5: 41aaea6a0f02f4613bcac4ac38957c72 |
79fd56c2 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
16 | BuildRequires: Qt5PrintSupport-devel | |
17 | BuildRequires: Qt5Speech-devel | |
18 | BuildRequires: Qt5Widgets-devel | |
19 | BuildRequires: Qt5Xml-devel | |
20 | BuildRequires: gettext-devel | |
d59b4bac WF |
21 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
22 | BuildRequires: kf5-kcompletion-devel >= %{kframever} | |
23 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
24 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
25 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
26 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
27 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
28 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
29 | BuildRequires: kf5-kio-devel >= %{kframever} | |
30 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
31 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
4bcd6463 | 32 | BuildRequires: ninja |
79fd56c2 WF |
33 | BuildRequires: qt5-build >= %{qtver} |
34 | BuildRequires: rpmbuild(macros) >= 1.164 | |
35 | BuildRequires: shared-mime-info | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: xz | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | KMouth is a program which enables persons that cannot speak to let | |
42 | their computer speak, e.g. mutal people or people who have lost their | |
43 | voice. It has a text input field and speaks the sentences that you | |
44 | enter. It also has support for user defined phrasebooks. | |
45 | ||
42c903e1 WF |
46 | %description -l pl.UTF-8 |
47 | KMouth jest programem, który pozwala osobom, które nie mogą mówić, | |
48 | by komputer mówił za nich, np, niemowom, lub osobom, które straciły | |
49 | głos. Program ma pole tekstowe i wymawia zdania wprowadzane | |
50 | z klawiatury. Wspiera też listę wyrażeń definiowanych przez | |
51 | użytkownika. | |
52 | ||
79fd56c2 WF |
53 | %prep |
54 | %setup -q -n %{kaname}-%{version} | |
55 | ||
56 | %build | |
57 | install -d build | |
58 | cd build | |
59 | %cmake \ | |
4bcd6463 | 60 | -G Ninja \ |
d59b4bac | 61 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
79fd56c2 WF |
62 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
63 | .. | |
4bcd6463 | 64 | %ninja_build |
79fd56c2 WF |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
4bcd6463 | 68 | %ninja_install -C build |
79fd56c2 | 69 | |
d59b4bac | 70 | %find_lang %{kaname} --all-name --with-kde |
79fd56c2 WF |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files -f %{kaname}.lang | |
76 | %defattr(644,root,root,755) | |
77 | /etc/xdg/kmouthrc | |
78 | %attr(755,root,root) %{_bindir}/kmouth | |
79 | %{_desktopdir}/org.kde.kmouth.desktop | |
80 | %{_iconsdir}/hicolor/16x16/actions/phrase.png | |
81 | %{_iconsdir}/hicolor/16x16/actions/phrasebook.png | |
82 | %{_iconsdir}/hicolor/16x16/apps/kmouth.png | |
83 | %{_iconsdir}/hicolor/22x22/actions/phrase.png | |
84 | %{_iconsdir}/hicolor/22x22/actions/phrasebook.png | |
85 | %{_iconsdir}/hicolor/22x22/apps/kmouth.png | |
86 | %{_iconsdir}/hicolor/32x32/actions/phrase.png | |
87 | %{_iconsdir}/hicolor/32x32/actions/phrasebook.png | |
88 | %{_iconsdir}/hicolor/32x32/apps/kmouth.png | |
89 | %{_iconsdir}/hicolor/48x48/apps/kmouth.png | |
90 | %{_datadir}/kmouth | |
91 | %dir %{_datadir}/kxmlgui5/kmouth | |
92 | %{_datadir}/kxmlgui5/kmouth/kmouthui.rc | |
93 | %{_datadir}/kxmlgui5/kmouth/phrasebookdialogui.rc | |
94 | %{_datadir}/metainfo/org.kde.kmouth.appdata.xml | |
4bcd6463 WF |
95 | %lang(ca) %{_mandir}/ca/man1/kmouth.1* |
96 | %lang(da) %{_mandir}/da/man1/kmouth.1* | |
97 | %lang(de) %{_mandir}/de/man1/kmouth.1* | |
98 | %lang(es) %{_mandir}/es/man1/kmouth.1* | |
99 | %lang(et) %{_mandir}/et/man1/kmouth.1* | |
100 | %lang(fr) %{_mandir}/fr/man1/kmouth.1* | |
101 | %lang(it) %{_mandir}/it/man1/kmouth.1* | |
102 | %lang(C) %{_mandir}/man1/kmouth.1* | |
103 | %lang(nl) %{_mandir}/nl/man1/kmouth.1* | |
104 | %lang(pt) %{_mandir}/pt/man1/kmouth.1* | |
105 | %lang(pt_BR) %{_mandir}/pt_BR/man1/kmouth.1* | |
106 | %lang(sv) %{_mandir}/sv/man1/kmouth.1* | |
107 | %lang(uk) %{_mandir}/uk/man1/kmouth.1* |