File fcitx-kkc.spec of Package fcitx-kkc

#
# spec file for package fcitx-kkc
#
# Copyright (c) 2013 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-kkc
Version:	0.1.0
Release:	0
License:	GPL-3.0+
Summary:	Japanese KKC IME Wrapper for Fcitx
Url:	https://github.com/fcitx/fcitx-kkc
Group:	System/I18n/Japanese
Source:	http://download.fcitx-im.org/fcitx-kkc/%{name}-%{version}.tar.xz
Source1: COPYING
BuildRequires:	cmake
BuildRequires:	fcitx-devel >= 4.2.8
BuildRequires:	fdupes
BuildRequires:	gcc-c++
BuildRequires:	hicolor-icon-theme
BuildRequires:	libkkc-devel
BuildRequires:	xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{fcitx_requires}

%description
fcitx-kkc is a Japanese KKC IME Wrapper for Fcitx.

%prep
%setup -q
cp -r %{SOURCE1} ./

%build
mkdir -p build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
make %{?_smp_mflags}
popd

%install
pushd build
%make_install
popd

%find_lang %{name}

%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING
%{_fcitx_moduleincdir}/kkc/
%{_fcitx_libdir}/%{name}.so
%{_fcitx_libdir}/qt/lib%{name}-config.so
%{_fcitx_addondir}/%{name}.conf
%{_fcitx_descdir}/%{name}.desc
%{_fcitx_inputmethoddir}/kkc.conf
%{_fcitx_imicondir}/kkc.png
%{_fcitx_datadir}/kkc
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png

%changelog

openSUSE Build Service is sponsored by