From aa18013c9b7cb796f87f704f6311b7443778dce1 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 3 Jun 2015 10:30:34 -0500 Subject: [PATCH] .spec cosmetics, excplicitly own dirs, use %find_lang_kf5 --- kf5-sonnet.spec | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/kf5-sonnet.spec b/kf5-sonnet.spec index 358b4f6..7e9fcaa 100644 --- a/kf5-sonnet.spec +++ b/kf5-sonnet.spec @@ -2,7 +2,7 @@ Name: kf5-%{framework} Version: 5.10.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Frameworks 5 Tier 1 solution for spell checking License: LGPLv2+ @@ -28,8 +28,8 @@ BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qttools-devel Requires: kf5-filesystem -Requires: kf5-sonnet-core%{?_isa} = %{version}-%{release} -Requires: kf5-sonnet-ui%{?_isa} = %{version}-%{release} +Requires: %{name}-core%{?_isa} = %{version}-%{release} +Requires: %{name}-ui%{?_isa} = %{version}-%{release} %description KDE Frameworks 5 Tier 1 solution for spell checking. @@ -53,7 +53,7 @@ Non-gui part of the Sonnet framework provides low-level spell checking tools %package ui Summary: GUI part of the Sonnet framework -Requires: kf5-sonnet-core%{?_isa} = %{version}-%{release} +Requires: %{name}-core%{?_isa} = %{version}-%{release} %description ui GUI part of the Sonnet framework provides widgets with spell checking support. @@ -62,17 +62,20 @@ GUI part of the Sonnet framework provides widgets with spell checking support. %prep %setup -q -n %{framework}-%{version} + %build -mkdir -p %{_target_platform} +mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} + %install -%make_install -C %{_target_platform} -%find_lang sonnet5_qt --with-qt --all-name +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang_kf5 sonnet5_qt %files @@ -83,7 +86,9 @@ make %{?_smp_mflags} -C %{_target_platform} %files core %{_kf5_libdir}/libKF5SonnetCore.so.* -%{_kf5_plugindir}/sonnet +%dir %{_kf5_plugindir}/sonnet/ +%{_kf5_plugindir}/sonnet/hunspell.so +%dir %{_kf5_datadir}/kf5/sonnet/ %{_kf5_datadir}/kf5/sonnet/trigrams.map %post ui -p /sbin/ldconfig @@ -104,6 +109,9 @@ make %{?_smp_mflags} -C %{_target_platform} %changelog +* Wed Jun 03 2015 Rex Dieter 5.10.0-2 +- .spec cosmetics, excplicitly own dirs, use %%find_lang_kf5 + * Mon May 11 2015 Daniel Vrátil - 5.10.0-1 - KDE Frameworks 5.10.0