Register as an AppStream component

This commit is contained in:
Richard Hughes 2015-03-25 22:14:52 +00:00
parent 36b027773e
commit 3c93219df6

View File

@ -22,7 +22,7 @@
Name: ibus-anthy Name: ibus-anthy
Version: 1.5.6 Version: 1.5.6
Release: 2%{?dist} Release: 3%{?dist}
Summary: The Anthy engine for IBus input platform Summary: The Anthy engine for IBus input platform
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -129,6 +129,32 @@ make %{?_smp_mflags}
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la
# register as an AppStream component
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/anthy.metainfo.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<component type="inputmethod">
<id>anthy.xml</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Anthy</name>
<summary>Japanese input method</summary>
<description>
<p>
The Anthy input method is designed for entering Japanese 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
%find_lang %{name} %find_lang %{name}
%check %check
@ -167,6 +193,7 @@ touch --no-create %{_datadir}/icons/hicolor || :
%{_datadir}/ibus-anthy %{_datadir}/ibus-anthy
%{_datadir}/ibus/component/* %{_datadir}/ibus/component/*
%endif %endif
%{_datadir}/appdata/*.metainfo.xml
%{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg %{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg
%if %with_python_pkg %if %with_python_pkg
@ -184,6 +211,9 @@ touch --no-create %{_datadir}/icons/hicolor || :
%{_libdir}/libanthygobject-%{sub_version}.so %{_libdir}/libanthygobject-%{sub_version}.so
%changelog %changelog
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.5.6-3
- Register as an AppStream component.
* Thu Nov 13 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.6-2 * Thu Nov 13 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.6-2
- Updated ibus-anthy-HEAD.patch to fix Enter key on setup dialog. - Updated ibus-anthy-HEAD.patch to fix Enter key on setup dialog.
- Use python2 for epel7. - Use python2 for epel7.