Register as an AppStream component
This commit is contained in:
parent
60722b9469
commit
6e6b7bea70
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: ibus-libpinyin
|
Name: ibus-libpinyin
|
||||||
Version: 1.7.1
|
Version: 1.7.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Intelligent Pinyin engine based on libpinyin for IBus
|
Summary: Intelligent Pinyin engine based on libpinyin for IBus
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -60,6 +60,43 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libbopo
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
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 <<EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="inputmethod">
|
||||||
|
<id>libpinyin.xml</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>Pinyin</name>
|
||||||
|
<summary>Chinese Pinyin and Zhuyin input method</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
The Pinyin input method is designed for entering Chinese text by
|
||||||
|
using Pinyin or Zhuyin.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
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.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
<url type="homepage">https://github.com/libpinyin/ibus-libpinyin</url>
|
||||||
|
<compulsory_for_desktop>GNOME</compulsory_for_desktop>
|
||||||
|
<project_group>GNOME</project_group>
|
||||||
|
<developer_name>The GNOME Project</developer_name>
|
||||||
|
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
||||||
|
<url type="donation">http://www.gnome.org/friends/</url>
|
||||||
|
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
||||||
|
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
||||||
|
</component>
|
||||||
|
EOF
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -72,6 +109,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc AUTHORS COPYING README
|
%doc AUTHORS COPYING README
|
||||||
|
%{_datadir}/appdata/*.appdata.xml
|
||||||
%{_datadir}/applications/ibus-setup-libpinyin.desktop
|
%{_datadir}/applications/ibus-setup-libpinyin.desktop
|
||||||
%{_datadir}/applications/ibus-setup-libbopomofo.desktop
|
%{_datadir}/applications/ibus-setup-libbopomofo.desktop
|
||||||
%{_libexecdir}/ibus-engine-libpinyin
|
%{_libexecdir}/ibus-engine-libpinyin
|
||||||
@ -88,6 +126,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|||||||
%{_datadir}/ibus/component/*
|
%{_datadir}/ibus/component/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.7.1-2
|
||||||
|
- Register as an AppStream component.
|
||||||
|
|
||||||
* Wed Mar 25 2015 Peng Wu <pwu@redhat.com> - 1.7.1-1
|
* Wed Mar 25 2015 Peng Wu <pwu@redhat.com> - 1.7.1-1
|
||||||
- Update 1.7.1
|
- Update 1.7.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user