Name: fcitx-ui-light Version: 0.1.3 Release: 1%{?dist} Summary: Light UI for fcitx Group: System Environment/Libraries License: GPLv2+ URL: http://code.google.com/p/fcitx/ Source0: http://fcitx.googlecode.com/files/%{name}-%{version}.tar.bz2 BuildRequires: cmake, fcitx-devel, gettext, intltool, libcurl-devel, pkgconfig BuildRequires: fontconfig, fontconfig-devel, libXpm-devel, libXft-devel BuildRequires: desktop-file-utils %description Light UI is a light-weight user interface for fcitx. %prep %setup -q -n %{name}-%{version} %build %{__mkdir} -pv build pushd build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .. make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT pushd build make install DESTDIR=$RPM_BUILD_ROOT popd desktop-file-install --delete-original \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ ${RPM_BUILD_ROOT}%{_datadir}/applications/fcitx-light.desktop cat << EOF > %{name}.lang %lang(zh) /usr/share/locale/zh_TW/LC_MESSAGES/fcitx-light-ui.mo %lang(zh) /usr/share/locale/zh_CN/LC_MESSAGES/fcitx-light-ui.mo EOF %post update-desktop-database %{_datadir}/applications &>/dev/null || : %postun update-desktop-database %{_datadir}/applications &>/dev/null || : %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc README %{_datadir}/fcitx/configdesc/*.desc %{_datadir}/fcitx/addon/*.conf %{_libdir}/fcitx/*.so %{_datadir}/applications/fcitx-light.desktop %changelog * Sun Feb 26 2012 Liang Suilong - 0.1.3-1 - Initial Package