File fcitx-skk.spec of Package fcitx-skk

# spec file for package fcitx-skk
# 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

Name:           fcitx-skk
Version:        0.1.4
Release:        0
Summary:        Japanese SKK IME Wrapper for Fcitx
License:        GPL-3.0+
Group:          System/I18n/Japanese
#PATCH-FIX-UPSTREAM lower qt5 version
Patch:          qt5-version.patch
BuildRequires:  cmake
BuildRequires:  fcitx-devel >= 4.2.8
BuildRequires:  fcitx-qt5-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libskk-devel
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

fcitx-skk is an input method engine for Fcitx, which uses libskk as its backend.

%setup -q
%patch -p1

mkdir -p build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
make %{?_smp_mflags}

pushd build

%find_lang %{name}

%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%dir %{_fcitx_libdir}/qt

openSUSE Build Service is sponsored by