X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=kf5-sonnet.spec;h=e58db55f110a875b529616c2f7ebc5d4d0549585;hb=379e0ba47e54c43aaa0f750d5d7dd1de54fa6c80;hp=532ed9152705b06c6c1ac199ff31a27d454f5849;hpb=3f3358fd6cc5589b3794d3cbd8f464218062b961;p=packages%2Fkf5-sonnet.git diff --git a/kf5-sonnet.spec b/kf5-sonnet.spec index 532ed91..e58db55 100644 --- a/kf5-sonnet.spec +++ b/kf5-sonnet.spec @@ -1,17 +1,18 @@ # TODO: # - fix build with aspell -%define kdeframever 5.48 -%define qtver 5.3.2 +%define kdeframever 5.56 +%define qtver 5.10.0 %define kfname sonnet Summary: Multi-language spell checker +Summary(pl.UTF-8): Wielojęzyczne narzędzie do sprawdzania pisowni Name: kf5-%{kfname} -Version: 5.48.0 -Release: 2 +Version: 5.56.0 +Release: 1 License: LGPL v2.1+ Group: X11/Libraries Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz -# Source0-md5: c3a974b900dc63995cdda90e29187d1a +# Source0-md5: 0b42e1dd0873c54a9d06dc4ef95bdfff URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5Gui-devel >= %{qtver} @@ -19,14 +20,15 @@ BuildRequires: Qt5Test-devel >= %{qtver} BuildRequires: Qt5Widgets-devel >= %{qtver} BuildRequires: aspell BuildRequires: aspell-devel -BuildRequires: cmake >= 2.8.12 +BuildRequires: cmake >= 3.5 BuildRequires: hspell-devel BuildRequires: hunspell-devel -BuildRequires: kf5-extra-cmake-modules >= 1.4.0 +BuildRequires: kf5-extra-cmake-modules >= 5.56 +BuildRequires: libvoikko-devel +BuildRequires: ninja BuildRequires: qt5-linguist >= %{qtver} BuildRequires: rpmbuild(macros) >= 1.164 BuildRequires: tar >= 1:1.22 -BuildRequires: libvoikko-devel BuildRequires: xz BuildRequires: zlib-devel Requires: kf5-dirs @@ -37,7 +39,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Sonnet is a plugin-based spell checking library for Qt-based applications. It supports several different plugins, including HSpell, -Enchant, ASpell and HUNSPELL. +ASpell and HUNSPELL. It also supports automated language detection, based on a combination of different algorithms. @@ -45,6 +47,17 @@ of different algorithms. The simplest way to use Sonnet in your application is to use the SpellCheckDecorator class on your QTextEdit. +%description -l pl.UTF-8 +Sonnet to oparta na wtyczkach biblioteka do sprawdzania pisowni dla +aplikacji opartych na Qt. Obsługuje kilka różnych wtyzek, w tym +HSpell, ASpell i HUNSPELL. + +Pozwala automatycznie wykrywać język w oparciu o połączenie różnych +algorytmów. + +Najprostszy sposób użycia Sonneta w aplikacji to użycie klasy +SpellCheckDecorator w obiekcie QTextEdit. + %package devel Summary: Header files for %{kfname} development Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} @@ -63,24 +76,22 @@ Pliki nagłówkowe dla programistów używających %{kfname}. %build install -d build cd build -%cmake \ +%cmake -G Ninja \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ ../ -%{__make} +%ninja_build %install rm -rf $RPM_BUILD_ROOT - -%{__make} -C build/ install \ - DESTDIR=$RPM_BUILD_ROOT +%ninja_install -C build %find_lang %{kfname}5_qt --with-qm --all-name --with-kde %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files -f %{kfname}5_qt.lang %defattr(644,root,root,755)