File fcitx5-bamboo.spec of Package fcitx5-bamboo

#
# spec file for package fcitx5-bamboo
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           fcitx5-bamboo
Version:        1.0.8
Release:        0
Summary:        Bamboo engine support for Fcitx
License:        GPL-2.0-or-later AND LGPL-2.0-or-later
URL:            https://github.com/fcitx/fcitx5-bamboo
Source:         %{name}-%{version}.tar.zst
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  fcitx5-devel
BuildRequires:  fcitx5-qt-devel
%if 0%{?suse_version} >= 1550
BuildRequires:  gcc-c++
%else
BuildRequires:  gcc13-c++
%endif
BuildRequires:  go1.18
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  zstd
Requires:       fcitx5
Provides:       fcitx-bamboo = %{version}

%description
Bamboo (Vietnamese Input Method) engine support for Fcitx
Based on https://github.com/BambooEngine/bamboo-core

%prep
%setup -q

%build
%if 0%{?suse_version} < 1550
export CC=%{_bindir}/gcc-13
export CXX=%{_bindir}/g++-13
%endif
%cmake
%make_build

%install
%cmake_install
%find_lang %{name}

%files -f %{name}.lang
%license LICENSES
%doc README
%{_datadir}/locale
%{_libdir}/fcitx5/libbamboo.so
%{_datadir}/fcitx5
%{_datadir}/icons/hicolor
%{_datadir}/metainfo/org.fcitx.Fcitx5.Addon.Bamboo.metainfo.xml

%changelog
openSUSE Build Service is sponsored by