forked from pool/libreoffice
Accepting request 294948 from home:dimstar:Factory
Fix the installed appdata.xml files OBS-URL: https://build.opensuse.org/request/show/294948 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=237
This commit is contained in:
parent
8cd0d6e04c
commit
6e300ece2b
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 8 12:03:19 UTC 2015 - dimstar@opensuse.org
|
||||
|
||||
- Fixup the installed appdata.xml files: they reference a .desktop
|
||||
file that are not installed by libreoffice (boo#926375).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 2 17:11:50 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
|
@ -1108,8 +1108,13 @@ ln -s %{_libdir}/libreoffice/program/uno.py %{buildroot}%{python3_sitelib}/uno.p
|
||||
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)
|
||||
# upstream ships the files called libreoffice-{base,writer,...}, but the destop files are called base.destop [...]
|
||||
# fixup the appdata files internal reference to the .desktop file and rename them on the go to match the name
|
||||
install -m 0755 -d %{buildroot}%{_datadir}/appdata
|
||||
install -m 0644 -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/appdata
|
||||
for appdata in base calc draw impress writer; do
|
||||
sed "s/libreoffice-${appdata}.desktop/${appdata}.desktop}/" \
|
||||
sysui/desktop/appstream-appdata/libreoffice-${appdata}.appdata.xml > %{buildroot}%{_datadir}/appdata/%{appdata}.appdata.xml
|
||||
done;
|
||||
|
||||
# Remove translations source as we need more space
|
||||
rm -rf translations/source/
|
||||
@ -1220,26 +1225,26 @@ fi
|
||||
|
||||
%files -f file-lists/base_list.txt base
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/appdata/libreoffice-base.appdata.xml
|
||||
%{_datadir}/appdata/base.appdata.xml
|
||||
|
||||
%files -f file-lists/calc_list.txt calc
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/appdata/libreoffice-calc.appdata.xml
|
||||
%{_datadir}/appdata/calc.appdata.xml
|
||||
|
||||
%files -f file-lists/draw_list.txt draw
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/appdata/libreoffice-draw.appdata.xml
|
||||
%{_datadir}/appdata/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
|
||||
%{_datadir}/appdata/impress.appdata.xml
|
||||
|
||||
%files -f file-lists/writer_list.txt writer
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/appdata/libreoffice-writer.appdata.xml
|
||||
%{_datadir}/appdata/writer.appdata.xml
|
||||
|
||||
%files -f file-lists/postgresql_list.txt base-drivers-postgresql
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user