[fcitx-hangul] Initial Release for fcitx-hangul

Liang Suilong liangsuilong at fedoraproject.org
Tue Jul 24 16:27:13 UTC 2012


commit 5d68c7b9ea78d4bd62dae97cb72c00e32104cb5d
Author: Fedora <fedora at fedora-desktop.(none)>
Date:   Wed Jul 25 00:26:43 2012 +0800

    Initial Release for fcitx-hangul

 .gitignore        |    1 +
 fcitx-hangul.spec |   68 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..418dbc5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fcitx-hangul-0.1.1.tar.xz
diff --git a/fcitx-hangul.spec b/fcitx-hangul.spec
new file mode 100644
index 0000000..7dbf4b9
--- /dev/null
+++ b/fcitx-hangul.spec
@@ -0,0 +1,68 @@
+Name:		fcitx-hangul
+Version:	0.1.1
+Release:	1%{?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
+cat << EOF > %{name}.lang 
+%lang(ko) /usr/share/locale/ko/LC_MESSAGES/fcitx-hangul.mo
+%lang(zh) /usr/share/locale/zh_CN/LC_MESSAGES/fcitx-hangul.mo
+%lang(zh) /usr/share/locale/zh_TW/LC_MESSAGES/fcitx-hangul.mo
+EOF
+
+%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/default/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
+* Tue May 22 2012 Liang Suilong <liangsuilong at gmail.com> - 0.1.1-1
+- Initial Package
diff --git a/sources b/sources
index e69de29..1112e49 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c8426b8dbb6f2a8e81b03a35ff611e85  fcitx-hangul-0.1.1.tar.xz


More information about the scm-commits mailing list