## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global __provides_exclude_from ^%{_libdir}/fcitx5/.*\\.so$ %if 0%{?fedora} >= 40 %ifarch %qt6_qtwebengine_arches %global use_qt6 1 %define qtwebengine 1 %else %global use_qt6 0 %ifarch %qt5_qtwebengine_arches %define qtwebengine 1 %else %define qtwebengine 0 %endif %endif %else %global use_qt6 0 %ifarch %qt5_qtwebengine_arches %define qtwebengine 1 %else %define qtwebengine 0 %endif %endif %if %{use_qt6} %define qt_major_ver 6 %else %define qt_major_ver 5 %endif Name: fcitx5-chinese-addons Version: 5.1.6 Release: %autorelease Summary: Chinese related addon for fcitx5 # Automatically converted from old format: LGPLv2+ - review is highly recommended. License: LicenseRef-Callaway-LGPLv2+ URL: https://github.com/fcitx/fcitx5-chinese-addons Source: https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-%{version}_dict.tar.zst Source1: https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-%{version}_dict.tar.zst.sig Source2: https://pgp.key-server.io/download/0x8E8B898CBF2412F9 BuildRequires: gnupg2 BuildRequires: boost-devel BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: fcitx5-qt-devel BuildRequires: fcitx5-lua-devel BuildRequires: gcc-c++ BuildRequires: libime-devel BuildRequires: ninja-build BuildRequires: gettext-devel BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(fmt) %if %{qtwebengine} BuildRequires: cmake(Qt%{qt_major_ver}WebEngineWidgets) %else BuildRequires: cmake(Qt%{qt_major_ver}WebKitWidgets) %endif BuildRequires: pkgconfig(opencc) BuildRequires: pkgconfig(Fcitx5Core) BuildRequires: pkgconfig(Fcitx5Module) BuildRequires: /usr/bin/appstream-util Requires: hicolor-icon-theme Requires: %{name}-data = %{version}-%{release} Requires: fcitx5-lua Requires: fcitx5-data %description This provides pinyin and table input method support for fcitx5. Released under LGPL-2.1+. im/pinyin/emoji.txt is derived from Unicode CLDR with modification. %package data Summary: Data files of %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: hicolor-icon-theme Requires: fcitx5-lua Requires: fcitx5-data %description data The %{name}-data package provides shared data for %{name}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: fcitx5-devel %description devel devel files for fcitx5-chinese-addons %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 %build %cmake -GNinja \ %if %{use_qt6} -DUSE_QT6=On \ %else -DUSE_QT6=Off \ %endif %if %{qtwebengine} -DUSE_WEBKIT=Off %else -DUSE_WEBKIT=On %endif %cmake_build %install %cmake_install # convert symlinked icons to copied icons, this will help co-existing with # fcitx4 for iconfile in $(find %{buildroot}%{_datadir}/icons -type l) do origicon=$(readlink -f ${iconfile}) rm -f ${iconfile} cp ${origicon} ${iconfile} done appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %find_lang %{name} %check %ctest %files -f %{name}.lang %license LICENSES/LGPL-2.1-or-later.txt %doc README.md %{_bindir}/scel2org5 %{_libdir}/fcitx5/*.so %{_libdir}/fcitx5/qt%{qt_major_ver}/libpinyindictmanager.so %{_libdir}/fcitx5/qt%{qt_major_ver}/libcustomphraseeditor.so %files data %dir %{_datadir}/fcitx5/pinyin %dir %{_datadir}/fcitx5/punctuation %dir %{_datadir}/fcitx5/pinyinhelper %{_datadir}/fcitx5/addon/*.conf %{_datadir}/fcitx5/inputmethod/*.conf %{_datadir}/fcitx5/lua/imeapi/extensions/pinyin.lua %{_datadir}/fcitx5/pinyin/*.dict %{_datadir}/fcitx5/pinyin/symbols %{_datadir}/fcitx5/pinyinhelper/py_*.mb %{_datadir}/fcitx5/punctuation/punc.mb.* %dir %{_datadir}/fcitx5/chttrans %{_datadir}/fcitx5/chttrans/gbks2t.tab %{_datadir}/icons/hicolor/*/apps/* %{_metainfodir}/org.fcitx.Fcitx5.Addon.ChineseAddons.metainfo.xml %files devel %{_includedir}/Fcitx5/Module/fcitx-module/* %{_libdir}/cmake/Fcitx5Module* %changelog ## START: Generated by rpmautospec * Wed Aug 28 2024 Miroslav Suchý - 5.1.6-3 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 5.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 01 2024 Qiyu Yan - 5.1.6-1 - update to upstream release 5.1.6 * Tue Apr 23 2024 Qiyu Yan - 5.1.5-2 - include fcitx5/pinyin/symbols * Tue Apr 23 2024 Qiyu Yan - 5.1.5-1 - update to upstream release 5.1.5 * Sat Mar 02 2024 Qiyu Yan - 5.1.4-1 - update to upstream release 5.1.4 * Wed Jan 24 2024 Fedora Release Engineering - 5.1.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 5.1.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 18 2024 Jonathan Wakely - 5.1.3-5 - Rebuilt for Boost 1.83 * Fri Jan 05 2024 Qiyu Yan - 5.1.3-4 - select qt6/qt-webengine when available * Fri Jan 05 2024 Qiyu Yan - 5.1.3-3 - use upstream respined tar * Fri Jan 05 2024 Qiyu Yan - 5.1.3-2 - enable pure QT6 build when available * Fri Jan 05 2024 Qiyu Yan - 5.1.3-1 - update to upstream release 5.1.3 * Thu Nov 02 2023 Qiyu Yan - 5.1.2-1 - update to upstream release 5.1.2 * Mon Oct 02 2023 Qiyu Yan - 5.1.1-1 - update to upstream release 5.1.1 * Fri Aug 18 2023 Qiyu Yan - 5.1.0-1 - update to upstream release 5.1.0 * Wed Jul 19 2023 Fedora Release Engineering - 5.0.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Vitaly Zaitsev - 5.0.17-2 - Rebuilt due to fmt 10 update. * Sun Mar 12 2023 Qiyu Yan - 5.0.17-1 - update to upstream release 5.0.17 * Mon Feb 20 2023 Jonathan Wakely - 5.0.16-3 - Rebuilt for Boost 1.81 * Thu Jan 19 2023 Fedora Release Engineering - 5.0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Nov 21 2022 Qiyu Yan - 5.0.16-1 - update to upstream release 5.0.16 * Tue Aug 30 2022 Qiyu Yan - 5.0.15-2 - remove unused patch * Tue Aug 30 2022 Qiyu Yan - 5.0.15-1 - update to upstream release 5.0.15 * Thu Jul 21 2022 Fedora Release Engineering - 5.0.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 05 2022 Qiyu Yan - 5.0.14-2 - fix testing * Mon Jul 04 2022 Qiyu Yan - 5.0.14-1 - update to upstream release 5.0.14 * Mon May 23 2022 Qiyu Yan - 5.0.13-1 - update to upstream release 5.0.13 * Wed May 04 2022 Thomas Rodgers - 5.0.12-2 - Rebuilt for Boost 1.78 * Thu Mar 10 2022 Qiyu Yan - 5.0.12-1 - update to upstream release 5.0.12 * Wed Feb 02 2022 Qiyu Yan - 5.0.11-1 - update to upstream release 5.0.11 * Thu Jan 20 2022 Fedora Release Engineering - 5.0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 02 2022 Qiyu Yan - 5.0.10-1 - update to 5.0.10 * Mon Dec 06 2021 Qiyu Yan - 5.0.9-2 - workaround for testing failure * Mon Dec 06 2021 Qiyu Yan - 5.0.9-1 - update to 5.0.9 * Sat Nov 06 2021 Qiyu Yan - 5.0.8-1 - update to 5.0.8 * Sun Sep 26 2021 Qiyu Yan - 5.0.7-1 - update to 5.0.7 * Fri Aug 06 2021 Jonathan Wakely - 5.0.6-3 - Rebuilt for Boost 1.76 * Wed Jul 21 2021 Fedora Release Engineering - 5.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed May 05 2021 Qiyu Yan - 5.0.6-1 - Update to 5.0.6 upstream release * Mon Mar 22 2021 Qiyu Yan - 5.0.5-1 - Update to 5.0.5 upstream release * Sat Feb 20 2021 Qiyu Yan - 5.0.4-1 - update to 5.0.4 upstream release * Tue Jan 26 2021 Fedora Release Engineering - 5.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 2021 Jonathan Wakely - 5.0.3-2 - Rebuilt for Boost 1.75 * Wed Jan 13 11:08:23 CST 2021 Qiyu Yan - 5.0.3-1 - update to 5.0.3 upstream release * Fri Dec 11 16:52:38 CST 2020 Qiyu Yan - 5.0.2-2 - fix conlict with fcitx4 * Sat Dec 5 16:10:00 CST 2020 Qiyu Yan - 5.0.2-1 - Update to 5.0.2 upstream release * Wed Nov 4 13:35:36 CST 2020 Qiyu Yan - 5.0.1-1 - update to 5.0.1 upstream release * Tue Nov 3 18:10:38 CST 2020 Qiyu Yan - 5.0.0-1 - update to 5.0.0 upstream release * Fri Oct 16 2020 Qiyu Yan - 0-0.4 - update to 6f856b73802f009f0cfa935115f5911e835b6231 upstream commit * Sat Sep 12 2020 Qiyu Yan - 0-0.3 - Rebuild for fcitx5 - upstream commit 591848d9c22724d788bf17a2e10f19531d635689 * Sun Aug 16 2020 Qiyu Yan - 0-0.2.20200811gitef9beb7 - rebuilt * Wed Aug 12 2020 Qiyu Yan - 0-0.1.20200811gitef9beb7 - initial package ## END: Generated by rpmautospec