%{?!WITH_MONO: %define WITH_MONO 1} %ifarch ppc64 s390 s390x %define WITH_MONO 0 %endif %define gnome_doc_utils 0.11.1 %define gnome_vfs2_version 2.0.0 %define gtk2_version 2.10.0 %define libglade_version 2.0.0 %define libgnomeui_version 2.14.0 %define libxml_version 2.6.5 %define libxslt_version 1.1.4 %define startup_notification_version 0.8 %define rarian_version 0.7.0 %define gecko_version 1.9 %define pango_version 1.0.99 %define desktop_file_utils_version 0.3-7 Summary: A system documentation reader from the Gnome project Name: yelp Version: 2.22.1 Release: 2%{?dist} Source: http://ftp.gnome.org/pub/GNOME/sources/yelp/2.22/%{name}-%{version}.tar.bz2 URL: http://live.gnome.org/Yelp # http://bugzilla.gnome.org/show_bug.cgi?id=319096 Patch1: yelp-2.15.5-fedora-docs.patch Patch2: yelp-2.13.2-add-mime-handling.patch Patch3: yelp-2.15.91-use-pango.patch # http://bugzilla.gnome.org/show_bug.cgi?id=497559 Patch6: hp.patch # http://bugzilla.gnome.org/show_bug.cgi?id=499744 Patch7: yelp-2.20.0-xulrunner.patch Patch8: yelp-2.20.0-xulrunner2.patch Patch9: yelp-2.21.2-libxul.patch # RH bug #437328 / GNOME bug #511244 Patch10: yelp-2.22.0-beagle-search.patch # http://bugzilla.gnome.org/show_bug.cgi?id=431077 # XXX Does this no longer apply to yelp >= 2.19.1 ? #Patch8: yelp-2.18.1-posix-man.patch License: GPLv2+ Group: Applications/System BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: docbook-dtds Requires: gtk2 >= %{gtk2_version} Requires: gnome-vfs2 >= %{gnome_vfs2_version} Requires: gecko-libs = %{gecko_version} Requires: libgnomeui >= %{libgnomeui_version} Requires: libxml2 >= %{libxml_version} Requires: libxslt >= %{libxslt_version} Requires: libglade2 >= %{libglade_version} Requires: gnome-doc-utils-stylesheets Requires: rarian >= %{rarian_version} Requires(pre): GConf2 Requires(post): GConf2 Requires(post): desktop-file-utils Requires(preun): GConf2 Requires(postun): desktop-file-utils BuildRequires: pango-devel >= %{pango_version} BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: gnome-vfs2-devel >= %{gnome_vfs2_version} BuildRequires: gecko-devel-unstable = %{gecko_version} BuildRequires: libgnomeui-devel >= %{libgnomeui_version} BuildRequires: libglade2-devel >= %{libglade_version} BuildRequires: libxml2-devel >= %{libxml_version} BuildRequires: libxslt-devel >= %{libxslt_version} BuildRequires: libgcrypt-devel BuildRequires: fontconfig BuildRequires: GConf2-devel BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} BuildRequires: gnome-doc-utils-stylesheets BuildRequires: startup-notification-devel >= %{startup_notification_version} BuildRequires: libgnomeprintui22-devel BuildRequires: libXt-devel BuildRequires: perl(XML::Simple) BuildRequires: dbus-devel BuildRequires: gettext-devel BuildRequires: rarian-devel >= %{rarian_version} %if %{WITH_MONO} BuildRequires: libbeagle-devel %endif %description Yelp is the Gnome 2 help/documentation browser. It is designed to help you browse all the documentation on your system in one central tool. %prep %setup -q %patch1 -p1 -b .fedora-docs %patch2 -p1 -b .add-mime-handling %patch3 -p1 -b .use-pango %patch6 -p1 -b .hp %patch7 -p1 -b .xl %patch8 -p1 -b .xl2 %patch9 -p1 -b .libxul %patch10 -p1 -b .beagle-search %build %configure \ --enable-search \ --with-mozilla=libxul \ --enable-man \ --enable-info \ --disable-schemas-install make %install rm -rf $RPM_BUILD_ROOT %makeinstall desktop-file-install --vendor gnome --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --remove-category Application \ $RPM_BUILD_ROOT%{_datadir}/applications/* mkdir -p -m 755 $RPM_BUILD_ROOT/%{_datadir}/gnome/help %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %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 if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor fi %pre if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas >& /dev/null || : fi %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas >& /dev/null || : fi %postun update-desktop-database &> /dev/null ||: %files -f %{name}.lang %defattr(-,root,root) %doc ChangeLog AUTHORS COPYING MAINTAINERS NEWS README %{_sysconfdir}/gconf/schemas/yelp.schemas %{_bindir}/* %{_datadir}/applications/* %dir %{_datadir}/gnome/help %{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/yelp %changelog * Mon May 19 2008 Matthew Barnes - 2.22.1-2 - Require docbook-dtds (RH bug #447209). * Mon Apr 7 2008 Matthias Clasen - 2.22.1-1 - Update to 2.22.1 * Mon Mar 31 2008 Jon McCann - 2.22.0-4 - Disallow launchers when running under GDM. * Mon Mar 31 2008 Matthew Barnes - 2.22.0-3 - Update patch for RH bug #437328. * Thu Mar 13 2008 Matthew Barnes - 2.22.0-2 - Add patch for RH bug #437328 (searching with Beagle broken). * Sun Mar 09 2008 Matthew Barnes - 2.22.0-1 - Update to 2.22.0 * Thu Feb 28 2008 Martin Stransky - 2.21.90-4 - updated xulrunner patch, rebuild against xulrunner * Tue Feb 19 2008 Fedora Release Engineering - 2.21.90-3 - Autorebuild for GCC 4.3 * Sun Feb 17 2008 Matthew Barnes - 2.21.90-2 - Rebuild with GCC 4.3 * Mon Jan 28 2008 Matthew Barnes - 2.21.90-1 - Update to 2.21.90 * Tue Jan 08 2008 Matthew Barnes - 2.21.2-2 - Look for new-style xulrunner pkg-config files. - Build requires gecko-devel-unstable. * Tue Jan 08 2008 - Bastien Nocera - 2.21.2-1 - Update to 2.21.2 * Sun Dec 30 2007 Jeremy Katz - 2.21.1-3 - Rebuild for new xulrunner * Sat Dec 8 2007 Matthias Clasen - 2.21.1-2 - Rebuild against new libbeagle * Mon Dec 3 2007 Matthias Clasen - 2.21.1-1 - Update to 2.21.1 * Mon Dec 3 2007 Matthias Clasen - 2.20.0-9 - Rebuild against xulrunner again * Thu Nov 22 2007 Martin Stransky - 2.20.0-8 - rebuild against xulrunner * Fri Nov 16 2007 Matthias Clasen - 2.20.0-7 - Handle .HP tags in man pages * Fri Nov 09 2007 Matthew Barnes - 2.20.0-6 - Rebuild against gecko-libs 1.8.1.9. * Mon Nov 5 2007 Matthias Clasen - 2.20.0-5 - Fix a crash in search (#361041) * Sun Nov 4 2007 Matthias Clasen - 2.20.0-4 - Fix a crash when loading the rarian docs * Thu Nov 01 2007 Matthew Barnes - 2.20.0-3 - Rebuild against gecko-libs 1.8.1.8. * Mon Oct 22 2007 Matthias Clasen - 2.20.0-2 - Rebuild against new dbus-glib * Mon Sep 17 2007 Matthew Barnes - 2.20.0-1 - Update to 2.20.0 * Thu Aug 28 2007 Matthew Barnes - 2.19.90-3 - Remove --add-only-show-in from desktop-file-install (RH bug #258821). * Wed Aug 22 2007 Matthew Barnes - 2.19.90-2 - Mass rebuild * Mon Aug 13 2007 Matthew Barnes - 2.19.90-1 - Update to 2.19.90 - Remove "info-gnutls" patch (fixed upstream). - Remove patch for GNOME bug #370167 (fixed upstream). - Remove patch for GNOME bug #430365 (fixed upstream). - Remove patch for GNOME bug #431078 (fixed upstream). * Wed Aug 8 2007 Christopher Aillon - 2.19.1-4 - Rebuild against newer gecko * Fri Aug 03 2007 Matthew Barnes - 2.19.1-3 - Require rarian-devel for building. * Fri Aug 3 2007 Matthias Clasen - 2.19.1-2 - Update the license field * Thu Aug 02 2007 Matthew Barnes - 2.19.1-1 - Update to 2.19.1 - Adapt the "apropos" patch for 2.19.1. - The "posix-man" patch appears to no longer apply. - Update dependencies based on configure.ac. * Wed Jul 25 2007 Jeremy Katz - 2.18.1-7 - rebuild for toolchain bug * Mon Jul 23 2007 Matthias Clasen - 2.18.1-6 - Require gnome-doc-utils-stylesheets instead of gnome-doc-utils * Fri Jul 20 2007 Kai Engert - 2.18.1-5 - Rebuild against newer gecko * Wed May 25 2007 Christopher Aillon - 2.18.1-4 - Rebuild against newer gecko * Wed Apr 18 2007 Matthias Clasen - 2.18.1-3 - Improve the man parser a bit - Fix another crash in the info parser * Tue Apr 17 2007 Matthias Clasen - 2.18.1-2 - Fix a crash in the info parser (#216308) * Mon Apr 09 2007 Matthew Barnes - 2.18.1-1 - Update to 2.18.1 * Fri Mar 23 2007 Christopher Aillon - 2.18.0-2 - Rebuild against newer gecko * Tue Mar 13 2007 Matthew Barnes - 2.18.0-1 - Update to 2.18.0 * Wed Feb 28 2007 Matthew Barnes - 2.16.2-5 - Rebuild against newer gecko. * Fri Feb 23 2007 Matthias Clasen 2.16.2-4 - Don't own /usr/share/icons/hicolor * Tue Feb 13 2007 Bill Nottingham 2.16.2-3 - own %%{_datadir}/gnome/help (#205799) - rpmlint silencing: - add a URL: tag - add some docs * Thu Dec 21 2006 Christopher Aillon 2.16.2-2 - Rebuild against newer gecko * Tue Dec 5 2006 Matthias Clasen - 2.16.2-1 - Update to 2.16.2 - Drop obsolete patch * Fri Nov 3 2006 Matthias Clasen - 2.16.1-6 - Improve the whatis parser * Fri Nov 3 2006 Matthias Clasen - 2.16.1-5 - Silence %%pre * Sun Oct 29 2006 Matthias Clasen - 2.16.1-4 - Improve the previous fix * Sun Oct 29 2006 Matthias Clasen - 2.16.1-3 - Fix some crashes (#212888) * Fri Oct 27 2006 Christopher Aillon - 2.16.1-2 - Rebuild against newer gecko * Sun Oct 22 2006 Matthias Clasen - 2.16.1-1 - Update to 2.16.1 * Wed Oct 18 2006 Matthias Clasen - 2.16.0-5 - Fix scripts according to the packaging guidelines * Thu Oct 12 2006 Christopher Aillon - 2.16.0-4.fc6 - Update requires to the virtual gecko version instead of a specific app * Thu Sep 14 2006 Christopher Aillon - 2.16.0-3.fc6 - Rebuild * Wed Sep 6 2006 Matthias Clasen - 2.16.0-2.fc6 - Actually apply the Pango patch * Mon Sep 4 2006 Matthias Clasen - 2.16.0-1.fc6 - Update to 2.16.0 * Tue Aug 29 2006 Matthias Clasen - 2.15.91-3.fc6 - Use Pango * Wed Aug 23 2006 Matthew Barnes - 2.15.91-2 - Rebuild * Thu Aug 10 2006 Matthew Barnes - 2.15.91-1 - Update to 2.15.91 * Thu Jul 27 2006 Matthias Clasen - 2.15.5-1 - Update to 2.15.5 - Rebuild against firefox-devel * Tue Jul 18 2006 Matthias Clasen - 2.15.2-2 - Go back to 2.15.2, since gecko 1.8 is still missing * Wed Jul 12 2006 Jesse Keating - 2.15.3-1.1 - rebuild * Tue Jun 13 2006 Matthias Clasen - 2.15.3-1 - Update to 2.15.3 * Tue May 17 2006 Matthias Clasen - 2.15.2-1 - Update to 2.15.2 * Mon May 15 2006 Matthew Barnes - 2.15.1-3 - Bump mozilla_version from 1.7.12 to 1.7.13 (closes #190880). * Mon May 15 2006 Matthew Barnes - 2.15.1-2 - Add build requirements: startup-notification-devel libgnomeprintui22-devel libXt-devel * Tue May 9 2006 Matthias Clasen - 2.15.1-1 - Update to 2.15.1 * Mon Apr 10 2006 Matthias Clasen - 2.14.1-2 - Update to 2.14.1 * Mon Mar 13 2006 Matthias Clasen - 2.14.0-1 - Update to 2.14.0 * Mon Feb 27 2006 Matthias Clasen - 2.13.6-1 - Update to 2.13.6 * Sun Feb 12 2006 Matthias Clasen - 2.13.5-2 - Turn on info and man support for test3 * Sun Feb 12 2006 Matthias Clasen - 2.13.5-1 - Update to 2.13.5 * Fri Feb 10 2006 Jesse Keating - 2.13.4-1.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 2.13.4-1.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Tue Jan 31 2006 Matthias Clasen - 2.13.4-1 - Update to 2.13.4 * Thu Jan 19 2006 Matthias Clasen - 2.13.3-1 - Update to 2.13.3 - enable search * Wed Jan 18 2006 Matthias Clasen - 2.13.2-3 - Disable search, since it doesn't compile against current beagle * 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) - Patched to ensure that Yelp recognizes that it can handle the mimetype of the documentation as reported by gnomevfs (also #175880) * Thu Dec 15 2005 Matthias Clasen 2.13.2-1 - Update to 2.13.2 * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Nov 30 2005 Matthias Clasen - 2.13.1-6 - Update to 2.13.1 * Wed Oct 19 2005 Jeremy Katz - 2.12.1-5 - build on ppc64 now that we have mozilla there again * Tue Oct 18 2005 Christopher Aillon - 2.12.1-4 - Rebuild * Mon Oct 17 2005 Matthias Clasen - 2.12.1-3 - Include the category General|Linux|Distributions|Other on the title page * Mon Oct 17 2005 Matthias Clasen - 2.12.1-2 - Fix a double-free bug * Thu Sep 29 2005 Matthias Clasen - 2.12.1-1 - Update to 2.12.1 * Thu Sep 8 2005 Matthias Clasen - 2.12.0-1 - Update to 2.12.0 * Wed Aug 17 2005 Jeremy Katz - 2.11.1-5 - rebuild * Wed Aug 17 2005 Ray Strode 2.11.1-4 - rebuild * Sun Jul 31 2005 Christopher Aillon 2.11.1-3 - Rebuild against newer mozilla * Tue Jul 19 2005 Christopher Aillon 2.11.1-2 - Rebuild against newer mozilla * Wed Jul 13 2005 Matthias Clasen 2.11.1-1 - Newer upstream version * Thu May 19 2005 Ray Strode 2.10.0-1 - Update to 2.10.0 (bug 157752, 146862). * Thu May 19 2005 Christopher Aillon 2.9.3-7 - Depend on mozilla 1.7.8 * Thu Apr 28 2005 Ray Strode 2.9.3-6 - Disable man support - Disable info support - Don't try to install schemas during install (bug 154035) * Mon Apr 18 2005 Ray Strode 2.9.3-5 - Depend on mozilla 1.7.7 * Mon Apr 4 2005 Ray Strode 2.9.3-4 - rebuilt * Wed Mar 9 2005 Christopher Aillon 2.9.3-3 - Depend on mozilla 1.7.6 * Sat Mar 5 2005 Christopher Aillon 2.9.3-2 - Rebuild against GCC 4.0 * Fri Jan 28 2005 Matthias Clasen 2.9.3-1 - Update to 2.9.3 * Mon Dec 20 2004 Christopher Aillon 2.6.5-1 - Update to 2.6.5 * Sat Nov 6 2004 Marco Pesenti Gritti 2.6.4-1 - Update to 2.6.4 * Wed Sep 22 2004 Christopher Aillon 2.6.3-1 - Update to 2.6.3 * Fri Sep 03 2004 Matthias Clasen 2.6.2-2 - fix an translation problem * Tue Aug 31 2004 Alex Larsson 2.6.2-1 - update to 2.6.2 * Wed Jun 30 2004 Christopher Aillon 2.6.1-1 - Update to 2.6.1 * Tue Jun 15 2004 Elliot Lee - rebuilt * Thu Apr 1 2004 Alex Larsson 2.6.0-1 - update to 2.6.0 * Mon Mar 15 2004 Alex Larsson 2.5.90-2 - Fix requirements * Wed Mar 10 2004 Alex Larsson 2.5.90-1 - update to 2.5.90 * Tue Mar 02 2004 Elliot Lee - rebuilt * Wed Feb 25 2004 Alexander Larsson 2.5.6-1 - update to 2.5.6 * Fri Feb 13 2004 Elliot Lee - rebuilt * Wed Jan 28 2004 Alexander Larsson 2.5.3-1 - update to 2.5.3 * Wed Dec 24 2003 Tim Waugh 2.4.0-2 - Fix g_strdup_printf usage in info2html (bug #111200, patch from Miloslav Trmac). * Tue Sep 9 2003 Alexander Larsson 2.4.0-1 - update to 2.4.0 (only code change is bugfix from me) - Fixed the utf8 manpage patch (#91689) * Wed Aug 27 2003 Alexander Larsson 2.3.6-2 - info and manpages are utf8 * Wed Aug 20 2003 Alexander Larsson 2.3.6-1 - Update for gnome 2.3 * Wed Jul 9 2003 Alexander Larsson 2.2.3-1.E - Rebuild * Mon Jul 7 2003 Alexander Larsson 2.2.3-1 - update to 2.2.3 * Wed Jun 04 2003 Elliot Lee - rebuilt * Fri Feb 14 2003 Jeremy Katz 2.2.0-3 - fix buildrequires * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Jan 21 2003 Alexander Larsson 2.2.0-1 - Update to 2.2.0 - Add libglade dependency * Tue Jan 7 2003 Alexander Larsson 2.1.4-1 - Updated to 2.1.4 * Mon Nov 18 2002 Tim Powers - rebuild for all arches * Mon Aug 12 2002 Alexander Larsson - Remove the strange copyright on the start page. Fixes #69106 * Thu Aug 8 2002 Havoc Pennington - 1.0.2 - include libexecdir stuff * Sat Jul 27 2002 Havoc Pennington - rebuild with new gail - 1.0.1 * Fri Jun 21 2002 Tim Powers - automated rebuild * Tue Jun 18 2002 Havoc Pennington - put all the binaries in the file list... why is this package so hard? * Mon Jun 17 2002 Havoc Pennington - put images in file list, this thing will be non-ugly yet * Sun Jun 16 2002 Havoc Pennington - 1.0 - use desktop-file-install to install/munge .desktop files - put the sgml stuff in file list * Fri Jun 07 2002 Havoc Pennington - rebuild in different environment * Wed Jun 5 2002 Havoc Pennington - 0.10 * Sun May 26 2002 Tim Powers - automated rebuild * Tue May 21 2002 Havoc Pennington - rebuild in different environment * Tue May 21 2002 Havoc Pennington - 0.8 * Fri May 3 2002 Havoc Pennington - 0.6.1 * Fri Apr 19 2002 Havoc Pennington - 0.6 * Wed Jan 30 2002 Owen Taylor - Rebuild for new gnome2 libraries * Mon Jan 28 2002 Alex Larsson - Initial build.