diff --git a/ibus-libpinyin.spec b/ibus-libpinyin.spec index 9810d74..32b5302 100644 --- a/ibus-libpinyin.spec +++ b/ibus-libpinyin.spec @@ -2,7 +2,7 @@ Name: ibus-libpinyin Version: 1.7.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Intelligent Pinyin engine based on libpinyin for IBus License: GPLv2+ Group: System Environment/Libraries @@ -60,6 +60,43 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libbopo %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +# Register as an AppStream component to be visible in the software center +# +# NOTE: It would be *awesome* if this file was maintained by the upstream +# project, translated and installed into the right place during `make install`. +# +# See http://www.freedesktop.org/software/appstream/docs/ for more details. +# +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/libpinyin.appdata.xml < + + libpinyin.xml + CC0-1.0 + Pinyin + Chinese Pinyin and Zhuyin input method + +

+ The Pinyin input method is designed for entering Chinese text by + using Pinyin or Zhuyin. +

+

+ Input methods are typing systems allowing users to input complex languages. + They are necessary because these contain too many characters to simply be laid + out on a traditional keyboard. +

+
+ https://github.com/libpinyin/ibus-libpinyin + GNOME + GNOME + The GNOME Project + https://code.google.com/p/ibus/issues/list + http://www.gnome.org/friends/ + https://code.google.com/p/ibus/wiki/FAQ + +
+EOF + %find_lang %{name} %post @@ -72,6 +109,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" %files -f %{name}.lang %doc AUTHORS COPYING README +%{_datadir}/appdata/*.appdata.xml %{_datadir}/applications/ibus-setup-libpinyin.desktop %{_datadir}/applications/ibus-setup-libbopomofo.desktop %{_libexecdir}/ibus-engine-libpinyin @@ -88,6 +126,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" %{_datadir}/ibus/component/* %changelog +* Wed Mar 25 2015 Richard Hughes - 1.7.1-2 +- Register as an AppStream component. + * Wed Mar 25 2015 Peng Wu - 1.7.1-1 - Update 1.7.1