Register as an AppStream component
This commit is contained in:
parent
3afc0d60d3
commit
5a16322f2f
@ -4,7 +4,7 @@
|
|||||||
%global createdb ibus-table-createdb
|
%global createdb ibus-table-createdb
|
||||||
Name: ibus-table-chinese
|
Name: ibus-table-chinese
|
||||||
Version: 1.8.2
|
Version: 1.8.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Chinese input tables for IBus
|
Summary: Chinese input tables for IBus
|
||||||
Summary(zh_CN): 中文码表输入法
|
Summary(zh_CN): 中文码表输入法
|
||||||
Summary(zh_TW): 中文碼表輸入法
|
Summary(zh_TW): 中文碼表輸入法
|
||||||
@ -322,6 +322,86 @@ YongMa input method.
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
# Register as AppStream components to be visible in the software center
|
||||||
|
#
|
||||||
|
# NOTE: It would be *awesome* if these files were 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/stroke5.appdata.xml <<EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="inputmethod">
|
||||||
|
<id>stroke5.db</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>Stroke 5</name>
|
||||||
|
<summary>Chinese input method</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
Stroke 5 is a very simple stroke-based Chinese input method.
|
||||||
|
It was designed specifically for people with limited hand mobility or computer
|
||||||
|
literacy, like the elderly or disabled.
|
||||||
|
</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://code.google.com/p/ibus/</url>
|
||||||
|
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
||||||
|
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
||||||
|
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
||||||
|
</component>
|
||||||
|
EOF
|
||||||
|
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-haifeng86.appdata.xml <<EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="inputmethod">
|
||||||
|
<id>wubi-haifeng86.db</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>HaiFeng Wubi 86</name>
|
||||||
|
<summary>Simplified Chinese input method</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
The HaiFeng Wubi 86 input method is designed for entering Simplified Chinese text.
|
||||||
|
</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">http://code.google.com/p/ibus/</url>
|
||||||
|
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
||||||
|
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
||||||
|
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
||||||
|
</component>
|
||||||
|
EOF
|
||||||
|
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-jidian86.appdata.xml <<EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="inputmethod">
|
||||||
|
<id>wubi-jidian86.db</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>Jidian Wubi 86</name>
|
||||||
|
<summary>Simplified Chinese input method</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
The Jidian Wubi 86 input method is designed for entering Simplified Chinese text.
|
||||||
|
</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">http://code.google.com/p/ibus/</url>
|
||||||
|
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
||||||
|
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
||||||
|
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
||||||
|
</component>
|
||||||
|
EOF
|
||||||
|
|
||||||
# We install document using doc
|
# We install document using doc
|
||||||
rm -fr %{buildroot}%{_docdir}/*
|
rm -fr %{buildroot}%{_docdir}/*
|
||||||
|
|
||||||
@ -419,6 +499,7 @@ rm -fr %{buildroot}%{_docdir}/*
|
|||||||
%verify(not size md5 mtime) %{ibus_tables_dir}/scj6.db
|
%verify(not size md5 mtime) %{ibus_tables_dir}/scj6.db
|
||||||
|
|
||||||
%files stroke5
|
%files stroke5
|
||||||
|
%{_datadir}/appdata/stroke5.appdata.xml
|
||||||
%{ibus_icons_dir}/stroke5.*
|
%{ibus_icons_dir}/stroke5.*
|
||||||
%verify(not size md5 mtime) %{ibus_tables_dir}/stroke5.db
|
%verify(not size md5 mtime) %{ibus_tables_dir}/stroke5.db
|
||||||
|
|
||||||
@ -427,11 +508,13 @@ rm -fr %{buildroot}%{_docdir}/*
|
|||||||
%verify(not size md5 mtime) %{ibus_tables_dir}/wu.db
|
%verify(not size md5 mtime) %{ibus_tables_dir}/wu.db
|
||||||
|
|
||||||
%files wubi-haifeng
|
%files wubi-haifeng
|
||||||
|
%{_datadir}/appdata/wubi-haifeng86.appdata.xml
|
||||||
%doc tables/wubi-haifeng/COPYING tables/wubi-haifeng/README
|
%doc tables/wubi-haifeng/COPYING tables/wubi-haifeng/README
|
||||||
%{ibus_icons_dir}/wubi-haifeng86.*
|
%{ibus_icons_dir}/wubi-haifeng86.*
|
||||||
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-haifeng86.db
|
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-haifeng86.db
|
||||||
|
|
||||||
%files wubi-jidian
|
%files wubi-jidian
|
||||||
|
%{_datadir}/appdata/wubi-jidian86.appdata.xml
|
||||||
%{ibus_icons_dir}/wubi-jidian86.*
|
%{ibus_icons_dir}/wubi-jidian86.*
|
||||||
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-jidian86.db
|
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-jidian86.db
|
||||||
|
|
||||||
@ -440,6 +523,9 @@ rm -fr %{buildroot}%{_docdir}/*
|
|||||||
%{ibus_tables_dir}/yong.db
|
%{ibus_tables_dir}/yong.db
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.8.2-2
|
||||||
|
- Register as AppStream components.
|
||||||
|
|
||||||
* Tue Jun 10 2014 Ding-Yi Chen <dchen@redhat.com> - 1.8.2-1
|
* Tue Jun 10 2014 Ding-Yi Chen <dchen@redhat.com> - 1.8.2-1
|
||||||
- Built for ibus-table-1.8.1
|
- Built for ibus-table-1.8.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user