File fcitx-qt5.spec of Package fcitx-qt5
#
# spec file for package fcitx-qt5
#
# 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/
#
Name: fcitx-qt5
Version: 1.1.0
Release: 0
Summary: Fcitx QT5 Input Context
License: GPL-2.0+
Group: System/I18n/Chinese
Url: https://github.com/fcitx/fcitx-qt5
Source: http://download.fcitx-im.org/%{name}/%{name}-%{version}.tar.xz
Source99: baselibs.conf
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: 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
%build
%cmake ..
make %{?_smp_mflags}
%install
%cmake_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%{_libdir}/fcitx/libexec/fcitx-qt5-gui-wrapper
%{_libdir}/libFcitxQt5*Addons.so.1
%{_libdir}/libFcitxQt5*Addons.so.1.0
%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