- update URL
- support bootstrapping
- add support for hunspell-1.4
epel9
Rex Dieter 9 years ago
parent b11788daf3
commit daf92b7b7d

@ -1,12 +1,15 @@
%global framework sonnet %global framework sonnet
# bootstrap without backend plugins
#global bootstrap 1
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 5.21.0 Version: 5.21.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: KDE Frameworks 5 Tier 1 solution for spell checking Summary: KDE Frameworks 5 Tier 1 solution for spell checking
License: LGPLv2+ License: LGPLv2+
URL: https://projects.kde.org/sonnet URL: https://quickgit.kde.org/?p=%{framework}.git
%global versiondir %(echo %{version} | cut -d. -f1-2) %global versiondir %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3) %global revision %(echo %{version} | cut -d. -f3)
@ -23,9 +26,13 @@ Patch1: sonnet-5.15.0-qDebug.patch
# workaround multilib conflicts in trigrams.map by using QMap instead of QHash # workaround multilib conflicts in trigrams.map by using QMap instead of QHash
# https://bugzilla.redhat.com/show_bug.cgi?id=1262746 # https://bugzilla.redhat.com/show_bug.cgi?id=1262746
Patch2: sonnet-5.13.0-multilib.patch Patch2: sonnet-5.13.0-multilib.patch
# support hunspell-1.4
Patch3: sonnet-hunspell14.patch
BuildRequires: extra-cmake-modules >= %{version} BuildRequires: extra-cmake-modules >= %{version}
%if ! 0%{?bootstrap}
BuildRequires: hunspell-devel BuildRequires: hunspell-devel
%endif
BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qttools-devel BuildRequires: qt5-qttools-devel
@ -59,10 +66,7 @@ GUI part of the Sonnet framework provides widgets with spell checking support.
%prep %prep
%setup -q -n %{framework}-%{version} %autosetup -n %{framework}-%{version} -p1
%patch1 -p1 -b .qDebug
%patch2 -p1 -b .multilib
%build %build
@ -91,7 +95,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%files core %files core
%{_kf5_libdir}/libKF5SonnetCore.so.* %{_kf5_libdir}/libKF5SonnetCore.so.*
%dir %{_kf5_plugindir}/sonnet/ %dir %{_kf5_plugindir}/sonnet/
%if ! 0%{?bootstrap}
%{_kf5_plugindir}/sonnet/hunspell.so %{_kf5_plugindir}/sonnet/hunspell.so
%endif
%dir %{_kf5_datadir}/kf5/sonnet/ %dir %{_kf5_datadir}/kf5/sonnet/
%{_kf5_datadir}/kf5/sonnet/trigrams.map %{_kf5_datadir}/kf5/sonnet/trigrams.map
@ -113,6 +119,11 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog %changelog
* Mon Apr 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-3
- update URL
- support bootstrapping
- add support for hunspell-1.4
* Mon Apr 18 2016 Caolán McNamara <caolanm@redhat.com> - 5.21.0-2 * Mon Apr 18 2016 Caolán McNamara <caolanm@redhat.com> - 5.21.0-2
- rebuild for hunspell 1.4.0 - rebuild for hunspell 1.4.0

@ -0,0 +1,12 @@
diff -up sonnet-5.21.0/cmake/FindHUNSPELL.cmake.hunspell14 sonnet-5.21.0/cmake/FindHUNSPELL.cmake
--- sonnet-5.21.0/cmake/FindHUNSPELL.cmake.hunspell14 2016-04-03 16:08:41.000000000 -0500
+++ sonnet-5.21.0/cmake/FindHUNSPELL.cmake 2016-04-18 09:21:15.566064172 -0500
@@ -14,7 +14,7 @@ ENDIF (HUNSPELL_INCLUDE_DIR AND HUNSPELL
FIND_PATH(HUNSPELL_INCLUDE_DIR hunspell/hunspell.hxx )
-FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.3 hunspell-1.2)
+FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.4 hunspell-1.3 hunspell-1.2)
# handle the QUIETLY and REQUIRED arguments and set HUNSPELL_FOUND to TRUE if
# all listed variables are TRUE
Loading…
Cancel
Save