Name: fcitx-table-extra Version: 0.2.1 Release: 1%{?dist} Summary: Extra tables 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, libtool, fcitx BuildArch: noarch Requires: fcitx %description Fcitx-table-extra provides extra table for Fcitx, including Boshiamy, Zhengma, and Cangjie 3/5. Boshiamy table and its icon are released under their own license. %prep %setup -q -n %{name}-%{version} %build mkdir -pv build pushd build %cmake .. make VERBOSE=1 %{?_smp_mflags} %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_CN/LC_MESSAGES/fcitx-table-extra.mo EOF %clean rm -rf %{buildroot} %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING %{_datadir}/fcitx/table/*.mb %{_datadir}/fcitx/table/*.conf %{_datadir}/icons/hicolor/64x64/apps/*.png %changelog * Fri May 03 2012 Liang Suilong - 0.2.1-1 - Upstream to 0.2.1 * Wed Feb 08 2012 Liang Suilong - 0.1.0-1 - Initial Package