## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 module_name ibus_cangjie %global forgeurl https://github.com/Cangjians/ibus-cangjie %global archiveext tar.xz Name: ibus-cangjie Summary: IBus engine to input Cangjie and Quick Version: 2.4.1 Release: %autorelease %forgemeta License: GPL-3.0-or-later URL: https://cangjie.pages.freedesktop.org/projects/%{name} Source0: https://gitlab.freedesktop.org/cangjie/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz # part of https://gitlab.freedesktop.org/cangjie/ibus-cangjie/-/merge_requests/125 Patch0: 0001-meson-remove-usr-bin-coverage-test.patch BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: gettext BuildRequires: ibus-devel BuildRequires: python3-devel BuildRequires: meson # For the unit tests BuildRequires: gobject-introspection BuildRequires: gtk3 BuildRequires: gsound BuildRequires: libcangjie-data BuildRequires: python3-cangjie >= 1.4 BuildRequires: python3-gobject Requires: gobject-introspection Requires: gtk3 Requires: gsound Requires: python3-cangjie >= 1.4 Requires: python3-gobject %description Common files needed by the IBus engines for users of the Cangjie and Quick input methods. %package engine-cangjie Summary: Cangjie input method for IBus Requires: %{name} = %{version}-%{release} %description engine-cangjie IBus engine for users of the Cangjie input method. It is primarily intended to Hong Kong people who want to input Traditional Chinese, as they are (by far) the majority of Cangjie users. However, it should work for others as well (e.g to input Simplified Chinese). %package engine-quick Summary: Quick (Simplified Cangjie) input method for IBus Requires: %{name} = %{version}-%{release} %description engine-quick IBus engine for users of the Quick (Simplified Cangjie) input method. It is primarily intended to Hong Kong people who want to input Traditional Chinese, as they are (by far) the majority of Quick users. However, it should work for others as well (e.g to input Simplified Chinese). %prep %autosetup -n %{name}-%{version} -p1 %build %meson %meson_build %install %meson_install %find_lang %{name} %check export CANGJIE_DB=/usr/share/libcangjie/cangjie.db %meson_test %files -f %{name}.lang %doc AUTHORS README.md %license COPYING %{_bindir}/ibus-setup-cangjie %{python3_sitelib}/%{module_name} %{_datadir}/%{name} %{_datadir}/glib-2.0/schemas/org.freedesktop.cangjie.ibus.Cangjie.gschema.xml %{_datadir}/glib-2.0/schemas/org.freedesktop.cangjie.ibus.Quick.gschema.xml %{_datadir}/icons/hicolor/*/intl/* # Using %%{_prefix}/lib is allowed here because the package is exempt from # multilib (because it is noarch), see: # https://fedoraproject.org/wiki/Packaging:Guidelines#Multilib_Exempt_Locations %{_prefix}/lib/%{name} %files engine-cangjie %{_datadir}/applications/ibus-setup-cangjie.desktop %{_datadir}/applications/org.freedesktop.cangjie.ibus.cangjie-setup.desktop %{_datadir}/metainfo/org.freedesktop.cangjie.ibus.Cangjie.metainfo.xml %{_datadir}/ibus/component/org.freedesktop.cangjie.ibus.Cangjie.xml %files engine-quick %{_datadir}/applications/ibus-setup-quick.desktop %{_datadir}/applications/org.freedesktop.cangjie.ibus.quick-setup.desktop %{_datadir}/metainfo/org.freedesktop.cangjie.ibus.Quick.metainfo.xml %{_datadir}/ibus/component/org.freedesktop.cangjie.ibus.Quick.xml %changelog ## START: Generated by rpmautospec * Fri Nov 15 2024 Yaakov Selkowitz - 2.4.1-4 - Drop python3-coverage dependency * Tue Jul 23 2024 Mathieu Bridon - 2.4.1-3 - Empty commit to trick autorelease * Thu Jul 18 2024 Fedora Release Engineering - 2.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jul 09 2024 Mathieu Bridon - 2.4.1-1 - This is the fixed 2.4.1 package šŸŽ‰ * Mon Jul 08 2024 Mathieu Bridon - 2.4-43 - Move to meason * Mon Jul 08 2024 Mathieu Bridon - 2.4-42 - Use a simpler version of autosetup * Mon Jul 08 2024 Mathieu Bridon - 2.4-41 - Bump the requirement on pycangjie * Mon Jul 08 2024 Mathieu Bridon - 2.4-40 - We replaced pycanbrra by gsound upstream * Mon Jul 08 2024 Mathieu Bridon - 2.4-39 - Remove patches that have been merged upstream * Fri Jun 07 2024 Python Maint - 2.4-38 - Rebuilt for Python 3.13 * Wed Jan 24 2024 Fedora Release Engineering - 2.4-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 2.4-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Jul 25 2023 Sandro - 2.4-35 - Fix ModuleNotFoundError (RHBZ#2220015) - Use autoreconf to get rid of pesk 'imp' module - Migrate to SPDX license identifier - Use forgemeta macros - Use macros consistently - Use auto family of macros where applicable * Thu Jul 20 2023 Fedora Release Engineering - 2.4-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 2.4-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 2.4-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.4-27 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 2.4-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 02 2021 Mike FABIAN - 2.4-25 - Resolves: rhbz#1951884 Fix crash in setup tool * Thu Jul 22 2021 Fedora Release Engineering - 2.4-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.4-23 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 2.4-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.4-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 2.4-20 - Rebuilt for Python 3.9 * Wed Jan 29 2020 Fedora Release Engineering - 2.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 2.4-18 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.4-17 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 2.4-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Mathieu Bridon - 2.4-15 - Add missing requirements. * Fri Feb 01 2019 Fedora Release Engineering - 2.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.4-12 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 2.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 11 2018 Igor Gnatenko - 2.4-10 - Remove obsolete scriptlets * Wed Jul 26 2017 Fedora Release Engineering - 2.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.4-7 - Rebuild for Python 3.6 * Thu Aug 18 2016 Mathieu Bridon - 2.4-6 - Drop the GSettings schema scriptlets, they are unneeded for Fedora >= 24. * Tue Jul 19 2016 Fedora Release Engineering - 2.4-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Jun 17 2015 Fedora Release Engineering - 2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Mar 29 2015 Mathieu Bridon - 2.4-1 - Update to 2.4. * Wed Mar 04 2015 Mathieu Bridon - 2.3-1 - Update to 2.3. * Thu Jul 10 2014 Mathieu Bridon - 2.2-4 - Split the engines into their own subpackages. This makes much more sense for users of a graphical package manager (like GNOME Software): installing one installs just that, and more importantly removing an engine doesn't remove the other one. * Sat Jun 07 2014 Fedora Release Engineering - 2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Fri Apr 25 2014 Mathieu Bridon - 2.2-1 - New upstream 2.2 release. * Sun Feb 02 2014 Mathieu Bridon - 2.1-1 - New upstream 2.1 release. * Tue Dec 24 2013 Mathieu Bridon - 2.0-1 - New upstream 2.0 release. * Sat Aug 03 2013 Fedora Release Engineering - 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue May 07 2013 Mathieu Bridon - 1.0-3 - Preserve the file timestamps on installation. * Mon May 06 2013 Mathieu Bridon - 1.0-2 - Comment on the usage of %%{_prefix}/lib - Validate the desktop file. * Thu May 02 2013 Mathieu Bridon - 1.0-1 - Initial package for Fedora. ## END: Generated by rpmautospec