File fcitx-qt5.spec of Package fcitx-qt5
#
# spec file for package fcitx-qt5
#
# Copyright (c) 2018 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/
#
Name: fcitx-qt5
Version: 1.2.2
Release: 0
Summary: Fcitx QT5 Input Context
License: GPL-2.0-or-later AND GPL-3.0-or-later AND BSD-3-Clause
Group: System/I18n/Chinese
Url: https://github.com/fcitx/fcitx-qt5
Source: https://download.fcitx-im.org/%{name}/%{name}-%{version}.tar.xz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM: fix compilation with Qt 5.11 (missing include)
Patch0: fix-compilation-with-qt-5.11.patch
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: fcitx-devel >= 4.2.9.1
BuildRequires: gcc-c++
BuildRequires: libicu-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qtbase-private-headers-devel
BuildRequires: libqt5-qtx11extras-devel
BuildRequires: libxkbcommon-devel
BuildRequires: xz
# fcitx-qt5 is using private QPA API, which can, and does break BC even in point releases,
# so we need to hardcode libQt5Gui5 version
%requires_eq libQt5Gui5
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A QT5 input context plugin of Fcitx IM Framework.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
Development header files for Fcitx input method framework (Qt5).
%prep
%setup -q
%autopatch -p1
%build
%cmake ..
make %{?_smp_mflags}
%install
%cmake_install
%find_lang fcitx-qt5
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f fcitx-qt5.lang
%defattr(-,root,root)
%doc COPYING
%dir %{_libdir}/fcitx/qt
%{_libdir}/fcitx/libexec/fcitx-qt5-gui-wrapper
%{_libdir}/libFcitxQt5*Addons.so.1
%{_libdir}/libFcitxQt5*Addons.so.1.0
%{_libdir}/fcitx/qt/libfcitx-quickphrase-editor5.so
%dir %{_libdir}/qt5/plugins/
%dir %{_libdir}/qt5/plugins/platforminputcontexts/
%{_libdir}/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
%files devel
%defattr(-,root,root)
%{_includedir}/FcitxQt5
%{_libdir}/libFcitxQt5*Addons.so
%{_libdir}/cmake/FcitxQt5*Addons/
%changelog