Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
>
sonnet
> sonnet.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sonnet.spec of Package sonnet
# # spec file for package sonnet # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %bcond_without lang %define sonum 5 %define _tar_path 5.31 Name: sonnet Version: 5.31.0 Release: 0 #BuildRequires: aspell-devel BuildRequires: cmake >= 3.0 # Enchant plugin is currently disabled upstream #BuildRequires: enchant-devel BuildRequires: extra-cmake-modules >= %{_tar_path} BuildRequires: qt5-qttools-linguist > 5.6.0 BuildRequires: pkgconfig(Qt5Core) >= 5.6.0 BuildRequires: pkgconfig(Qt5Test) >= 5.6.0 BuildRequires: pkgconfig(Qt5Widgets) >= 5.6.0 BuildRequires: pkgconfig(hunspell) Summary: KDE spell checking library License: LGPL-2.1+ Group: System/GUI/KDE Url: http://www.kde.org Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz Patch0: hunspell-1.7-cmake.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Sonnet is a plugin-based spell checking library for Qt-based applications. It supports several different plugins, including HSpell, Enchant, ASpell and HUNSPELL. %package -n libKF5SonnetCore%sonum Summary: KDE spell checking library Group: System/GUI/KDE Requires: qt5-qtcore %description -n libKF5SonnetCore%sonum Sonnet is a plugin-based spell checking library for Qt-based applications. It supports several different plugins, including HSpell, Enchant, ASpell and HUNSPELL. %package -n libKF5SonnetUi%sonum Summary: KDE spell checking library Group: System/GUI/KDE Requires: qt5-qtgui Requires: qt5-qtwidgets Requires: libKF5SonnetCore5 %description -n libKF5SonnetUi%sonum Sonnet is a plugin-based spell checking library for Qt-based applications. It supports several different plugins, including HSpell, Enchant, ASpell and HUNSPELL. %package devel Summary: KDE spell checking library: Build Environment Group: Development/Libraries/KDE Requires: extra-cmake-modules Requires: libKF5SonnetCore%sonum = %{version} Requires: libKF5SonnetUi%sonum = %{version} Requires: pkgconfig(Qt5Core) >= 5.6.0 %description devel 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. %prep %autosetup -p1 %build %cmake ../%{name}-%{version} -Dlconvert_executable=%{_libdir}/qt5/bin/lconvert make %{?jobs:-j%jobs} %install rm -rf %{buildroot} # >> install pre # << install pre %make_install %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 %files -n libKF5SonnetCore%sonum %defattr(-,root,root) %doc COPYING* %{_libdir}/libKF5SonnetCore.so.* %{_libdir}/qt5/plugins/kf5/ %{_datadir}/kf5/sonnet/ %{_datadir}/locale %files -n libKF5SonnetUi%sonum %defattr(-,root,root) %doc COPYING* %{_libdir}/libKF5SonnetUi.so.* %files devel %defattr(-,root,root) %{_bindir}/parsetrigrams %{_bindir}/gentrigrams %{_libdir}/libKF5SonnetCore.so %{_libdir}/libKF5SonnetUi.so %{_libdir}/cmake/KF5Sonnet/ %{_includedir}/ %{_datadir}/qt5/mkspecs/modules/qt_Sonnet*.pri %changelog