2014-02-07 21:44:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package sonnet
|
|
|
|
#
|
2021-01-09 12:19:05 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2014-02-07 21:44:43 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-14 13:49:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-07 21:44:43 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-03-01 18:39:28 +00:00
|
|
|
%define sonum 5
|
2023-04-08 14:36:20 +00:00
|
|
|
%define _tar_path 5.103
|
2017-09-13 13:37:25 +00:00
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
2018-07-17 08:58:24 +00:00
|
|
|
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2022-01-09 10:15:13 +00:00
|
|
|
%bcond_without released
|
2014-02-07 21:44:43 +00:00
|
|
|
Name: sonnet
|
2023-06-10 10:17:22 +00:00
|
|
|
Version: 5.107.0
|
2014-02-07 21:44:43 +00:00
|
|
|
Release: 0
|
2018-08-20 12:59:02 +00:00
|
|
|
Summary: KDE spell checking library
|
|
|
|
License: LGPL-2.1-or-later
|
2018-10-16 12:27:41 +00:00
|
|
|
URL: https://www.kde.org
|
2021-11-12 12:21:05 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-01-09 10:15:13 +00:00
|
|
|
%if %{with released}
|
2021-11-12 12:21:05 +00:00
|
|
|
Source1: %{name}-%{version}.tar.xz.sig
|
2019-08-11 21:07:43 +00:00
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
2015-03-07 18:12:19 +00:00
|
|
|
#BuildRequires: aspell-devel
|
2014-02-09 02:00:11 +00:00
|
|
|
# Enchant plugin is currently disabled upstream
|
|
|
|
#BuildRequires: enchant-devel
|
2017-09-13 13:37:25 +00:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version}
|
2014-02-07 21:44:43 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kf5-filesystem
|
2015-10-05 18:06:58 +00:00
|
|
|
BuildRequires: myspell-dictionaries
|
2018-08-20 12:59:02 +00:00
|
|
|
BuildRequires: pkgconfig
|
2021-05-09 07:42:08 +00:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.15.0
|
2022-10-08 17:28:12 +00:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools) >= 5.15.0
|
2021-11-12 12:21:05 +00:00
|
|
|
BuildRequires: cmake(Qt5Quick)
|
2021-05-09 07:42:08 +00:00
|
|
|
BuildRequires: cmake(Qt5Test) >= 5.15.0
|
|
|
|
BuildRequires: cmake(Qt5UiPlugin) >= 5.15.0
|
|
|
|
BuildRequires: cmake(Qt5Widgets) >= 5.15.0
|
2014-02-07 21:44:43 +00:00
|
|
|
BuildRequires: pkgconfig(hunspell)
|
2020-05-28 18:32:45 +00:00
|
|
|
BuildRequires: pkgconfig(libvoikko)
|
2014-02-07 21:44:43 +00:00
|
|
|
|
|
|
|
%description
|
2014-02-12 02:45:48 +00:00
|
|
|
Sonnet is a plugin-based spell checking library for Qt-based
|
|
|
|
applications. It supports several different plugins, including
|
|
|
|
HSpell, Enchant, ASpell and HUNSPELL.
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%package -n libKF5SonnetCore%{sonum}
|
2014-02-12 02:45:48 +00:00
|
|
|
Summary: KDE spell checking library
|
2017-09-13 13:37:25 +00:00
|
|
|
Requires: %{name} >= %{_kf5_bugfix_version}
|
2018-08-20 12:59:02 +00:00
|
|
|
%requires_ge libQt5Core5
|
2014-03-01 18:39:28 +00:00
|
|
|
Obsoletes: libKF5SonnetCore4
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%description -n libKF5SonnetCore%{sonum}
|
2014-02-12 02:45:48 +00:00
|
|
|
Sonnet is a plugin-based spell checking library for Qt-based
|
|
|
|
applications. It supports several different plugins, including
|
|
|
|
HSpell, Enchant, ASpell and HUNSPELL.
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%package -n libKF5SonnetUi%{sonum}
|
2014-02-12 02:45:48 +00:00
|
|
|
Summary: KDE spell checking library
|
2018-08-20 12:59:02 +00:00
|
|
|
%requires_ge libKF5SonnetCore5
|
|
|
|
%requires_ge libQt5Gui5
|
|
|
|
%requires_ge libQt5Widgets5
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%description -n libKF5SonnetUi%{sonum}
|
2014-02-12 02:45:48 +00:00
|
|
|
Sonnet is a plugin-based spell checking library for Qt-based
|
|
|
|
applications. It supports several different plugins, including
|
|
|
|
HSpell, Enchant, ASpell and HUNSPELL.
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2021-11-12 12:21:05 +00:00
|
|
|
%package imports
|
|
|
|
Summary: KDE spell checking library: QML files
|
|
|
|
Requires: libKF5SonnetCore%{sonum} = %{version}
|
|
|
|
Requires: libKF5SonnetUi%{sonum} = %{version}
|
|
|
|
|
|
|
|
%description imports
|
|
|
|
|
|
|
|
Sonnet is a plugin-based spell checking library for Qt-based
|
|
|
|
applications. It supports several different plugins, including
|
|
|
|
HSpell, Enchant, ASpell and HUNSPELL.
|
|
|
|
This package contains files that allow use of sonnet with
|
|
|
|
QtQuick based applications.
|
|
|
|
|
2014-02-07 21:44:43 +00:00
|
|
|
%package devel
|
2014-02-12 02:45:48 +00:00
|
|
|
Summary: KDE spell checking library: Build Environment
|
2014-02-07 21:44:43 +00:00
|
|
|
Requires: extra-cmake-modules
|
2018-08-20 12:59:02 +00:00
|
|
|
Requires: libKF5SonnetCore%{sonum} = %{version}
|
|
|
|
Requires: libKF5SonnetUi%{sonum} = %{version}
|
2021-05-09 07:42:08 +00:00
|
|
|
Requires: cmake(Qt5Core) >= 5.15.0
|
2014-02-07 21:44:43 +00:00
|
|
|
|
|
|
|
%description devel
|
2014-02-12 02:45:48 +00:00
|
|
|
Sonnet is a plugin-based spell checking library for Qt-based
|
|
|
|
applications. It supports several different plugins, including
|
|
|
|
HSpell, Enchant, ASpell and HUNSPELL. Development files.
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2020-05-29 07:09:18 +00:00
|
|
|
%package voikko
|
|
|
|
Summary: KDE spell checking library: Support for Voikko
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: locale(sonnet:fi)
|
|
|
|
|
|
|
|
%description voikko
|
|
|
|
Plug-in adding Voikko based spell checking for the Finnish language
|
|
|
|
to the Sonnet spell checking framework.
|
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%lang_package -n libKF5SonnetCore%{sonum}
|
|
|
|
|
2014-02-07 21:44:43 +00:00
|
|
|
%prep
|
2021-05-09 07:42:08 +00:00
|
|
|
%autosetup -p1
|
2014-02-07 21:44:43 +00:00
|
|
|
|
|
|
|
%build
|
2021-05-09 07:42:08 +00:00
|
|
|
%cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert
|
|
|
|
%cmake_build
|
2014-02-07 21:44:43 +00:00
|
|
|
|
|
|
|
%install
|
2021-05-09 07:42:08 +00:00
|
|
|
%kf5_makeinstall -C build
|
2022-10-08 17:28:12 +00:00
|
|
|
|
2021-05-09 07:42:08 +00:00
|
|
|
%fdupes %{buildroot}
|
2014-05-05 11:02:55 +00:00
|
|
|
|
2022-10-08 17:28:12 +00:00
|
|
|
%find_lang sonnet5 --with-qt --without-mo
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2023-02-12 09:53:24 +00:00
|
|
|
%ldconfig_scriptlets -n libKF5SonnetCore%{sonum}
|
|
|
|
%ldconfig_scriptlets -n libKF5SonnetUi%{sonum}
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2022-10-08 17:28:12 +00:00
|
|
|
%files -n libKF5SonnetCore%{sonum}-lang -f sonnet5.lang
|
2014-05-05 11:02:55 +00:00
|
|
|
|
2017-07-12 13:52:44 +00:00
|
|
|
%files
|
2018-08-20 12:59:02 +00:00
|
|
|
%doc README*
|
2019-09-13 07:45:45 +00:00
|
|
|
%dir %{_kf5_plugindir}/kf5
|
2020-05-29 07:09:18 +00:00
|
|
|
%dir %{_kf5_plugindir}/kf5/sonnet
|
2020-07-11 10:31:05 +00:00
|
|
|
%{_kf5_debugdir}/sonnet.categories
|
2020-08-09 07:40:00 +00:00
|
|
|
%{_kf5_debugdir}/*.renamecategories
|
2020-05-29 07:09:18 +00:00
|
|
|
%{_kf5_plugindir}/kf5/sonnet/sonnet_hunspell.so
|
2017-07-12 13:52:44 +00:00
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%files -n libKF5SonnetCore%{sonum}
|
2020-07-11 10:31:05 +00:00
|
|
|
%license LICENSES/*
|
2014-02-07 21:44:43 +00:00
|
|
|
%{_kf5_libdir}/libKF5SonnetCore.so.*
|
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%files -n libKF5SonnetUi%{sonum}
|
2014-02-07 21:44:43 +00:00
|
|
|
%{_kf5_libdir}/libKF5SonnetUi.so.*
|
|
|
|
|
2021-11-12 12:21:05 +00:00
|
|
|
%files imports
|
|
|
|
%dir %{_kf5_qmldir}/org/
|
|
|
|
%dir %{_kf5_qmldir}/org/kde/
|
|
|
|
%dir %{_kf5_qmldir}/org/kde/sonnet
|
|
|
|
%{_kf5_qmldir}/org/kde/sonnet/libsonnetquickplugin.so
|
|
|
|
%{_kf5_qmldir}/org/kde/sonnet/plugins.qmltypes
|
|
|
|
%{_kf5_qmldir}/org/kde/sonnet/qmldir
|
|
|
|
|
2014-02-07 21:44:43 +00:00
|
|
|
%files devel
|
2019-09-13 07:45:45 +00:00
|
|
|
%dir %{_kf5_plugindir}/designer
|
2016-09-06 21:15:24 +00:00
|
|
|
%{_kf5_bindir}/gentrigrams
|
2019-09-13 07:45:45 +00:00
|
|
|
%{_kf5_bindir}/parsetrigrams
|
|
|
|
%{_kf5_includedir}/
|
|
|
|
%{_kf5_libdir}/cmake/KF5Sonnet/
|
2014-02-07 21:44:43 +00:00
|
|
|
%{_kf5_libdir}/libKF5SonnetCore.so
|
|
|
|
%{_kf5_libdir}/libKF5SonnetUi.so
|
|
|
|
%{_kf5_mkspecsdir}/qt_Sonnet*.pri
|
2019-09-13 07:45:45 +00:00
|
|
|
%{_kf5_plugindir}/designer/sonnetui5widgets.so
|
2014-02-07 21:44:43 +00:00
|
|
|
|
2020-05-29 07:09:18 +00:00
|
|
|
%files voikko
|
|
|
|
%{_kf5_plugindir}/kf5/sonnet/sonnet_voikko.so
|
|
|
|
|
2014-02-07 21:44:43 +00:00
|
|
|
%changelog
|