%define _requires_exceptions libnspr4\\|libplc4\\|libplds4\\|libnss\\|libsmime3\\|libsoftokn\\|libssl3\\|libgtkembedmoz\\|libxpcom %define build_with_firefox 1 # Build with mozilla instaed of firefox %{?_with_mozilla: %global build_with_firefox 0} %{?_without_mozilla: %global build_with_firefox 1} Summary: GNOME Web Browser Name: galeon Version: 2.0.3 %define subrel 9 Release: %mkrel 7 License: GPL Group: Networking/WWW Source: http://prdownloads.sourceforge.net/galeon/%{name}-%{version}.tar.bz2 Source4: %{name}_48.png Source5: %{name}_32.png Source6: %{name}_16.png # (fc) 0.12.2 use indexhtml as default page Patch0: galeon-1.3.2-home.patch # (pt) fix crash on printing, from upstream #460235 Patch1: galeon-2.0.3-printdial.patch URL: http://galeon.sourceforge.net BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: libglade2.0-devel BuildRequires: libgnome-desktop-2-devel BuildRequires: scrollkeeper %if %{build_with_firefox} BuildRequires: mozilla-firefox-devel %else BuildRequires: mozilla-devel %endif BuildRequires: perl-XML-Parser BuildRequires: automake1.9 BuildRequires: intltool BuildRequires: desktop-file-utils %if %{build_with_firefox} %define firefox_version %(rpm -q mozilla-firefox --queryformat %{VERSION}) Requires: %mklibname mozilla-firefox %{firefox_version} %else Requires: mozilla = %(rpm -q mozilla --queryformat %{VERSION}) %endif Requires(post): scrollkeeper Requires(postun): scrollkeeper Requires: indexhtml Requires: yelp Provides: webclient Conflicts: mozilla < 1.4-1mdk %description GNOME Web browser based on Gecko (Mozilla rendering engine) %prep %setup -q %patch0 -p1 -b .home %patch1 -p1 -b .print %build %configure2_5x --disable-schemas-install --disable-nautilus-view \ %if %{build_with_firefox} && %mdkversion <= 200700 --with-mozilla=mozilla-firefox %endif %make %install rm -rf %buildroot GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std mkdir -p %buildroot{%{_menudir},%{_iconsdir},%{_liconsdir},%{_miconsdir}} cat << EOF > %buildroot%{_menudir}/%{name} ?package(%{name}): \ command="soundwrapper %{_bindir}/%{name}" \ icon="%{name}.png" \ needs="x11" \ section="Internet/Web Browsers" \ title="Galeon" \ longtitle="GNOME Web Browser" \ mimetypes="text/html" \ accept_url="true" \ multiple_files="false" \ startup_notify="true" \ xdg="true" EOF desktop-file-install --vendor="" \ --remove-category="Application" \ --add-category="X-MandrivaLinux-Internet-WebBrowsers" \ --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/* cp -f %{SOURCE4} %buildroot%{_liconsdir}/%{name}.png cp -f %{SOURCE5} %buildroot%{_iconsdir}/%{name}.png cp -f %{SOURCE6} %buildroot%{_miconsdir}/%{name}.png %find_lang %{name} --with-gnome --all-name for omf in %buildroot%_datadir/omf/%name/%name-??*.omf;do echo "%lang($(basename $omf|sed -e s/%name-// -e s/.omf//)) $(echo $omf|sed -e s!%buildroot!!)" >> %name.lang done %post if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%name.schemas > /dev/null if [ "$1" = "2" ]; then update-alternatives --remove webclient-gnome %{_bindir}/galeon update-alternatives --remove webclient-kde %{_bindir}/galeon fi %{update_menus} %preun if [ "$1" = "0" ]; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%name.schemas > /dev/null fi %postun %{clean_menus} if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi %clean rm -rf %buildroot %files -f %{name}.lang %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README INSTALL TODO THANKS FAQ %config(noreplace) %{_sysconfdir}/sound/events/* %{_sysconfdir}/gconf/schemas/galeon.schemas %{_bindir}/* %{_libdir}/bonobo/servers/* %{_datadir}/galeon %{_datadir}/sounds/* %{_datadir}/applications/* %{_datadir}/gnome-2.0/ui/* %{_datadir}/pixmaps/* %dir %{_datadir}/omf/%name %{_datadir}/omf/%name/%name-C.omf %{_mandir}/man1/* %{_menudir}/* %{_iconsdir}/*.png %{_liconsdir}/*.png %{_miconsdir}/*.png %changelog * Thu Nov 13 2008 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.9mdv2008.0 - rebuild against firefox 2.0.0.18 * Thu Sep 25 2008 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.8mdv2008.0 - rebuild against firefox 2.0.0.17 * Thu Jul 17 2008 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.7mdv2008.0 - rebuild against firefox 2.0.0.16 * Mon Jul 07 2008 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.6mdv2008.0 - rebuild against firefox 2.0.0.15 * Thu Jun 05 2008 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.5mdv2008.0 - rebuild against firefox 2.0.0.14 * Thu Mar 27 2008 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.4mdv2008.0 - rebuild against firefox 2.0.0.13 * Wed Feb 20 2008 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.3mdv2008.0 - rebuild against firefox 2.0.0.12 * Wed Dec 12 2007 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.2mdv2008.0 - rebuild against firefox 2.0.0.11 * Sat Oct 20 2007 Vincent Danen <vdanen@mandriva.com> 2.0.3-7.1mdv2008.0 - rebuild against firefox 2.0.0.8 * Wed Sep 19 2007 Pascal Terjan <pterjan@mandriva.org> 2.0.3-7mdv2008.0 + Revision: 91015 - Add a workaround (from upstream bugzilla) for crash on opening print dialog * Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 2.0.3-6mdv2008.0 + Revision: 57245 - rebuild * Fri Mar 23 2007 Frederic Crozat <fcrozat@mandriva.com> 2.0.3-5mdv2007.1 + Revision: 148584 - Fix rebuild * Fri Mar 23 2007 Götz Waschk <waschk@mandriva.org> 2.0.3-4mdv2007.1 + Revision: 148368 - rebuild for new firefox * Tue Feb 27 2007 Götz Waschk <waschk@mandriva.org> 2.0.3-3mdv2007.1 + Revision: 126292 - rebuild for new firefox * Mon Jan 08 2007 Götz Waschk <waschk@mandriva.org> 2.0.3-2mdv2007.1 + Revision: 106166 - rebuild * Sat Dec 09 2006 Pascal Terjan <pterjan@mandriva.org> 2.0.3-1mdv2007.1 + Revision: 94096 - 2.0.3 (unadvertized but out since Sep 18) * Fri Dec 08 2006 Götz Waschk <waschk@mandriva.org> 2.0.2-2mdv2007.1 + Revision: 92178 - new firefox * Thu Nov 09 2006 Götz Waschk <waschk@mandriva.org> 2.0.2-1mdv2007.1 + Revision: 79170 - Import galeon * Thu Nov 09 2006 Götz Waschk <waschk@mandriva.org> 2.0.2-1mdv2007.1 - unpack patch - new version * Tue Sep 19 2006 Frederic Crozat <fcrozat@mandriva.com> 2.0.1-8mdv2007.0 - Rebuild with latest firefox * Fri Aug 04 2006 Götz Waschk <waschk@mandriva.org> 2.0.1-1mdv2007.0 - rebuild for new firefox * Thu Aug 03 2006 Frederic Crozat <fcrozat@mandriva.com> 2.0.1-6mdv2007.0 - Rebuild with latest dbus * Thu Jul 13 2006 Pascal Terjan <pterjan@mandriva.org> 2.0.1-5mdv2007.0 - xdg menu - fix menu section * Sun Jun 04 2006 Pascal Terjan <pterjan@mandriva.org> 2.0.1-4mdv2007.0 - rebuild for new firefox * Thu May 04 2006 Götz Waschk <waschk@mandriva.org> 2.0.1-3mdk - rebuild for new firefox * Sat Apr 22 2006 Frederic Crozat <fcrozat@mandriva.com> 2.0.1-2mdk - Rebuild with latest firefox * Mon Feb 27 2006 Götz Waschk <waschk@mandriva.org> 2.0.1-1mdk - drop patch 1 - New release 2.0.1 * Fri Feb 03 2006 Götz Waschk <waschk@mandriva.org> 2.0.0-5mdk - rebuild for new mozilla-firefox * Mon Jan 16 2006 Götz Waschk <waschk@mandriva.org> 2.0.0-4mdk - fix buildrequires * Thu Jan 12 2006 Frederic Crozat <fcrozat@mandriva.com> 2.0.0-3mdk - Patch1 (CVS): typeahead find toolbar (typeahead is broken with FF 1.5 otherwise) * Tue Jan 10 2006 Frederic Crozat <fcrozat@mandriva.com> 2.0.0-2mdk - Rebuild with FF 1.5 - use mkrel - replace hardcoded version of firefox with the one available at compile time * Mon Nov 28 2005 Götz Waschk <waschk@mandriva.org> 2.0.0-1mdk - replace prereq - drop patch 1 - New release 2.0.0 * Wed Oct 26 2005 Frederic Crozat <fcrozat@mandriva.com> 1.3.21-6mdk - Rebuild with FF 1.0.7 - drop prereq * Thu Sep 15 2005 Frederic Crozat <fcrozat@mandriva.com> 1.3.21-5mdk - Add requires_exception to prevent from asking mozilla * Sat Jul 30 2005 Marcel Pol <mpol@mandriva.org> 1.3.21-4mdk - requires yelp * Sat Jul 30 2005 Frederic Crozat <fcrozat@mandriva.com> 1.3.21-3mdk - Rebuild with FF 1.0.6 * Thu May 26 2005 Frederic Crozat <fcrozat@mandriva.com> 1.3.21-2mdk - Rebuild with FF 1.0.4 * Tue May 24 2005 Götz Waschk <waschk@mandriva.org> 1.3.21-1mdk - drop merged patch 3 - rediff patch 1 - new source URL - new version * Wed Apr 20 2005 Götz Waschk <waschk@mandriva.org> 1.3.20-2mdk - fix buildrequires * Wed Apr 20 2005 Frederic Crozat <fcrozat@mandriva.com> 1.3.20-1mdk - Release 1.3.20 (based on Götz Waschk package) - Regenerate patches 1, 3 - Remove patch 2 (merged upstream) * Sat Apr 02 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.19-7mdk - Patch3: fix i18n init for windows name * Thu Mar 24 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.19-6mdk - Rebuild for FF 1.0.2 * Sun Feb 27 2005 Götz Waschk <waschk@linux-mandrake.com> 1.3.19-5mdk - really really disable nautilus extension * Sat Feb 26 2005 Götz Waschk <waschk@linux-mandrake.com> 1.3.19-4mdk - really disable nautilus extension * Tue Feb 22 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.19-3mdk - Drop webclient-gnome/kde alternative * Tue Feb 22 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.19-2mdk - Built with firefox by default now - Disable nautilus view (view are deprecated now) - Patch1: allow mozilla-firefox as product - Patch2: fix typeahead when using firefox as backend * Tue Jan 18 2005 Götz Waschk <waschk@linux-mandrake.com> 1.3.19-1mdk - update file list - New release 1.3.19 * Thu Jan 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.18-5mdk - Rebuild with latest howl * Mon Dec 20 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.18-4mdk - Rebuild with mozilla 1.7.5 * Wed Dec 08 2004 Götz Waschk <waschk@linux-mandrake.com> 1.3.18-3mdk - add schemas uninstallation - fix buildrequires * Tue Nov 09 2004 Götz Waschk <waschk@linux-mandrake.com> 1.3.18-2mdk - fix omf file listing - new galeon * Thu Oct 28 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.18-1mdk - New release 1.3.18 * Thu Aug 19 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.17-2mdk - Rebuild with mozilla 1.7.2 * Tue Aug 10 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.17-1mdk - Release 1.3.17 - Remove patch 1 (no longer relevant, moved to mozilla package) - Remove patch 2 (merged upstream) * Wed Jul 21 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.16-1mdk - New release 1.3.16 - Remove patches 2 & 3 (merged upstream) - Patch2 (CVS): fix crash when loading some webpages * Thu Jun 24 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.15-3mdk - Patch3 (CVS): fix build for Mozilla 1.7 final - Rebuild with Mozilla 1.7 final * Sat Jun 19 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 1.3.15-2mdk - Rebuild - Add patch2 fix compile with gcc3.4.1 * Thu Jun 03 2004 Götz Waschk <waschk@linux-mandrake.com> 1.3.15-1mdk - reenable libtoolize - New release 1.3.15 * Thu Apr 29 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.14a-4mdk - Rebuild for mozilla 1.7 * Fri Apr 23 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.14a-3mdk - Fix BuildRequires again * Thu Apr 22 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.14a-2mdk - Fix BuildRequires * Thu Apr 08 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.14a-1mdk - Release 1.3.14a * Thu Apr 08 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.14-1mdk - Release 1.3.14 (from Götz) - fix build - requires new glib - drop patch 2