Add the AppData file to the right built RPM
This commit is contained in:
parent
198ac84fcd
commit
69cf7a7e57
@ -129,7 +129,13 @@ 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
|
# 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
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
||||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/anthy.appdata.xml <<EOF
|
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/anthy.appdata.xml <<EOF
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
@ -193,12 +199,12 @@ touch --no-create %{_datadir}/icons/hicolor || :
|
|||||||
%{_datadir}/ibus-anthy
|
%{_datadir}/ibus-anthy
|
||||||
%{_datadir}/ibus/component/*
|
%{_datadir}/ibus/component/*
|
||||||
%endif
|
%endif
|
||||||
%{_datadir}/appdata/*.appdata.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
|
||||||
%files python
|
%files python
|
||||||
%{_libexecdir}/ibus-*-anthy
|
%{_libexecdir}/ibus-*-anthy
|
||||||
|
%{_datadir}/appdata/*.appdata.xml
|
||||||
%{_datadir}/applications/ibus-setup-anthy.desktop
|
%{_datadir}/applications/ibus-setup-anthy.desktop
|
||||||
%{_datadir}/ibus-anthy/engine
|
%{_datadir}/ibus-anthy/engine
|
||||||
%{_datadir}/ibus-anthy/setup
|
%{_datadir}/ibus-anthy/setup
|
||||||
@ -211,6 +217,12 @@ 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-5
|
||||||
|
- Add the AppData file to the right built RPM, in this case we have to install
|
||||||
|
ibus-anthy-python rather than the main package in gnome-software.
|
||||||
|
- It turns out adding the AppData file to spec files is a great way to fix these
|
||||||
|
kinds of bugs. :)
|
||||||
|
|
||||||
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.5.6-4
|
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.5.6-4
|
||||||
- Use an AppStream file compatible with F22 also.
|
- Use an AppStream file compatible with F22 also.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user