File kcm-fcitx.spec of Package kcm-fcitx
#
# spec file for package kcm-fcitx
#
# 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/
#
%define pkgname fcitx-config-kde4
Name: kcm-fcitx
Version: 0.3.4
Release: 0
Summary: KDE control module for Fcitx
Url: http://github.com/fcitx/kcm-fcitx
Group: System/I18n/Chinese
License: GPL-2.0+
#Source: http://fcitx.googlecode.com/files/%{name}-%{version}.tar.xz
Source: %{name}-%{version}.tar.bz2
Obsoletes: %{name} < 0.2.0
Provides: %{name} = %{version}
BuildRequires: fcitx-devel
BuildRequires: libkde4-devel
%if 0%{?suse_version} <= 1140
BuildRequires: libunique-devel
%else
BuildRequires: libunique1-devel
%endif
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: update-desktop-files
%kde4_runtime_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: locale(kdebase4:ko;zh_CN;zh_SG)
%description
KDE control module for Fcitx.
You can config fcitx through "Configue Desktop" - "Locale" - Fcitx now.
%package -n %{pkgname}
Summary: KDE control module for Fcitx
Group: System/I18n/Chinese
%kde4_runtime_requires
%description -n %{pkgname}
KDE control module for Fcitx.
You can config fcitx through "Configure Desktop" - "Locale" - Fcitx now.
%prep
%setup -q -n %{name}-%{version}
%build
%{__mkdir} -pv build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR=%{_libdir}
make
%install
pushd build
make DESTDIR=%{buildroot} install
popd
%find_lang kcm_fcitx
%kde_post_install
%post -n %{pkgname} -p /sbin/ldconfig
%postun -n %{pkgname} -p /sbin/ldconfig
%files -n %{pkgname} -f kcm_fcitx.lang
%defattr(-,root,root,-)
%{_libdir}/kde4/*
%{_datadir}/kde4/*
%changelog