From 01823c8909aa6c6088716e536e702ddc3e3c8e5b Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Fri, 16 Dec 2005 16:53:12 +0000 Subject: [PATCH] Patch to add mime handling for DocBook to desktop file --- yelp-2.13.2-add-mime-handling.patch | 7 +++++++ yelp.spec | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 yelp-2.13.2-add-mime-handling.patch diff --git a/yelp-2.13.2-add-mime-handling.patch b/yelp-2.13.2-add-mime-handling.patch new file mode 100644 index 0000000..91b0e4b --- /dev/null +++ b/yelp-2.13.2-add-mime-handling.patch @@ -0,0 +1,7 @@ +--- yelp-2.13.2/yelp.desktop.in.in.add-mime-handling 2005-12-15 19:16:20.000000000 -0500 ++++ yelp-2.13.2/yelp.desktop.in.in 2005-12-15 19:18:18.000000000 -0500 +@@ -12,3 +12,4 @@ + X-GNOME-Bugzilla-Product=Yelp + X-GNOME-Bugzilla-Component=general + X-GNOME-Bugzilla-Version=@VERSION@ ++MimeType=application/docbook+xml diff --git a/yelp.spec b/yelp.spec index 8373854..6988271 100644 --- a/yelp.spec +++ b/yelp.spec @@ -13,10 +13,11 @@ Summary: A system documentation reader from the Gnome project. Name: yelp Version: 2.13.2 -Release: 1 +Release: 2 Source: %{name}-%{version}.tar.bz2 # http://bugzilla.gnome.org/show_bug.cgi?id=319096 Patch1: yelp-2.12.1-fedora-docs.patch +Patch2: yelp-2.13.2-add-mime-handling.patch License: GPL Group: Applications/System BuildRoot: %{_tmppath}/%{name}-root @@ -32,6 +33,8 @@ Requires: libglade2 >= %{libglade_version} Requires: libgcrypt Requires: gnome-doc-utils Requires: GConf2 +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils BuildRequires: pango-devel >= %{pango_version} BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: gnome-vfs2-devel >= %{gnome_vfs2_version} @@ -56,6 +59,7 @@ one central tool. %prep %setup -q %patch1 -p1 -b .fedora-docs +%patch2 -p1 -b .add-mime-handling %build %configure --with-mozilla=mozilla --disable-man --disable-info --disable-schemas-install @@ -79,10 +83,12 @@ rm -rf $RPM_BUILD_ROOT %preun export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null +update-desktop-database &> /dev/null ||: %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null +update-desktop-database &> /dev/null ||: # update icon themes touch %{_datadir}/icons/hicolor @@ -101,6 +107,10 @@ fi %{_datadir}/yelp %changelog +* Thu Dec 15 2005 David Malcolm - 2.13.2-2 +- Patched to include DocBook mimetype in desktop file, and added preun and post + hooks to update-desktop-database (#175880) + * Thu Dec 15 2005 Matthias Clasen 2.13.2-1 - Update to 2.13.2