3 # _with_gcc2 - compile using gcc2 to get working java plugin.
4 # Flash plugin seems to still doesn't work, use
5 # mozilla instead. To compile wit this option, You
6 # have to install mozilla compiled with gcc2.
8 %define minmozver 1.3b-0.2
11 Summary: Galeon - gecko-based GNOME web browser
12 Summary(pl): Galeon - przegl±darka WWW dla GNOME
13 Summary(pt_BR): O galeon é um browser para o gnome baseado no mozilla
14 Summary(zh_CN): »ùÓÚGeckoµÄGNOMEÁ÷ÀÀÆ÷
20 Group: X11/Applications/Networking
21 Source0: http://unc.dl.sourceforge.net/sourceforge/galeon/%{name}-%{version}.tar.gz
22 Source1: %{name}-config-tool.1
23 URL: http://galeon.sourceforge.net/
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: GConf2-devel
27 BuildRequires: ORBit2-devel
29 BuildRequires: bonobo-activation-devel >= 2.1.0
30 BuildRequires: gettext-devel
31 BuildRequires: gnome-vfs2-devel
32 BuildRequires: gtk+2-devel >= 2.0.6
33 BuildRequires: intltool
34 BuildRequires: libglade2-devel
35 BuildRequires: libgnomeui-devel
36 BuildRequires: libstdc++-devel
37 BuildRequires: libxml2-devel
38 BuildRequires: mozilla-embedded-devel >= %{minmozver}
39 BuildRequires: nautilus-devel >= 2.0.0
40 BuildRequires: openssl-devel >= 0.9.7
41 BuildRequires: scrollkeeper
42 BuildRequires: bonobo-activation >= 2.1.0-3
43 BuildRequires: rpm-build >= 4.1-10
44 Requires: mozilla-embedded = %(rpm -q --qf '%{VERSION}' --whatprovides mozilla-embedded)
45 Requires(post): GConf2
46 Requires(post): mozilla
47 Requires(post): scrollkeeper
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 # can be provided by mozilla or mozilla-embedded
51 %define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
53 %if%{?_with_gcc2:1}%{!?_with_gcc2:0}
59 Gnome browser based on Gecko (Mozilla rendering engine).
62 Galeon jest przegl±dark± WWW bazuj±c± na Gecko (mechanizmie
63 interpretacji stron Mozilli).
66 O galeon é um browser para o gnome baseado no mozilla.
69 %setup -q -n %{name}-%{version}
73 glib-gettextize --copy --force
74 intltoolize --copy --force
81 --with-mozilla-libs=%{_libdir} \
82 --with-mozilla-includes=%{_includedir}/mozilla \
83 --with-mozilla-home=%{_libdir}/mozilla \
85 --disable-included-gettext \
86 --disable-schemas-install \
88 --with-mozilla-snapshot=1.3 \
89 --enable-gconf-source=%{_sysconfdir}/gconf/schemas \
90 --enable-nautilus-view=yes
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT%{_mandir}/man1
99 DESTDIR=$RPM_BUILD_ROOT
101 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
103 %find_lang galeon-2.0
106 rm -rf $RPM_BUILD_ROOT
109 /usr/bin/scrollkeeper-update
111 rm -f %{_libdir}/mozilla/component.reg
112 MOZILLA_FIVE_HOME=%{_libdir}/mozilla regxpcom
113 %gconf_schema_install
115 %postun -p /usr/bin/scrollkeeper-update
117 %files -f galeon-2.0.lang
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README*
120 %attr(755,root,root) %{_bindir}/*
122 %{_libdir}/bonobo/servers/*
124 %{_datadir}/applications/*
125 %{_datadir}/gnome/help/*
126 %{_datadir}/gnome-2.0/ui/*.xml
127 %{_omf_dest_dir}/%{name}
128 %{_datadir}/sounds/galeon
130 %{_sysconfdir}/gconf/schemas/*
131 %{_sysconfdir}/sound/events/*