File fcitx5-hallelujah.spec of Package fcitx5-hallelujah
#
# spec file for package fcitx5-hallelujah
#
# Copyright (c) 2025 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-hallelujah
Version: 0.0.0+git20241209.9358efc
Release: 0
Summary: Fcitx5 port of HallelujahIM
License: GPL-3.0-Only
URL: https://github.com/fcitx-contrib/fcitx5-hallelujah
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: fcitx5-devel
BuildRequires: marisa-devel
BuildRequires: fmt-devel
BuildRequires: libjson-c-devel
BuildRequires: xz
%if 0%{?suse_version} < 1600
BuildRequires: gcc13-c++
BuildRequires: gcc13
%endif
%description
Fcitx5 port of HallelujahIM.
%prep
%autosetup -p1
%build
%if 0%{?suse_version} < 1600
%cmake -DCMAKE_C_COMPILER=%{_bindir}/gcc-13 -DCMAKE_CXX_COMPILER=%{_bindir}/g++-13
%else
%cmake
%endif
%make_build
%install
%cmake_install
%files
%license LICENSES/GPL-3.0-only.txt
%doc README.md
%{_libdir}/fcitx5/libhallelujah.so
%{_datadir}/fcitx5/addon/hallelujah.conf
%{_datadir}/fcitx5/inputmethod/hallelujah.conf
%{_datadir}/hallelujah
%{_datadir}/metainfo/org.fcitx.Fcitx5.Addon.Hallelujah.metainfo.xml
%changelog