Register as an AppStream component
This commit is contained in:
parent
36a04674b8
commit
02fb2b1c7d
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: ibus-hangul
|
Name: ibus-hangul
|
||||||
Version: 1.5.0
|
Version: 1.5.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Hangul engine for IBus input platform
|
Summary: The Hangul engine for IBus input platform
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -46,6 +46,42 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install INSTALL="install -p"
|
make DESTDIR=${RPM_BUILD_ROOT} install 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/hangul.appdata.xml <<EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="inputmethod">
|
||||||
|
<id>hangul.xml</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>Hangul</name>
|
||||||
|
<summary>Korean input method</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
The Hangul input method is designed for entering Korean 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>
|
||||||
|
<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
|
||||||
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_bindir}/ibus-setup-hangul
|
rm -f ${RPM_BUILD_ROOT}%{_bindir}/ibus-setup-hangul
|
||||||
sed -i 's!^Exec=ibus-setup-hangul!Exec=%{_libexecdir}/ibus-setup-hangul!' ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangul.desktop
|
sed -i 's!^Exec=ibus-setup-hangul!Exec=%{_libexecdir}/ibus-setup-hangul!' ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangul.desktop
|
||||||
|
|
||||||
@ -73,12 +109,16 @@ fi
|
|||||||
%doc AUTHORS COPYING README
|
%doc AUTHORS COPYING README
|
||||||
%{_libexecdir}/ibus-engine-hangul
|
%{_libexecdir}/ibus-engine-hangul
|
||||||
%{_libexecdir}/ibus-setup-hangul
|
%{_libexecdir}/ibus-setup-hangul
|
||||||
|
%{_datadir}/appdata/*.appdata.xml
|
||||||
%{_datadir}/ibus-hangul
|
%{_datadir}/ibus-hangul
|
||||||
%{_datadir}/ibus/component/*
|
%{_datadir}/ibus/component/*
|
||||||
%{_datadir}/applications/ibus-setup-hangul.desktop
|
%{_datadir}/applications/ibus-setup-hangul.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.5.0-2
|
||||||
|
- Register as an AppStream component.
|
||||||
|
|
||||||
* Wed Nov 26 2014 Daiki Ueno <dueno@redhat.com> - 1.5.0-1
|
* Wed Nov 26 2014 Daiki Ueno <dueno@redhat.com> - 1.5.0-1
|
||||||
- Update version to 1.5.0
|
- Update version to 1.5.0
|
||||||
- Drop upstreamed patches: dconf-prefix.patch and setup-ui.patch
|
- Drop upstreamed patches: dconf-prefix.patch and setup-ui.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user