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