Name:           ibus-table-array30
Version:        1.2.0.20090729
Release:        8
Summary:        The Array 30 Chinese input method for IBus framework
License:        GPLv2+
URL:            http://github.com/definite/ibus-table-array30/tree/master
Source0:        http://cloud.github.com/downloads/definite/ibus-table-array30/%{name}-%{version}-Source.tar.gz
BuildArch:      noarch

BuildRequires:  ibus-table >= 1.1 cmake >= 2.4 g++
Requires:       ibus-table >= 1.1

%description
bus-table-array30 provides array 30 Chinese input method on IBus Table under IBus framework.
Use ibus-table input method. This version contains more than 70,000 words in Unicode 3.1.

%prep
%autosetup -n %{name}-%{version}-Source -p1

%build
%cmake -DCMAKE_INSTALL_PREFIX='%{_usr}'
%make_build VERBOSE=1 C_DEFINES="$RPM_OPT_FLAGS"

%install
%make_install

%post
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/Array30.db

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc AUTHORS README ChangeLog COPYING INSTALL
%defattr(-,root,root,-)
%{_datadir}/ibus-table/{tables/Array30.db,icons/Array30.png}

%changelog
* Mon Jun 07 2021 wulei <wulei80@huawei.com> - 1.2.0.20090729-8
- fixes failed: No CMAKE_C_COMPILEP could be found

* Wed Dec 4 2019 duyeyu <duyeyu@huawei.com> - 1.2.0.20090729-7
- Package init
