[fcitx-libpinyin] Initial Release
Liang Suilong
liangsuilong at fedoraproject.org
Thu May 3 14:41:05 UTC 2012
commit 33d340f8e67269b568144fb2cb130bb2c4fd6b63
Author: Fedora <fedora at fedora-desktop.(none)>
Date: Thu May 3 22:36:04 2012 +0800
Initial Release
.gitignore | 1 +
fcitx-libpinyin.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..57c01c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fcitx-libpinyin-0.1.1_dict.tar.xz
diff --git a/fcitx-libpinyin.spec b/fcitx-libpinyin.spec
new file mode 100644
index 0000000..ad7eccc
--- /dev/null
+++ b/fcitx-libpinyin.spec
@@ -0,0 +1,70 @@
+Name: fcitx-libpinyin
+Version: 0.1.1
+Release: 1%{?dist}
+Summary: Libpinyin Wrapper for Fcitx
+Group: System Environment/Libraries
+License: GPLv2+
+URL: http://code.google.com/p/fcitx/
+Source0: http://fcitx.googlecode.com/files/%{name}-%{version}_dict.tar.xz
+
+BuildRequires: cmake, fcitx-devel, gettext, intltool, libpinyin-devel
+BuildRequires: libpinyin-tools, glib2-devel
+Requires: fcitx
+
+%description
+Fcitx-libpinyin is a libpinyin Wrapper for Fcitx.
+
+Libpinyin is a Frontend of the Intelligent Pinyin IME Backend.
+
+
+%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_TW/LC_MESSAGES/fcitx-libpinyin.mo
+%lang(zh) /usr/share/locale/zh_CN/LC_MESSAGES/fcitx-libpinyin.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
+%doc AUTHORS COPYING README
+%defattr(-,root,root,-)
+%{_libdir}/fcitx/%{name}.so
+%{_datadir}/fcitx/addon/%{name}.conf
+%{_datadir}/fcitx/configdesc/%{name}.desc
+%{_datadir}/fcitx/inputmethod/*-libpinyin.conf
+%{_datadir}/fcitx/libpinyin/
+%{_datadir}/icons/hicolor/48x48/status/fcitx-bopomofo.png
+
+%changelog
+* Fri Apr 27 2012 Liang Suilong <liangsuilong at gmail.com> - 0.1.1-1
+- Upstream to 0.1.1
+
+* Wed Feb 08 2012 Liang Suilong <liangsuilong at gmail.com> - 0.1.0-1
+- Initial Package
diff --git a/sources b/sources
index e69de29..453e25e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+50cc6420ea7fd95ebbea45a004290822 fcitx-libpinyin-0.1.1_dict.tar.xz
More information about the scm-commits
mailing list