From f9420f46030b7b12541d4412083eab6e261cbc8899323bbee76a9096d79a28b6 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 25 Mar 2015 06:48:10 +0000 Subject: [PATCH] Accepting request 292178 from home:dimstar:Factory OBS-URL: https://build.opensuse.org/request/show/292178 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=231 --- libreoffice.changes | 6 ++++++ libreoffice.spec | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/libreoffice.changes b/libreoffice.changes index 61bb3a7..813570d 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 20 14:42:33 UTC 2015 - dimstar@opensuse.org + +- Install the .appdata.xml files shipped by upstream: allow LO to + be shown in AppStream based software centers. + ------------------------------------------------------------------- Thu Mar 5 12:51:02 UTC 2015 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 3e21f36..2d4f820 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1108,6 +1108,10 @@ mkdir -p %{buildroot}%{python3_sitelib} ln -s %{_libdir}/libreoffice/program/uno.py %{buildroot}%{python3_sitelib}/uno.py ln -s %{_libdir}/libreoffice/program/unohelper.py %{buildroot}%{python3_sitelib}/unohelper.py +# Install appdata files, so we're shown in gnome-software (and other, future app stores) +install -m 0755 -d %{buildroot}%{_datadir}/appdata +install -m 0644 -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/appdata + # Remove translations source as we need more space rm -rf translations/source/ @@ -1217,21 +1221,26 @@ fi %files -f file-lists/base_list.txt base %defattr(-,root,root) +%{_datadir}/appdata/libreoffice-base.appdata.xml %files -f file-lists/calc_list.txt calc %defattr(-,root,root) +%{_datadir}/appdata/libreoffice-calc.appdata.xml %files -f file-lists/draw_list.txt draw %defattr(-,root,root) +%{_datadir}/appdata/libreoffice-draw.appdata.xml %files -f file-lists/math_list.txt math %defattr(-,root,root) %files -f file-lists/impress_list.txt impress %defattr(-,root,root) +%{_datadir}/appdata/libreoffice-impress.appdata.xml %files -f file-lists/writer_list.txt writer %defattr(-,root,root) +%{_datadir}/appdata/libreoffice-writer.appdata.xml %files -f file-lists/postgresql_list.txt base-drivers-postgresql %defattr(-,root,root)