File fcitx-chewing.spec of Package fcitx-chewing

#
# spec file for package fcitx-chewing
#
# Copyright (c) 2010 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/
#

# norootforbuild

Name:           fcitx-chewing
Version:	0.1.2
Release:	0
License:	GPL-2.0+
Summary:	Chewing Wrapper for Fcitx
Url:		https://github.com/fcitx/fcitx-chewing
Group:		System/I18n/Chinese
#Source:		http://fcitx.googlecode.com/files/%{name}-%{version}.tar.xz
Source:     %{name}-%{version}.tar.bz2
BuildRequires:	libchewing-devel
BuildRequires:	fcitx-devel
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	gcc-c++
BuildRequires:	intltool
BuildRequires:	fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       locale(fcitx:zh_SG)

%description
Fcitx-chewing is a Chewing(新酷音) Wrapper for Fcitx.

Chewing is a set of free intelligent Chinese Phonetic IME.

%prep
%setup -q

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

%install
pushd build
%makeinstall
popd

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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/fcitx/
%{_datadir}/fcitx/

%changelog
openSUSE Build Service is sponsored by