Name: fcitx-cloudpinyin Version: 0.2.1 Release: 1%{?dist} Summary: Cloudpinyin module for fcitx Group: System Environment/Libraries License: GPLv2+ URL: http://code.google.com/p/fcitx/ Source0: http://fcitx.googlecode.com/files/%{name}-%{version}.tar.xz BuildRequires: cmake, fcitx-devel, gettext, intltool, libcurl-devel, pkgconfig Requires: fcitx %description Cloulpinyin is an based cloud compute input method. %prep %setup -q -n %{name}-%{version} %build mkdir -pv build pushd build %cmake .. make %{?_smp_mflags} VERBOSE=1 %install rm -rf $RPM_BUILD_ROOT pushd build make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' popd cat << EOF > %{name}.lang %lang(zh) /usr/share/locale/zh_TW/LC_MESSAGES/%{name}.mo %lang(zh) /usr/share/locale/zh_CN/LC_MESSAGES/%{name}.mo EOF %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc README COPYING %{_datadir}/fcitx/configdesc/*.desc %{_datadir}/fcitx/addon/*.conf %{_libdir}/fcitx/*.so %changelog * Tue May 22 2012 Liang Suilong - 0.2.1-1 - Upstream to fcitx-cloudpinyin-0.2.1 * Sun Feb 26 2012 Liang Suilong - 0.2.0-1 - Initial Package