]>
Commit | Line | Data |
---|---|---|
e35ff744 | 1 | # TODO: |
61d3db40 | 2 | # - fix build with aspell |
3345f3c2 | 3 | %define kdeframever 5.56 |
f88c2bcc | 4 | %define qtver 5.10.0 |
61d3db40 | 5 | %define kfname sonnet |
e35ff744 WF |
6 | |
7 | Summary: Multi-language spell checker | |
379e0ba4 | 8 | Summary(pl.UTF-8): Wielojęzyczne narzędzie do sprawdzania pisowni |
61d3db40 | 9 | Name: kf5-%{kfname} |
3345f3c2 | 10 | Version: 5.56.0 |
385ab089 | 11 | Release: 1 |
e35ff744 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
61d3db40 | 14 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
3345f3c2 | 15 | # Source0-md5: 0b42e1dd0873c54a9d06dc4ef95bdfff |
e35ff744 | 16 | URL: http://www.kde.org/ |
61d3db40 AM |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
19 | BuildRequires: Qt5Test-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
3f3358fd | 21 | BuildRequires: aspell |
e35ff744 | 22 | BuildRequires: aspell-devel |
f88c2bcc | 23 | BuildRequires: cmake >= 3.5 |
e35ff744 WF |
24 | BuildRequires: hspell-devel |
25 | BuildRequires: hunspell-devel | |
59765e7f | 26 | BuildRequires: kf5-extra-cmake-modules >= 5.56 |
f88c2bcc | 27 | BuildRequires: libvoikko-devel |
3345f3c2 | 28 | BuildRequires: ninja |
61d3db40 | 29 | BuildRequires: qt5-linguist >= %{qtver} |
e35ff744 | 30 | BuildRequires: rpmbuild(macros) >= 1.164 |
cb665e08 ER |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
e35ff744 | 33 | BuildRequires: zlib-devel |
fa53934d | 34 | Requires: kf5-dirs |
e35ff744 WF |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %define qt5dir %{_libdir}/qt5 | |
38 | ||
39 | %description | |
40 | Sonnet is a plugin-based spell checking library for Qt-based | |
41 | applications. It supports several different plugins, including HSpell, | |
379e0ba4 | 42 | ASpell and HUNSPELL. |
e35ff744 WF |
43 | |
44 | It also supports automated language detection, based on a combination | |
45 | of different algorithms. | |
46 | ||
47 | The simplest way to use Sonnet in your application is to use the | |
48 | SpellCheckDecorator class on your QTextEdit. | |
49 | ||
379e0ba4 JB |
50 | %description -l pl.UTF-8 |
51 | Sonnet to oparta na wtyczkach biblioteka do sprawdzania pisowni dla | |
52 | aplikacji opartych na Qt. Obsługuje kilka różnych wtyzek, w tym | |
53 | HSpell, ASpell i HUNSPELL. | |
54 | ||
55 | Pozwala automatycznie wykrywać język w oparciu o połączenie różnych | |
56 | algorytmów. | |
57 | ||
58 | Najprostszy sposób użycia Sonneta w aplikacji to użycie klasy | |
59 | SpellCheckDecorator w obiekcie QTextEdit. | |
60 | ||
e35ff744 | 61 | %package devel |
61d3db40 AM |
62 | Summary: Header files for %{kfname} development |
63 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
e35ff744 WF |
64 | Group: X11/Development/Libraries |
65 | Requires: %{name} = %{version}-%{release} | |
66 | ||
67 | %description devel | |
61d3db40 | 68 | Header files for %{kfname} development. |
e35ff744 WF |
69 | |
70 | %description devel -l pl.UTF-8 | |
61d3db40 | 71 | Pliki nagłówkowe dla programistów używających %{kfname}. |
e35ff744 WF |
72 | |
73 | %prep | |
61d3db40 | 74 | %setup -q -n %{kfname}-%{version} |
e35ff744 WF |
75 | |
76 | %build | |
77 | install -d build | |
78 | cd build | |
3345f3c2 | 79 | %cmake -G Ninja \ |
61d3db40 | 80 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
e35ff744 | 81 | ../ |
3345f3c2 | 82 | %ninja_build |
e35ff744 WF |
83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
3345f3c2 | 86 | %ninja_install -C build |
e35ff744 | 87 | |
535c7d7c | 88 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
e35ff744 WF |
89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
f88c2bcc JB |
93 | %post -p /sbin/ldconfig |
94 | %postun -p /sbin/ldconfig | |
e35ff744 | 95 | |
61d3db40 | 96 | %files -f %{kfname}5_qt.lang |
e35ff744 WF |
97 | %defattr(644,root,root,755) |
98 | %doc README.md | |
69e779c3 | 99 | %attr(755,root,root) %{_bindir}/gentrigrams |
fa53934d | 100 | %attr(755,root,root) %{_bindir}/parsetrigrams |
e35ff744 | 101 | %attr(755,root,root) %ghost %{_libdir}/libKF5SonnetCore.so.5 |
689dcc14 | 102 | %attr(755,root,root) %{_libdir}/libKF5SonnetCore.so.*.* |
e35ff744 | 103 | %attr(755,root,root) %ghost %{_libdir}/libKF5SonnetUi.so.5 |
689dcc14 | 104 | %attr(755,root,root) %{_libdir}/libKF5SonnetUi.so.*.* |
e35ff744 | 105 | %dir %{qt5dir}/plugins/kf5/sonnet |
561a8ff3 AM |
106 | %attr(755,root,root) %{qt5dir}/plugins/kf5/sonnet/sonnet_aspell.so |
107 | %attr(755,root,root) %{qt5dir}/plugins/kf5/sonnet/sonnet_hspell.so | |
108 | %attr(755,root,root) %{qt5dir}/plugins/kf5/sonnet/sonnet_hunspell.so | |
3f3358fd | 109 | %attr(755,root,root) %{qt5dir}/plugins/kf5/sonnet/sonnet_voikko.so |
e35ff744 WF |
110 | %dir %{_datadir}/kf5/sonnet |
111 | %{_datadir}/kf5/sonnet/trigrams.map | |
69e779c3 | 112 | /etc/xdg/sonnet.categories |
e35ff744 WF |
113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %{_includedir}/KF5/SonnetCore | |
117 | %{_includedir}/KF5/SonnetUi | |
118 | %{_includedir}/KF5/sonnet_version.h | |
119 | %{_libdir}/cmake/KF5Sonnet | |
120 | %attr(755,root,root) %{_libdir}/libKF5SonnetCore.so | |
121 | %attr(755,root,root) %{_libdir}/libKF5SonnetUi.so | |
122 | %{qt5dir}/mkspecs/modules/qt_SonnetCore.pri | |
123 | %{qt5dir}/mkspecs/modules/qt_SonnetUi.pri |