## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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$ Name: fcitx5-chinese-addons Version: 5.0.16 Release: %autorelease Summary: Chinese related addon for fcitx5 License: 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.xz Source1: https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-%{version}_dict.tar.xz.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) BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5WebKitWidgets) 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 %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 # workaround for a testing failure due to not finding .dict files %ctest %files -f %{name}.lang %license LICENSES/LGPL-2.1-or-later.txt %doc README.md %{_bindir}/scel2org5 %{_libdir}/fcitx5/*.so %{_libdir}/fcitx5/qt5/libpinyindictmanager.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/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 * 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 2021 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