Name: fcitx-hangul
Version: 0.2.0
Release: 2%{?dist}
Summary: Hangul Engine 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, libhangul-devel
Requires: fcitx
%description
Fcitx-hangul is a Hangul engine wrapper for Fcitx. It
Provides Korean input method from libhangul.
%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
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%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 COPYING AUTHORS README
%{_libdir}/fcitx/%{name}.so
%{_datadir}/fcitx/addon/%{name}.conf
%{_datadir}/fcitx/inputmethod/hangul.conf
%{_datadir}/fcitx/configdesc/%{name}.desc
%{_datadir}/fcitx/skin/imicon/hangul.png
%{_datadir}/fcitx/hangul/symbol.txt
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/status/fcitx-hanja-active.png
%{_datadir}/icons/hicolor/64x64/status/fcitx-hanja-inactive.png
%changelog
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Dec 12 2012 Liang Suilong <liangsuilong@gmail.com> - 0.2.0-1
- Upstrem to fcitx-hangul-0.2.0
* Sun Dec 09 2012 Liang Suilong <liangsuilong@gmail.com> - 0.1.2-1
- Upstrem to fcitx-hangul-0.1.2
* Tue May 22 2012 Liang Suilong <liangsuilong@gmail.com> - 0.1.1-1
- Initial Package