2020-07-09 13:57:02 +00:00
|
|
|
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3
|
2012-11-21 10:51:51 +00:00
|
|
|
%global sub_version 1.0
|
2013-09-09 05:19:49 +00:00
|
|
|
%global require_ibus_version 1.5.3
|
2012-11-21 10:51:51 +00:00
|
|
|
%global have_default_layout 1
|
|
|
|
%global have_bridge_hotkey 1
|
2014-11-13 07:47:01 +00:00
|
|
|
%global with_python3 1
|
2015-04-22 04:34:05 +00:00
|
|
|
|
2021-02-10 12:14:59 +00:00
|
|
|
%if (0%{?fedora} > 33 || 0%{?rhel} > 8)
|
|
|
|
%bcond_without kasumi_unicode
|
2018-03-19 11:57:15 +00:00
|
|
|
%else
|
2021-02-10 12:14:59 +00:00
|
|
|
%bcond_with kasumi_unicode
|
2018-03-19 11:57:15 +00:00
|
|
|
%endif
|
|
|
|
|
2014-11-13 07:47:01 +00:00
|
|
|
%if %with_python3
|
2014-02-06 03:35:24 +00:00
|
|
|
# for bytecompile in %%{_datadir}/ibus-anthy
|
|
|
|
%global __python %{__python3}
|
2014-11-13 07:47:01 +00:00
|
|
|
%endif
|
2014-02-06 03:35:24 +00:00
|
|
|
|
2013-09-09 05:19:49 +00:00
|
|
|
Name: ibus-anthy
|
2024-02-28 12:38:10 +00:00
|
|
|
Version: 1.5.16
|
2024-05-11 09:02:36 +00:00
|
|
|
Release: %autorelease
|
2013-09-09 05:19:49 +00:00
|
|
|
Summary: The Anthy engine for IBus input platform
|
2022-11-16 06:53:56 +00:00
|
|
|
License: GPL-2.0-or-later
|
2015-07-16 10:16:16 +00:00
|
|
|
URL: https://github.com/ibus/ibus/wiki
|
2014-09-16 06:09:28 +00:00
|
|
|
Source0: https://github.com/ibus/ibus-anthy/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2008-08-10 11:49:30 +00:00
|
|
|
|
2013-09-09 05:19:49 +00:00
|
|
|
# Upstreamed patches.
|
|
|
|
# Patch0: %%{name}-HEAD.patch
|
2024-03-12 10:21:56 +00:00
|
|
|
Patch0: %{name}-HEAD.patch
|
2021-03-16 13:31:46 +00:00
|
|
|
Patch1: %{name}-1938129-default-hiragana.patch
|
2012-10-06 13:14:13 +00:00
|
|
|
|
2019-10-16 10:44:36 +00:00
|
|
|
BuildRequires: anthy-unicode-devel
|
2012-11-21 10:51:51 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2008-08-10 11:49:30 +00:00
|
|
|
BuildRequires: gettext-devel
|
2019-10-16 10:44:36 +00:00
|
|
|
BuildRequires: git
|
2012-03-04 13:58:08 +00:00
|
|
|
BuildRequires: glib2-devel
|
2012-11-21 10:51:51 +00:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2011-07-04 06:37:44 +00:00
|
|
|
BuildRequires: ibus
|
2008-08-10 11:49:30 +00:00
|
|
|
BuildRequires: libtool
|
2010-04-23 02:20:21 +00:00
|
|
|
BuildRequires: pkgconfig
|
2014-02-06 03:35:24 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-gobject
|
2024-01-30 04:31:11 +00:00
|
|
|
BuildRequires: /usr/bin/appstream-util
|
2008-08-10 11:49:30 +00:00
|
|
|
|
2013-09-09 05:19:49 +00:00
|
|
|
Requires: ibus >= %{require_ibus_version}
|
2021-02-10 12:14:59 +00:00
|
|
|
%if %{with kasumi_unicode}
|
|
|
|
Requires: kasumi-unicode
|
|
|
|
%else
|
2013-09-09 05:19:49 +00:00
|
|
|
Requires: kasumi
|
2021-02-10 12:14:59 +00:00
|
|
|
%endif
|
2019-10-16 10:44:36 +00:00
|
|
|
Requires: anthy-unicode
|
2018-03-19 10:36:58 +00:00
|
|
|
Requires: %{name}-python = %{version}-%{release}
|
2008-08-10 11:49:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Anthy engine for IBus platform. It provides Japanese input method from
|
2012-07-31 13:18:34 +00:00
|
|
|
a library of the Anthy.
|
2008-08-10 11:49:30 +00:00
|
|
|
|
2013-09-09 05:19:49 +00:00
|
|
|
%package python
|
|
|
|
Summary: Anthy Python files for IBus
|
|
|
|
BuildArch: noarch
|
2013-12-24 03:48:43 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2014-02-27 10:31:25 +00:00
|
|
|
Requires: gtk3
|
|
|
|
Requires: python3-cairo
|
|
|
|
Requires: python3-gobject
|
2013-09-09 05:19:49 +00:00
|
|
|
|
|
|
|
%description python
|
|
|
|
This package contains the Anthy Python files for IBus
|
|
|
|
|
2012-03-04 13:58:08 +00:00
|
|
|
%package devel
|
2013-09-09 05:19:49 +00:00
|
|
|
Summary: Development tools for IBus
|
2019-10-16 10:44:36 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-09-09 05:19:49 +00:00
|
|
|
Requires: glib2-devel
|
2019-10-16 10:44:36 +00:00
|
|
|
Requires: anthy-unicode-devel
|
2012-03-04 13:58:08 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The ibus-anthy-devel package contains .so file and .gir files
|
|
|
|
for developers.
|
|
|
|
|
2019-10-16 10:44:36 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Tests for the %{name} package
|
2021-03-21 06:35:18 +00:00
|
|
|
BuildRequires: python3-pycotap
|
2019-10-16 10:44:36 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2020-07-09 13:57:02 +00:00
|
|
|
Requires: python3-pycotap
|
2019-10-16 10:44:36 +00:00
|
|
|
|
|
|
|
%description tests
|
|
|
|
The %{name}-tests package contains tests that can be used to verify
|
|
|
|
the functionality of the installed %{name} package.
|
|
|
|
|
|
|
|
|
2008-08-10 11:49:30 +00:00
|
|
|
%prep
|
2019-10-16 10:44:36 +00:00
|
|
|
%autosetup -S git
|
2008-08-10 11:49:30 +00:00
|
|
|
|
|
|
|
%build
|
2019-10-16 10:44:36 +00:00
|
|
|
#autoreconf -f -i -v
|
2011-06-22 04:45:22 +00:00
|
|
|
%configure \
|
2012-02-06 02:45:11 +00:00
|
|
|
%if %have_default_layout
|
|
|
|
--with-layout='default' \
|
|
|
|
%endif
|
2011-06-22 04:45:22 +00:00
|
|
|
%if %have_bridge_hotkey
|
|
|
|
--with-hotkeys \
|
2021-02-10 12:14:59 +00:00
|
|
|
%endif
|
|
|
|
%if %{with kasumi_unicode}
|
|
|
|
--with-kasumi-exec=/usr/bin/kasumi-unicode \
|
2013-05-11 13:56:25 +00:00
|
|
|
%endif
|
|
|
|
--with-on-off-keys="'Zenkaku_Hankaku', 'Ctrl+space', 'Ctrl+J'" \
|
2014-02-06 03:35:24 +00:00
|
|
|
--with-python=python3 \
|
2019-10-16 10:44:36 +00:00
|
|
|
--enable-installed-tests \
|
2011-06-22 04:45:22 +00:00
|
|
|
--disable-static
|
2008-08-10 11:49:30 +00:00
|
|
|
# make -C po update-gmo
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-11-21 10:51:51 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
2012-03-04 13:58:08 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la
|
2008-08-10 11:49:30 +00:00
|
|
|
|
2015-03-25 22:14:52 +00:00
|
|
|
|
2008-08-15 04:01:59 +00:00
|
|
|
%find_lang %{name}
|
2008-08-10 11:49:30 +00:00
|
|
|
|
2012-11-21 10:51:51 +00:00
|
|
|
%check
|
|
|
|
desktop-file-validate \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-anthy.desktop
|
2024-01-30 04:31:11 +00:00
|
|
|
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/*.xml
|
2021-10-22 03:11:19 +00:00
|
|
|
export LANG=C.UTF-8
|
|
|
|
locale
|
2021-10-22 00:34:50 +00:00
|
|
|
make -C data check
|
2008-08-10 11:49:30 +00:00
|
|
|
|
2021-06-17 09:05:09 +00:00
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
2021-04-21 02:22:22 +00:00
|
|
|
|
2008-08-15 04:01:59 +00:00
|
|
|
%files -f %{name}.lang
|
2008-08-10 11:49:30 +00:00
|
|
|
%doc AUTHORS COPYING README
|
2012-11-22 04:18:55 +00:00
|
|
|
# dir {python2_sitearch}/ibus
|
2012-03-04 13:58:08 +00:00
|
|
|
%{_libdir}/libanthygobject-%{sub_version}.so.*
|
|
|
|
%{_libdir}/girepository-1.0/Anthy*.typelib
|
2018-03-19 10:55:38 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.anthy.gschema.xml
|
2013-09-09 05:19:49 +00:00
|
|
|
%dir %{_datadir}/ibus-anthy
|
2021-04-27 10:58:05 +00:00
|
|
|
%{_datadir}/applications/ibus-setup-anthy.desktop
|
2013-09-09 05:19:49 +00:00
|
|
|
%{_datadir}/ibus-anthy/dicts
|
2012-10-06 13:14:13 +00:00
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg
|
2008-08-10 11:49:30 +00:00
|
|
|
|
2013-09-09 05:19:49 +00:00
|
|
|
%files python
|
|
|
|
%{_libexecdir}/ibus-*-anthy
|
|
|
|
%{_datadir}/ibus-anthy/engine
|
|
|
|
%{_datadir}/ibus-anthy/setup
|
|
|
|
%{_datadir}/ibus/component/*
|
2024-01-30 04:31:11 +00:00
|
|
|
%{_metainfodir}/*.xml
|
2013-09-09 05:19:49 +00:00
|
|
|
|
2012-03-04 13:58:08 +00:00
|
|
|
%files devel
|
|
|
|
%{_datadir}/gir-1.0/Anthy*.gir
|
|
|
|
%{_includedir}/ibus-anthy-%{sub_version}
|
|
|
|
%{_libdir}/libanthygobject-%{sub_version}.so
|
|
|
|
|
2019-10-16 10:44:36 +00:00
|
|
|
%files tests
|
|
|
|
%dir %{_libexecdir}/installed-tests
|
|
|
|
%{_libexecdir}/installed-tests/%{name}
|
|
|
|
%dir %{_datadir}/installed-tests
|
|
|
|
%{_datadir}/installed-tests/%{name}
|
|
|
|
|
2008-08-10 11:49:30 +00:00
|
|
|
%changelog
|
2024-05-11 09:02:36 +00:00
|
|
|
%autochangelog
|
2024-03-12 10:21:56 +00:00
|
|
|
|