[libreoffice/f16] Resolves: rhbz#799525 put flat odf mimetypes in xsltfilter.desktop

Caolán McNamara caolanm at fedoraproject.org
Tue Mar 6 13:01:55 UTC 2012


commit b8e723afa1353204aac8a904a7fc3e9188ed1084
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 6 13:01:51 2012 +0000

    Resolves: rhbz#799525 put flat odf mimetypes in xsltfilter.desktop

 ...bz-799525-put-flat-odf-mimetypes-in-xsltf.patch |  177 ++++++++++++++++++++
 libreoffice.spec                                   |    4 +
 2 files changed, 181 insertions(+), 0 deletions(-)
---
diff --git a/0001-Resolves-rhbz-799525-put-flat-odf-mimetypes-in-xsltf.patch b/0001-Resolves-rhbz-799525-put-flat-odf-mimetypes-in-xsltf.patch
new file mode 100644
index 0000000..740e438
--- /dev/null
+++ b/0001-Resolves-rhbz-799525-put-flat-odf-mimetypes-in-xsltf.patch
@@ -0,0 +1,177 @@
+From 4564f9c207ab53c70a199a2dbcc0d8f155211256 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm at redhat.com>
+Date: Tue, 6 Mar 2012 12:39:07 +0000
+Subject: [PATCH] Resolves: rhbz#799525 put flat odf mimetypes in
+ xsltfilter.desktop
+
+---
+ scp2/source/ooo/common_brand.scp                 |   10 ++++++++++
+ sysui/desktop/freedesktop/freedesktop-menus.spec |    1 +
+ sysui/desktop/menus/calc.desktop                 |    2 +-
+ sysui/desktop/menus/draw.desktop                 |    2 +-
+ sysui/desktop/menus/impress.desktop              |    2 +-
+ sysui/desktop/menus/writer.desktop               |    2 +-
+ sysui/desktop/menus/xsltfilter.desktop           |    9 +++++++++
+ sysui/desktop/share/launcher_genericname.ulf     |    3 +++
+ sysui/desktop/share/makefile.mk                  |    2 +-
+ sysui/desktop/suse/suse-menus.spec               |    1 +
+ 10 files changed, 29 insertions(+), 5 deletions(-)
+ create mode 100644 sysui/desktop/menus/xsltfilter.desktop
+
+diff --git a/scp2/source/ooo/common_brand.scp b/scp2/source/ooo/common_brand.scp
+index 69c0a71..4c594df 100644
+--- a/scp2/source/ooo/common_brand.scp
++++ b/scp2/source/ooo/common_brand.scp
+@@ -101,6 +101,7 @@
+              gid_Brand_File_Share_Xdg_QStart,
+              gid_Brand_File_Share_Xdg_StartCenter,
+              gid_Brand_File_Share_Xdg_Writer,
++             gid_Brand_File_Share_Xdg_XsltFilter,
+              gid_Brand_File_Txt_Package,
+ 	     gid_License_Txt,
+ 	     git_License_Odt,
+@@ -773,6 +774,14 @@
+ End
+ #endif
+ 
++#if defined UNX && ! defined MACOSX
++File gid_Brand_File_Share_Xdg_XsltFilter
++    TXT_FILE_BODY;
++    Dir = gid_Brand_Dir_Share_Xdg;
++    Name = "xsltfilter.desktop";
++    Styles = (PACKED,SCPZIP_REPLACE);
++End
++#endif
+ 
+ #if defined WNT && defined(_gcc3)
+ File gid_Brand_File_Lib_Mingwm10
+diff --git a/sysui/desktop/freedesktop/freedesktop-menus.spec b/sysui/desktop/freedesktop/freedesktop-menus.spec
+index 78a33ae..039bdc2 100755
+--- a/sysui/desktop/freedesktop/freedesktop-menus.spec
++++ b/sysui/desktop/freedesktop/freedesktop-menus.spec
+@@ -386,6 +386,7 @@
+ /usr/share/applications/%unixfilename-writer.desktop
+ /usr/share/applications/%unixfilename-startcenter.desktop
+ /usr/share/applications/%unixfilename-javafilter.desktop
++/usr/share/applications/%unixfilename-xsltfilter.desktop
+ /usr/share/icons/gnome/*/apps/*png
+ /usr/share/icons/gnome/*/mimetypes/*png
+ /usr/share/icons/hicolor/*/apps/*png
+diff --git a/sysui/desktop/menus/calc.desktop b/sysui/desktop/menus/calc.desktop
+index c8899cd..b4c0385 100755
+--- a/sysui/desktop/menus/calc.desktop
++++ b/sysui/desktop/menus/calc.desktop
+@@ -5,7 +5,7 @@
+ Type=Application
+ Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Spreadsheets;
+ Exec=${UNIXBASISROOTNAME} --calc %U
+-MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.stardivision.calc;application/vnd.stardivision.chart;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;application/x-dbf;
++MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.stardivision.calc;application/vnd.stardivision.chart;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;application/x-dbf;
+ Name=%PRODUCTNAME Calc
+ Name[pt_BR]=%PRODUCTNAME_BR Calc
+ GenericName=Spreadsheet
+diff --git a/sysui/desktop/menus/draw.desktop b/sysui/desktop/menus/draw.desktop
+index 67ad422..231f320 100755
+--- a/sysui/desktop/menus/draw.desktop
++++ b/sysui/desktop/menus/draw.desktop
+@@ -5,7 +5,7 @@
+ Type=Application
+ Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Drawing;
+ Exec=${UNIXBASISROOTNAME} --draw %U
+-MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.stardivision.draw;
++MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.stardivision.draw;
+ Name=%PRODUCTNAME Draw
+ Name[pt_BR]=%PRODUCTNAME_BR Draw
+ GenericName=Drawing Program
+diff --git a/sysui/desktop/menus/impress.desktop b/sysui/desktop/menus/impress.desktop
+index 91c937a..22d130d 100755
+--- a/sysui/desktop/menus/impress.desktop
++++ b/sysui/desktop/menus/impress.desktop
+@@ -5,7 +5,7 @@
+ Type=Application
+ Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Presentations;
+ Exec=${UNIXBASISROOTNAME} --impress %U
+-MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-flat-xml;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/vnd.stardivision.impress;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;
++MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/vnd.stardivision.impress;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;
+ Name=%PRODUCTNAME Impress
+ Name[pt_BR]=%PRODUCTNAME_BR Impress
+ GenericName=Presentation
+diff --git a/sysui/desktop/menus/writer.desktop b/sysui/desktop/menus/writer.desktop
+index 0db0d05..845b6d2 100755
+--- a/sysui/desktop/menus/writer.desktop
++++ b/sysui/desktop/menus/writer.desktop
+@@ -5,7 +5,7 @@
+ Type=Application
+ Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Wordprocessors;
+ Exec=${UNIXBASISROOTNAME} --writer %U
+-MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
++MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
+ Name=%PRODUCTNAME Writer
+ Name[pt_BR]=%PRODUCTNAME_BR Writer
+ GenericName=Word Processor
+diff --git a/sysui/desktop/menus/xsltfilter.desktop b/sysui/desktop/menus/xsltfilter.desktop
+new file mode 100644
+index 0000000..a6c3b1b
+--- /dev/null
++++ b/sysui/desktop/menus/xsltfilter.desktop
+@@ -0,0 +1,9 @@
++[Desktop Entry]
++Version=1.0
++Terminal=false
++Type=Application
++Exec=${UNIXBASISROOTNAME} %U
++MimeType=application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.presentation-flat-xml;
++Name=%PRODUCTNAME XSLT based filters
++GenericName=XSLT based filters
++NoDisplay=true
+diff --git a/sysui/desktop/share/launcher_genericname.ulf b/sysui/desktop/share/launcher_genericname.ulf
+index 6130e0b..09ccf8d 100755
+--- a/sysui/desktop/share/launcher_genericname.ulf
++++ b/sysui/desktop/share/launcher_genericname.ulf
+@@ -21,3 +21,6 @@
+ 
+ [javafilter]
+ en-US = "Small Device Format Importer"
++
++[xsltfilter]
++en-US = "XSLT based filters"
+diff --git a/sysui/desktop/share/makefile.mk b/sysui/desktop/share/makefile.mk
+index f6b4dfa..1d99c84 100755
+--- a/sysui/desktop/share/makefile.mk
++++ b/sysui/desktop/share/makefile.mk
+@@ -52,7 +52,7 @@
+     launcher_genericname.ulf \
+     launcher_name.ulf
+ 
+-LAUNCHERLIST = writer calc draw impress math base printeradmin qstart startcenter javafilter
++LAUNCHERLIST = writer calc draw impress math base printeradmin qstart startcenter javafilter xsltfilter
+ LAUNCHERDEPN = ../menus/{$(LAUNCHERLIST)}.desktop
+ 
+ LAUNCHERFLAGFILE = $(COMMONMISC)/$(TARGET)/xdg.flag
+@@ -126,9 +126,9 @@
+     extension
+ 
+ ICONDEPN = \
+-    ../icons/hicolor/{16x16 32x32 48x48}/apps/{$(LAUNCHERLIST:s/qstart//:s/javafilter//)}.png \
++    ../icons/hicolor/{16x16 32x32 48x48}/apps/{$(LAUNCHERLIST:s/qstart//:s/javafilter//:s/xsltfilter//)}.png \
+     ../icons/hicolor/{16x16 32x32 48x48}/mimetypes/{$(MIMEICONLIST)}.png \
+-    ../icons/locolor/{16x16 32x32}/apps/{$(LAUNCHERLIST:s/qstart//:s/javafilter//)}.png \
++    ../icons/locolor/{16x16 32x32}/apps/{$(LAUNCHERLIST:s/qstart//:s/javafilter//:s/xsltfilter//)}.png \
+     ../icons/locolor/{16x16 32x32}/mimetypes/{$(MIMEICONLIST)}.png
+ 
+ # --- Targets ------------------------------------------------------
+diff --git a/sysui/desktop/suse/suse-menus.spec b/sysui/desktop/suse/suse-menus.spec
+index 74b67e6..ab053ec 100755
+--- a/sysui/desktop/suse/suse-menus.spec
++++ b/sysui/desktop/suse/suse-menus.spec
+@@ -355,6 +355,7 @@
+ /usr/share/applications/%unixfilename-printeradmin.desktop
+ /usr/share/applications/%unixfilename-startcenter.desktop
+ /usr/share/applications/%unixfilename-javafilter.desktop
++/usr/share/applications/%unixfilename-xsltfilter.desktop
+ /opt/gnome/share/mime-info/*.keys
+ /opt/gnome/share/mime-info/*.mime
+ /opt/kde3/share/mimelnk/application/*.desktop
+-- 
+1.7.7.6
+
diff --git a/libreoffice.spec b/libreoffice.spec
index 8321895..91db703 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -233,6 +233,7 @@ Patch114: 0001-fdo-39694-SwTxtFld-do-expand-the-field-in-the-ctor.patch
 Patch115: 0002-fdo-42073-sw-expand-all-text-fields-when-setting-pro.patch
 Patch116: 0001-Related-rhbz-799628-crash-with-chewing-IM-with-g3g.patch
 Patch117: 0001-silence-SolarMutex-not-locked-spew.patch
+Patch118: 0001-Resolves-rhbz-799525-put-flat-odf-mimetypes-in-xsltf.patch
 
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 %define instdir %{_libdir}
@@ -1147,6 +1148,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
 %patch115 -p1 -b .fdo-42073-sw-expand-all-text-fields-when-setting-pro.patch
 %patch116 -p1 -b .rhbz-799628-crash-with-chewing-IM-with-g3g.patch
 %patch117 -p1 -b .silence-SolarMutex-not-locked-spew.patch
+%patch118 -p1 -b .rhbz-799525-put-flat-odf-mimetypes-in-xsltf.patch
 
 # these are horribly incomplete--empty translations and copied english
 # strings with spattering of translated strings
@@ -2379,6 +2381,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
 %dir %{basisinstdir}/share/xslt/import
 %{basisinstdir}/share/xslt/import/uof
 %{basisinstdir}/share/registry/xsltfilter.xcd
+%{_datadir}/applications/libreoffice-xsltfilter.desktop
 
 %files javafilter
 %defattr(-,root,root,-)
@@ -2466,6 +2469,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
 - Resolves: fdo#39694 SwTxtFld: expand new fields to fix race condition
 - Resolves: fdo#42073 sw: expand all text fields when setting properties
 - Resolves: rhbz#799628 crash with chewing IM with g3g
+- Resolves: rhbz#799525 put flat odf mimetypes in xsltfilter.desktop
 
 * Wed Feb 29 2012 Caolán McNamara <caolanm at redhat.com> - 3.4.5.2-7
 - Resolves: rhbz#788045 swriter --help wouldn't display help


More information about the scm-commits mailing list