## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 22; 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 # https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 %global sub_version 1.0 %global require_ibus_version 1.5.3 %global have_default_layout 1 %global have_bridge_hotkey 1 %global with_python3 1 %if (0%{?fedora} > 33 || 0%{?rhel} > 8) %bcond_without kasumi_unicode %else %bcond_with kasumi_unicode %endif %if %with_python3 # for bytecompile in %%{_datadir}/ibus-anthy %global __python %{__python3} %endif Name: ibus-anthy Version: 1.5.16 Release: %autorelease Summary: The Anthy engine for IBus input platform License: GPL-2.0-or-later URL: https://github.com/ibus/ibus/wiki Source0: https://github.com/ibus/ibus-anthy/releases/download/%{version}/%{name}-%{version}.tar.gz # Upstreamed patches. # Patch0: %%{name}-HEAD.patch Patch0: %{name}-HEAD.patch Patch1: %{name}-1938129-default-hiragana.patch BuildRequires: anthy-unicode-devel BuildRequires: desktop-file-utils BuildRequires: gettext-devel BuildRequires: git BuildRequires: glib2-devel BuildRequires: gobject-introspection-devel BuildRequires: ibus BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: python3-devel BuildRequires: python3-gobject BuildRequires: /usr/bin/appstream-util Requires: ibus >= %{require_ibus_version} %if %{with kasumi_unicode} Requires: kasumi-unicode %else Requires: kasumi %endif Requires: anthy-unicode Requires: %{name}-python = %{version}-%{release} %description The Anthy engine for IBus platform. It provides Japanese input method from a library of the Anthy. %package python Summary: Anthy Python files for IBus BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: gtk3 Requires: python3-cairo Requires: python3-gobject %description python This package contains the Anthy Python files for IBus %package devel Summary: Development tools for IBus Requires: %{name}%{?_isa} = %{version}-%{release} Requires: glib2-devel Requires: anthy-unicode-devel %description devel The ibus-anthy-devel package contains .so file and .gir files for developers. %package tests Summary: Tests for the %{name} package BuildRequires: python3-pycotap Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python3-pycotap %description tests The %{name}-tests package contains tests that can be used to verify the functionality of the installed %{name} package. %prep %autosetup -S git %build #autoreconf -f -i -v %configure \ %if %have_default_layout --with-layout='default' \ %endif %if %have_bridge_hotkey --with-hotkeys \ %endif %if %{with kasumi_unicode} --with-kasumi-exec=/usr/bin/kasumi-unicode \ %endif --with-on-off-keys="'Zenkaku_Hankaku', 'Ctrl+space', 'Ctrl+J'" \ --with-python=python3 \ --enable-installed-tests \ --disable-static # make -C po update-gmo make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la %find_lang %{name} %check desktop-file-validate \ $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-anthy.desktop appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/*.xml export LANG=C.UTF-8 locale make -C data check %ldconfig_scriptlets libs %files -f %{name}.lang %doc AUTHORS COPYING README # dir {python2_sitearch}/ibus %{_libdir}/libanthygobject-%{sub_version}.so.* %{_libdir}/girepository-1.0/Anthy*.typelib %{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.anthy.gschema.xml %dir %{_datadir}/ibus-anthy %{_datadir}/applications/ibus-setup-anthy.desktop %{_datadir}/ibus-anthy/dicts %{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg %files python %{_libexecdir}/ibus-*-anthy %{_datadir}/ibus-anthy/engine %{_datadir}/ibus-anthy/setup %{_datadir}/ibus/component/* %{_metainfodir}/*.xml %files devel %{_datadir}/gir-1.0/Anthy*.gir %{_includedir}/ibus-anthy-%{sub_version} %{_libdir}/libanthygobject-%{sub_version}.so %files tests %dir %{_libexecdir}/installed-tests %{_libexecdir}/installed-tests/%{name} %dir %{_datadir}/installed-tests %{_datadir}/installed-tests/%{name} %changelog ## START: Generated by rpmautospec * Tue Oct 29 2024 Troy Dawson - 1.5.16-22 - Bump release for October 2024 mass rebuild: * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-21 - tests: Move gnome-calendar and gnome-epub-thumbnailer to Fedora only * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-20 - tests: Add gnome-shell-47 to no-overview extension * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-19 - tests: gdm-47~alpha-4 provides headless files * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-18 - Update CI for RHEL10 - Add no-overview@fthx until gnome-shell-extension-no-overview is available - Add gnome-headless-session@.service until GDM will provide it * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-17 - tests: Delete RHEL specific packages * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-16 - tests: Update packages with comps-f41 - Add base-graphical - Add fonts default - Delete libcanberra-gtk3, libproxy-duktape - Delete tmt for RHEL CI * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-15 - Replace STI with TMT in CI * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-14 - Support GNOME Wayland and GTK4 in CI * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-13 - Revert change of "Fix CI freeze" (c89a603) * Tue Sep 17 2024 Takao Fujiwara - 1.5.16-12 - Delete CI with STI * Sat Jul 13 2024 Takao Fujiwara - 1.5.16-11 - Update required packages in CI - adobe-source-code-pro-fonts is no longer available in RHEL10 - dnf and git do not work after systemd-oomd-defaults is installed * Mon Jun 24 2024 Troy Dawson - 1.5.16-10 - Bump release for June 2024 mass rebuild * Thu May 16 2024 Takao Fujiwara - 1.5.16-9 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec