|
|
@ -2,15 +2,18 @@
|
|
|
|
%global require_libhangul_version 0.1.0
|
|
|
|
%global require_libhangul_version 0.1.0
|
|
|
|
|
|
|
|
|
|
|
|
Name: ibus-hangul
|
|
|
|
Name: ibus-hangul
|
|
|
|
Version: 1.5.4
|
|
|
|
Version: 1.5.1
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Summary: The Hangul engine for IBus input platform
|
|
|
|
Summary: The Hangul engine for IBus input platform
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: https://github.com/libhangul/ibus-hangul
|
|
|
|
URL: https://github.com/libhangul/ibus-hangul
|
|
|
|
Source0: https://github.com/libhangul/ibus-hangul/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/libhangul/ibus-hangul/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# not upstreamed patches
|
|
|
|
# not upstreamed patches
|
|
|
|
Patch1: ibus-hangul-setup-abspath.patch
|
|
|
|
Patch1: ibus-hangul-setup-abspath.patch
|
|
|
|
|
|
|
|
# patch from upstream
|
|
|
|
|
|
|
|
Patch2: ibus-hangul-fixes-reset-signal.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gettext-devel, automake, libtool
|
|
|
|
BuildRequires: gettext-devel, automake, libtool
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: intltool
|
|
|
@ -21,45 +24,68 @@ BuildRequires: ibus-devel >= %{require_ibus_version}
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: gnome-common
|
|
|
|
BuildRequires: gnome-common
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: ibus >= %{require_ibus_version}
|
|
|
|
Requires: ibus >= %{require_ibus_version}
|
|
|
|
Requires: libhangul >= %{require_libhangul_version}
|
|
|
|
Requires: libhangul >= %{require_libhangul_version}
|
|
|
|
Requires: python3-gobject
|
|
|
|
Requires: python3-gobject
|
|
|
|
Requires: python3
|
|
|
|
Requires: %{__python3}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The Hangul engine for IBus platform. It provides Korean input method from
|
|
|
|
The Hangul engine for IBus platform. It provides Korean input method from
|
|
|
|
libhangul.
|
|
|
|
libhangul.
|
|
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
|
|
|
Summary: Tests for the %{name} package
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
|
|
|
The %{name}-tests package contains tests that can be used to verify
|
|
|
|
|
|
|
|
the functionality of the installed %{name} package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1 -b .setup-abspath
|
|
|
|
%patch1 -p1 -b .setup-abspath
|
|
|
|
|
|
|
|
%patch2 -p1 -b .reset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# autopoint -f
|
|
|
|
|
|
|
|
# AUTOPOINT='intltoolize --automake --copy' autoreconf -fi
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
%configure \
|
|
|
|
%configure --disable-static --with-python=python3 %{?_with_hotkeys}
|
|
|
|
--disable-static \
|
|
|
|
# make -C po update-gmo
|
|
|
|
--with-python=python3 \
|
|
|
|
|
|
|
|
%{?_with_hotkeys} \
|
|
|
|
|
|
|
|
--enable-installed-tests \
|
|
|
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} install INSTALL="install -p"
|
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} install INSTALL="install -p"
|
|
|
|
|
|
|
|
|
|
|
|
%py_byte_compile %{python3} $RPM_BUILD_ROOT%{_datadir}/ibus-hangul/setup
|
|
|
|
# Register as an AppStream component to be visible in the software center
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# NOTE: It would be *awesome* if this file was maintained by the upstream
|
|
|
|
|
|
|
|
# project, translated and installed into the right place during `make install`.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
|
|
|
|
|
|
|
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/hangul.appdata.xml <<EOF
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<component type="inputmethod">
|
|
|
|
|
|
|
|
<id>hangul.xml</id>
|
|
|
|
|
|
|
|
<metadata_license>CC0-1.0</metadata_license>
|
|
|
|
|
|
|
|
<name>Hangul</name>
|
|
|
|
|
|
|
|
<summary>Korean input method</summary>
|
|
|
|
|
|
|
|
<description>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
The Hangul input method is designed for entering Korean text.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
Input methods are typing systems allowing users to input complex languages.
|
|
|
|
|
|
|
|
They are necessary because these contain too many characters to simply be laid
|
|
|
|
|
|
|
|
out on a traditional keyboard.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</description>
|
|
|
|
|
|
|
|
<url type="homepage">http://code.google.com/p/ibus/</url>
|
|
|
|
|
|
|
|
<compulsory_for_desktop>GNOME</compulsory_for_desktop>
|
|
|
|
|
|
|
|
<project_group>GNOME</project_group>
|
|
|
|
|
|
|
|
<developer_name>The GNOME Project</developer_name>
|
|
|
|
|
|
|
|
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
|
|
|
|
|
|
|
<url type="donation">http://www.gnome.org/friends/</url>
|
|
|
|
|
|
|
|
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
|
|
|
|
|
|
|
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
|
|
|
|
|
|
|
</component>
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
rm -f ${RPM_BUILD_ROOT}%{_bindir}/ibus-setup-hangul
|
|
|
|
rm -f ${RPM_BUILD_ROOT}%{_bindir}/ibus-setup-hangul
|
|
|
|
sed -i 's!^Exec=ibus-setup-hangul!Exec=%{_libexecdir}/ibus-setup-hangul!' ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangul.desktop
|
|
|
|
sed -i 's!^Exec=ibus-setup-hangul!Exec=%{_libexecdir}/ibus-setup-hangul!' ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangul.desktop
|
|
|
@ -68,81 +94,43 @@ desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangu
|
|
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%post
|
|
|
|
make check \
|
|
|
|
[ -x %{_bindir}/ibus ] && \
|
|
|
|
DISABLE_GUI_TESTS="ibus-hangul" \
|
|
|
|
%{_bindir}/ibus write-cache --system &>/dev/null || :
|
|
|
|
VERBOSE=1
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
[ -x %{_bindir}/ibus ] && \
|
|
|
|
|
|
|
|
%{_bindir}/ibus write-cache --system &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%{_libexecdir}/ibus-engine-hangul
|
|
|
|
%{_libexecdir}/ibus-engine-hangul
|
|
|
|
%{_libexecdir}/ibus-setup-hangul
|
|
|
|
%{_libexecdir}/ibus-setup-hangul
|
|
|
|
%{_datadir}/metainfo/*.metainfo.xml
|
|
|
|
%{_datadir}/appdata/*.appdata.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/*.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/*.gschema.xml
|
|
|
|
%{_datadir}/ibus-hangul
|
|
|
|
%{_datadir}/ibus-hangul
|
|
|
|
%{_datadir}/ibus/component/*
|
|
|
|
%{_datadir}/ibus/component/*
|
|
|
|
%{_datadir}/applications/ibus-setup-hangul.desktop
|
|
|
|
%{_datadir}/applications/ibus-setup-hangul.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%dir %{_libexecdir}/installed-tests
|
|
|
|
|
|
|
|
%{_libexecdir}/installed-tests/ibus-hangul
|
|
|
|
|
|
|
|
%dir %{_datadir}/installed-tests
|
|
|
|
|
|
|
|
%{_datadir}/installed-tests/ibus-hangul
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.4-7
|
|
|
|
* Mon Jun 8 2020 Peng Wu <pwu@redhat.com> - 1.5.1-6
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuild for RHEL 8.3
|
|
|
|
Related: rhbz#1991688
|
|
|
|
- Resolves: #1661079
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 19 2021 Peng Wu <pwu@redhat.com> - 1.5.4-6
|
|
|
|
|
|
|
|
- Clean up ibus write-cache in scriptlet
|
|
|
|
|
|
|
|
- Resolves: #1974626
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.4-5
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 10 2020 Peng Wu <pwu@redhat.com> - 1.5.4-3
|
|
|
|
|
|
|
|
- Add tests sub package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 2 2020 Peng Wu <pwu@redhat.com> - 1.5.4-2
|
|
|
|
|
|
|
|
- Clean up the spec file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 24 2020 Peng Wu <pwu@redhat.com> - 1.5.4-1
|
|
|
|
|
|
|
|
- Update to 1.5.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 13 2020 Peng Wu <pwu@redhat.com> - 1.5.3-3
|
|
|
|
|
|
|
|
- Switch to use py_byte_compile rpm macro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 26 2019 Peng Wu <pwu@redhat.com> - 1.5.3-1
|
|
|
|
|
|
|
|
- Update to 1.5.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 6 2019 Peng Wu <pwu@redhat.com> - 1.5.1-7
|
|
|
|
|
|
|
|
- Change default mode to latin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 19 2019 Peng Wu <pwu@redhat.com> - 1.5.1-5
|
|
|
|
* Tue Dec 3 2019 Peng Wu <pwu@redhat.com> - 1.5.1-5
|
|
|
|
- Fixes double commit issue with web browser
|
|
|
|
- Fixes reset signal
|
|
|
|
- Add patch ibus-hangul-fixes-reset.patch
|
|
|
|
- Add ibus-hangul-fixes-reset-signal.patch
|
|
|
|
|
|
|
|
- Resolves: #1661079
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 22 2019 Peng Wu <pwu@redhat.com> - 1.5.1-4
|
|
|
|
* Thu Sep 20 2018 Tomas Orsava <torsava@redhat.com> - 1.5.1-4
|
|
|
|
- Change default mode to hangul
|
|
|
|
- Require the Python interpreter directly instead of using the package name
|
|
|
|
|
|
|
|
- Related: rhbz#1619153
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
|
|
|
|
* Mon Aug 13 2018 Troy Dawson <tdawson@redhat.com> - 1.5.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Add BuildRequest python3-devel
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.5.1-2
|
|
|
|
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 1.5.1-2
|
|
|
|
- Rebuild with fixed binutils
|
|
|
|
- Rebuild with fixed binutils
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 30 2018 Peng Wu <pwu@redhat.com> - 1.5.1-1
|
|
|
|
* Mon Jul 30 2018 Peng Wu <pwu@redhat.com> - 1.5.1-1
|
|
|
|