File ibus-libzhuyin.spec of Package ibus-libzhuyin

#
# spec file for package ibus-libzhuyin
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           ibus-libzhuyin
Version:        1.7.4
Release:        0
Summary:        New Zhuyin engine based on libzhuyin for IBus
License:        GPL-2.0
Group:          System/I18n/Chinese
Url:            https://github.com/libzhuyin/ibus-libzhuyin
Source:         https://github.com/libzhuyin/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-common
BuildRequires:  ibus-devel
BuildRequires:  intltool
BuildRequires:  libzhuyin-devel
BuildRequires:  opencc-devel >= 1.0.0
Provides:       locale(ibus:zh_TW;zh_HK)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
It includes a Chinese Zhuyin (Bopomofo) input method based on libzhuyin for IBus.

%prep
%setup -q
NOCONFIGURE=1 ./autogen.sh

%build
%configure 
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
rm -rf %{buildroot}%{_datadir}/doc
%find_lang %{name}
%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README COPYING
%{_libexecdir}/ibus-engine-libzhuyin
%{_libexecdir}/ibus-setup-libzhuyin
%{_datadir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/libzhuyin.appdata.xml
%{_datadir}/ibus/component/libzhuyin.xml
%{_datadir}/applications/ibus-setup-libzhuyin.desktop

%changelog
openSUSE Build Service is sponsored by