2014-02-07 22:44:43 +01:00
|
|
|
#
|
|
|
|
# spec file for package sonnet
|
|
|
|
#
|
2018-01-17 16:07:07 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-07 22:44:43 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-04-10 18:28:41 +02:00
|
|
|
%bcond_without lang
|
2014-03-01 19:39:28 +01:00
|
|
|
%define sonum 5
|
2018-02-14 05:36:06 +01:00
|
|
|
%define _tar_path 5.43
|
2017-09-13 15:37:25 +02: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)
|
|
|
|
%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2014-02-07 22:44:43 +01:00
|
|
|
Name: sonnet
|
2018-02-14 05:36:06 +01:00
|
|
|
Version: 5.43.0
|
2014-02-07 22:44:43 +01:00
|
|
|
Release: 0
|
2015-03-07 19:12:19 +01:00
|
|
|
#BuildRequires: aspell-devel
|
2017-01-09 01:00:50 +01:00
|
|
|
BuildRequires: cmake >= 3.0
|
2014-02-09 03:00:11 +01:00
|
|
|
# Enchant plugin is currently disabled upstream
|
|
|
|
#BuildRequires: enchant-devel
|
2017-09-13 15:37:25 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version}
|
2014-02-07 22:44:43 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kf5-filesystem
|
2015-04-10 18:28:41 +02:00
|
|
|
%if %{with lang}
|
2017-02-09 11:20:50 +01:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools) >= 5.6.0
|
2015-04-10 18:28:41 +02:00
|
|
|
%endif
|
2015-10-05 20:06:58 +02:00
|
|
|
BuildRequires: myspell-dictionaries
|
2017-02-09 11:20:50 +01:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Test) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Widgets) >= 5.6.0
|
2014-02-07 22:44:43 +01:00
|
|
|
BuildRequires: pkgconfig(hunspell)
|
2014-02-12 03:45:48 +01:00
|
|
|
Summary: KDE spell checking library
|
2014-02-07 22:44:43 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org
|
2017-04-27 22:26:44 +02:00
|
|
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
2014-06-04 01:05:20 +02:00
|
|
|
Source1: baselibs.conf
|
2014-02-07 22:44:43 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-02-12 03:45:48 +01: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 22:44:43 +01:00
|
|
|
|
|
|
|
%package -n libKF5SonnetCore%sonum
|
2014-02-12 03:45:48 +01:00
|
|
|
Summary: KDE spell checking library
|
2014-02-07 22:44:43 +01:00
|
|
|
Group: System/GUI/KDE
|
2017-09-13 15:37:25 +02:00
|
|
|
Requires: %{name} >= %{_kf5_bugfix_version}
|
2014-03-01 19:39:28 +01:00
|
|
|
Obsoletes: libKF5SonnetCore4
|
2015-04-10 18:28:41 +02:00
|
|
|
%if %{with lang}
|
2014-05-05 13:02:55 +02:00
|
|
|
Recommends: libKF5SonnetCore%sonum-lang = %{version}
|
2015-04-10 18:28:41 +02:00
|
|
|
%endif
|
2014-08-08 00:25:40 +02:00
|
|
|
%requires_ge libQt5Core5
|
2014-02-07 22:44:43 +01:00
|
|
|
|
|
|
|
%description -n libKF5SonnetCore%sonum
|
2014-02-12 03:45:48 +01: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 22:44:43 +01:00
|
|
|
|
|
|
|
%package -n libKF5SonnetUi%sonum
|
2014-02-12 03:45:48 +01:00
|
|
|
Summary: KDE spell checking library
|
2014-02-07 22:44:43 +01:00
|
|
|
Group: System/GUI/KDE
|
2014-08-08 00:25:40 +02:00
|
|
|
%requires_ge libQt5Gui5
|
|
|
|
%requires_ge libQt5Widgets5
|
|
|
|
%requires_ge libKF5SonnetCore5
|
2014-02-07 22:44:43 +01:00
|
|
|
|
|
|
|
%description -n libKF5SonnetUi%sonum
|
2014-02-12 03:45:48 +01: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 22:44:43 +01:00
|
|
|
|
|
|
|
%package devel
|
2014-02-12 03:45:48 +01:00
|
|
|
Summary: KDE spell checking library: Build Environment
|
2014-02-07 22:44:43 +01:00
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: extra-cmake-modules
|
|
|
|
Requires: libKF5SonnetCore%sonum = %{version}
|
|
|
|
Requires: libKF5SonnetUi%sonum = %{version}
|
2017-02-09 11:20:50 +01:00
|
|
|
Requires: cmake(Qt5Core) >= 5.6.0
|
2014-02-07 22:44:43 +01:00
|
|
|
|
|
|
|
%description devel
|
2014-02-12 03:45:48 +01: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 22:44:43 +01:00
|
|
|
|
2014-05-05 13:02:55 +02:00
|
|
|
%lang_package -n libKF5SonnetCore%sonum
|
2014-02-07 22:44:43 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-08-08 00:25:40 +02:00
|
|
|
%cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert
|
2014-02-07 22:44:43 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2015-04-10 18:48:46 +02:00
|
|
|
%fdupes %{buildroot}
|
2014-05-05 13:02:55 +02:00
|
|
|
|
2015-04-10 18:28:41 +02:00
|
|
|
%if %{with lang}
|
2015-04-10 12:38:38 +02:00
|
|
|
%find_lang %{name}5 --with-qt --without-mo
|
2015-04-10 18:28:41 +02:00
|
|
|
%endif
|
2014-02-07 22:44:43 +01:00
|
|
|
|
|
|
|
%post -n libKF5SonnetCore%sonum -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libKF5SonnetCore%sonum -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libKF5SonnetUi%sonum -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libKF5SonnetUi%sonum -p /sbin/ldconfig
|
|
|
|
|
2015-04-10 18:28:41 +02:00
|
|
|
%if %{with lang}
|
2014-05-05 13:02:55 +02:00
|
|
|
%files -n libKF5SonnetCore%sonum-lang -f %{name}5.lang
|
2015-04-10 18:28:41 +02:00
|
|
|
%endif
|
2014-05-05 13:02:55 +02:00
|
|
|
|
2017-07-12 15:52:44 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%config %{_kf5_configdir}/sonnet.categories
|
2017-07-12 17:13:30 +02:00
|
|
|
%{_kf5_plugindir}/
|
|
|
|
%{_kf5_datadir}/sonnet/
|
2017-07-12 15:52:44 +02:00
|
|
|
|
2014-02-07 22:44:43 +01:00
|
|
|
%files -n libKF5SonnetCore%sonum
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
|
|
|
%{_kf5_libdir}/libKF5SonnetCore.so.*
|
|
|
|
|
|
|
|
%files -n libKF5SonnetUi%sonum
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
|
|
|
%{_kf5_libdir}/libKF5SonnetUi.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-05-07 20:58:39 +02:00
|
|
|
%{_kf5_bindir}/parsetrigrams
|
2016-09-06 23:15:24 +02:00
|
|
|
%{_kf5_bindir}/gentrigrams
|
2014-02-07 22:44:43 +01:00
|
|
|
%{_kf5_libdir}/libKF5SonnetCore.so
|
|
|
|
%{_kf5_libdir}/libKF5SonnetUi.so
|
|
|
|
%{_kf5_libdir}/cmake/KF5Sonnet/
|
2014-08-08 00:25:40 +02:00
|
|
|
%{_kf5_includedir}/
|
2014-02-07 22:44:43 +01:00
|
|
|
%{_kf5_mkspecsdir}/qt_Sonnet*.pri
|
|
|
|
|
|
|
|
%changelog
|