SHA256
1
0
forked from pool/ibus-table
ibus-table/ibus-table.spec

93 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ibus-table
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ibus-table
Version: 1.17.0
Release: 0
Summary: The Table engine for IBus platform
License: LGPL-2.1-or-later
Group: System/I18n/Chinese
URL: https://github.com/mike-fabian/ibus-table/
Source: https://github.com/mike-fabian/ibus-table/releases/download/%{version}/%{name}-%{version}.tar.gz
Accepting request 557211 from M17N:Devel - Update to 1.9.17. This update will fix boo#939462 * Load .desktop file for ibus-setup-table correctly under Gnome Wayland * Set WM_CLASS of ibus-setup-table correctly * Avoid running initialization code of ibus_table_location.py * when using ibus-table-createdb. * Make it work on Python 3.6 (Unbreak sqlite on Python 3.6) * (Resolves: rhbz#1413580). * Update translations from zanata (ca, de, fr, uk updated) * Point to new home-page in the “About” tab. * Improve README * Fix bug in Unihan_Variants.txt, 乾 U+4E7E is both simplified and traditional Chinese (thanks to Heiher r@hev.cc) * When ignoring key release events, “False” should be returned, not “True” * Resolves: Resolves: rhbz#1369514 * add ibus-table.appdata.xml and make it translatable * pull some new translations and updates from Zanata (ca, fr, pt_BR, and uk are new, ja, zh_CN, and zh_TW have updates). - Drop ibus-table-python3.patch, It is needless. - update to 1.8.11 * Fix typo in variable name self_onechar -> self._onechar * Disable “onechar” (Phrase mode/Single char mode) option for non-CJK databases * Disable auto_commit option for tables which do not have RULES * Resolves: rhbz#1135759 - The rusle is broken with "Normal commit mode" See: https://bugzilla.redhat.com/show_bug.cgi?id=1135759 * Pass IBus.KEY_KP_Enter to the application if the preedit is empty * Resolves: rhbz#1133424 - With the new "rusle" table in ibus-table-cyrillic, Keypad Enter problem See: https://bugzilla.redhat.com/show_bug.cgi?id=1133424 OBS-URL: https://build.opensuse.org/request/show/557211 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-table?expand=0&rev=36
2017-12-15 05:48:10 +01:00
BuildRequires: docbook-utils-minimal
BuildRequires: fdupes
Accepting request 557211 from M17N:Devel - Update to 1.9.17. This update will fix boo#939462 * Load .desktop file for ibus-setup-table correctly under Gnome Wayland * Set WM_CLASS of ibus-setup-table correctly * Avoid running initialization code of ibus_table_location.py * when using ibus-table-createdb. * Make it work on Python 3.6 (Unbreak sqlite on Python 3.6) * (Resolves: rhbz#1413580). * Update translations from zanata (ca, de, fr, uk updated) * Point to new home-page in the “About” tab. * Improve README * Fix bug in Unihan_Variants.txt, 乾 U+4E7E is both simplified and traditional Chinese (thanks to Heiher r@hev.cc) * When ignoring key release events, “False” should be returned, not “True” * Resolves: Resolves: rhbz#1369514 * add ibus-table.appdata.xml and make it translatable * pull some new translations and updates from Zanata (ca, fr, pt_BR, and uk are new, ja, zh_CN, and zh_TW have updates). - Drop ibus-table-python3.patch, It is needless. - update to 1.8.11 * Fix typo in variable name self_onechar -> self._onechar * Disable “onechar” (Phrase mode/Single char mode) option for non-CJK databases * Disable auto_commit option for tables which do not have RULES * Resolves: rhbz#1135759 - The rusle is broken with "Normal commit mode" See: https://bugzilla.redhat.com/show_bug.cgi?id=1135759 * Pass IBus.KEY_KP_Enter to the application if the preedit is empty * Resolves: rhbz#1133424 - With the new "rusle" table in ibus-table-cyrillic, Keypad Enter problem See: https://bugzilla.redhat.com/show_bug.cgi?id=1133424 OBS-URL: https://build.opensuse.org/request/show/557211 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-table?expand=0&rev=36
2017-12-15 05:48:10 +01:00
BuildRequires: gettext-tools
BuildRequires: gnome-common
BuildRequires: pkg-config
Accepting request 557211 from M17N:Devel - Update to 1.9.17. This update will fix boo#939462 * Load .desktop file for ibus-setup-table correctly under Gnome Wayland * Set WM_CLASS of ibus-setup-table correctly * Avoid running initialization code of ibus_table_location.py * when using ibus-table-createdb. * Make it work on Python 3.6 (Unbreak sqlite on Python 3.6) * (Resolves: rhbz#1413580). * Update translations from zanata (ca, de, fr, uk updated) * Point to new home-page in the “About” tab. * Improve README * Fix bug in Unihan_Variants.txt, 乾 U+4E7E is both simplified and traditional Chinese (thanks to Heiher r@hev.cc) * When ignoring key release events, “False” should be returned, not “True” * Resolves: Resolves: rhbz#1369514 * add ibus-table.appdata.xml and make it translatable * pull some new translations and updates from Zanata (ca, fr, pt_BR, and uk are new, ja, zh_CN, and zh_TW have updates). - Drop ibus-table-python3.patch, It is needless. - update to 1.8.11 * Fix typo in variable name self_onechar -> self._onechar * Disable “onechar” (Phrase mode/Single char mode) option for non-CJK databases * Disable auto_commit option for tables which do not have RULES * Resolves: rhbz#1135759 - The rusle is broken with "Normal commit mode" See: https://bugzilla.redhat.com/show_bug.cgi?id=1135759 * Pass IBus.KEY_KP_Enter to the application if the preedit is empty * Resolves: rhbz#1133424 - With the new "rusle" table in ibus-table-cyrillic, Keypad Enter problem See: https://bugzilla.redhat.com/show_bug.cgi?id=1133424 OBS-URL: https://build.opensuse.org/request/show/557211 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-table?expand=0&rev=36
2017-12-15 05:48:10 +01:00
BuildRequires: pkgconfig(ibus-1.0)
BuildRequires: pkgconfig(python3)
Requires: ibus >= 1.4.99
Requires: python3
Requires: python3-curses
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The package contains general Table engine for IBus platform.
%package devel
Summary: Development package for ibus-table
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
This package contains the files required for the development of ibus-table.
%prep
%setup -q
chmod -x AUTHORS COPYING README
%build
export PYTHON=python3
Accepting request 557211 from M17N:Devel - Update to 1.9.17. This update will fix boo#939462 * Load .desktop file for ibus-setup-table correctly under Gnome Wayland * Set WM_CLASS of ibus-setup-table correctly * Avoid running initialization code of ibus_table_location.py * when using ibus-table-createdb. * Make it work on Python 3.6 (Unbreak sqlite on Python 3.6) * (Resolves: rhbz#1413580). * Update translations from zanata (ca, de, fr, uk updated) * Point to new home-page in the “About” tab. * Improve README * Fix bug in Unihan_Variants.txt, 乾 U+4E7E is both simplified and traditional Chinese (thanks to Heiher r@hev.cc) * When ignoring key release events, “False” should be returned, not “True” * Resolves: Resolves: rhbz#1369514 * add ibus-table.appdata.xml and make it translatable * pull some new translations and updates from Zanata (ca, fr, pt_BR, and uk are new, ja, zh_CN, and zh_TW have updates). - Drop ibus-table-python3.patch, It is needless. - update to 1.8.11 * Fix typo in variable name self_onechar -> self._onechar * Disable “onechar” (Phrase mode/Single char mode) option for non-CJK databases * Disable auto_commit option for tables which do not have RULES * Resolves: rhbz#1135759 - The rusle is broken with "Normal commit mode" See: https://bugzilla.redhat.com/show_bug.cgi?id=1135759 * Pass IBus.KEY_KP_Enter to the application if the preedit is empty * Resolves: rhbz#1133424 - With the new "rusle" table in ibus-table-cyrillic, Keypad Enter problem See: https://bugzilla.redhat.com/show_bug.cgi?id=1133424 OBS-URL: https://build.opensuse.org/request/show/557211 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-table?expand=0&rev=36
2017-12-15 05:48:10 +01:00
NOCONFIGURE=1 ./autogen.sh
%configure --disable-static \
--enable-additional \
--libexecdir=%{_libdir}/ibus
%make_build
%install
%make_install NO_INDEX=true
%find_lang %{name}
%fdupes %{buildroot}
%files -f %{name}.lang
%license COPYING
%doc AUTHORS README NEWS ChangeLog
%{_bindir}/%{name}-createdb
%{_ibus_libdir}/ibus-engine-table
%{_ibus_libdir}/ibus-setup-table
%{_datadir}/applications/ibus-setup-table.desktop
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.table.gschema.xml
%{_ibus_componentdir}/table.xml
%{_mandir}/man1/%{name}-createdb.1.gz
%{_datadir}/metainfo/ibus-table.appdata.xml
%{_datadir}/icons/hicolor/16x16/apps/ibus-table.png
%{_datadir}/icons/hicolor/22x22/apps/ibus-table.png
%{_datadir}/icons/hicolor/32x32/apps/ibus-table.png
%{_datadir}/icons/hicolor/48x48/apps/ibus-table.png
%{_datadir}/icons/hicolor/64x64/apps/ibus-table.png
%{_datadir}/icons/hicolor/128x128/apps/ibus-table.png
%{_datadir}/icons/hicolor/256x256/apps/ibus-table.png
%{_datadir}/icons/hicolor/scalable/apps/ibus-table.svg
%files devel
%{_libdir}/pkgconfig/%{name}.pc
%changelog