File fcitx-libpinyin.spec of Package fcitx-libpinyin

#
# spec file for package fcitx-libpinyin
#
# Copyright (c) 2012 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 http://bugs.opensuse.org/
#


Name:           fcitx-libpinyin
Version:	0.2.1
Release:	0
License:	GPL-2.0+	
Summary:	Libpinyin Wrapper for Fcitx
Url:		https://github.com/fcitx/fcitx-libpinyin
Group:		System/I18n/Chinese
Source:		%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	gcc-c++
BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	fcitx-devel
BuildRequires:	glib2-devel
BuildRequires:	libpinyin-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       locale(fcitx:zh_CN;zh_SG)

%description
Fcitx-libpinyin is a Frontend of the Intelligent Pinyin IME Backend.

%prep
%setup -q

%build
%{__mkdir} -pv build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR=%{_lib} ..
make %{?_smp_mflags}

%install
pushd build
make DESTDIR=%{buildroot} install
popd

%{__strip} %{buildroot}%{_libdir}/fcitx/%{name}.so
%find_lang %{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/fcitx/
%{_datadir}/fcitx/
%{_datadir}/icons/hicolor/48x48/status/fcitx-bopomofo.png

%changelog
openSUSE Build Service is sponsored by