Patch to add mime handling for DocBook to desktop file

This commit is contained in:
dmalcolm 2005-12-16 16:53:12 +00:00
parent eb110f1415
commit 01823c8909
2 changed files with 18 additions and 1 deletions

View File

@ -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

View File

@ -13,10 +13,11 @@
Summary: A system documentation reader from the Gnome project. Summary: A system documentation reader from the Gnome project.
Name: yelp Name: yelp
Version: 2.13.2 Version: 2.13.2
Release: 1 Release: 2
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
# http://bugzilla.gnome.org/show_bug.cgi?id=319096 # http://bugzilla.gnome.org/show_bug.cgi?id=319096
Patch1: yelp-2.12.1-fedora-docs.patch Patch1: yelp-2.12.1-fedora-docs.patch
Patch2: yelp-2.13.2-add-mime-handling.patch
License: GPL License: GPL
Group: Applications/System Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-root
@ -32,6 +33,8 @@ Requires: libglade2 >= %{libglade_version}
Requires: libgcrypt Requires: libgcrypt
Requires: gnome-doc-utils Requires: gnome-doc-utils
Requires: GConf2 Requires: GConf2
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
BuildRequires: pango-devel >= %{pango_version} BuildRequires: pango-devel >= %{pango_version}
BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: gnome-vfs2-devel >= %{gnome_vfs2_version} BuildRequires: gnome-vfs2-devel >= %{gnome_vfs2_version}
@ -56,6 +59,7 @@ one central tool.
%prep %prep
%setup -q %setup -q
%patch1 -p1 -b .fedora-docs %patch1 -p1 -b .fedora-docs
%patch2 -p1 -b .add-mime-handling
%build %build
%configure --with-mozilla=mozilla --disable-man --disable-info --disable-schemas-install %configure --with-mozilla=mozilla --disable-man --disable-info --disable-schemas-install
@ -79,10 +83,12 @@ rm -rf $RPM_BUILD_ROOT
%preun %preun
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null
update-desktop-database &> /dev/null ||:
%post %post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null
update-desktop-database &> /dev/null ||:
# update icon themes # update icon themes
touch %{_datadir}/icons/hicolor touch %{_datadir}/icons/hicolor
@ -101,6 +107,10 @@ fi
%{_datadir}/yelp %{_datadir}/yelp
%changelog %changelog
* Thu Dec 15 2005 David Malcolm <dmalcolm@redhat.com> - 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 <mclasen@redhat.com> 2.13.2-1 * Thu Dec 15 2005 Matthias Clasen <mclasen@redhat.com> 2.13.2-1
- Update to 2.13.2 - Update to 2.13.2