File fcitx-zhuyin.spec of Package fcitx-zhuyin

# spec file for package fcitx-zhuyin
# Copyright (c) 2014 SUSE LINUX Products 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

Name:           fcitx-zhuyin
Version:	0.1.0
Release:	0
License:	GPL-2.0
Summary:	Libzhuyin Wrapper for Fcitx
Group:	System/I18n/Chinese
Source:	%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	fdupes
BuildRequires:	gcc-c++
BuildRequires:	fcitx-devel
BuildRequires:	hicolor-icon-theme
BuildRequires:	libzhuyin-devel
Provides:	locale(fcitx:zh_TW;zh_HK)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The libzhuyin project aims to provide the algorithms core
for intelligent sentence-based Chinese zhuyin input methods.

This is a libzhuyin wrapper for fcitx.

%setup -q

mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
make %{?_smp_mflags}

cd build
cd ..

%find_lang %{name}

%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang

openSUSE Build Service is sponsored by