3 %bcond_without nautilus # disable nautilus view
4 %bcond_with gcc2 # compile using gcc2 to get working gcc2-compiled java
5 # plugin (better get gcc3-compiled one).
6 # Flash plugin seems to still not work, use
7 # mozilla instead. To compile wit this option, You
8 # have to install mozilla compiled with gcc2.
10 %define minmozver 5:1.6
13 Summary: Galeon - gecko-based GNOME web browser
14 Summary(pl): Galeon - przegl±darka WWW dla GNOME
15 Summary(pt_BR): O galeon é um browser para o GNOME baseado no mozilla
16 Summary(zh_CN): »ùÓÚGeckoµÄGNOMEÁ÷ÀÀÆ÷
22 Group: X11/Applications/Networking
23 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
24 # Source0-md5: c29bdfb23fdafddfcfb6ae7fc6c822fd
25 #Source0: %{name}-%{version}-%{snap}.tar.bz2
26 Source1: %{name}-config-tool.1
27 Patch0: %{name}-desktop.patch
28 Patch1: %{name}-home_etc.patch
29 Patch2: %{name}-locale-names.patch
30 URL: http://galeon.sourceforge.net/
31 BuildRequires: GConf2-devel >= 2.4.0
32 BuildRequires: ORBit2-devel >= 2.8.3
33 BuildRequires: autoconf
34 BuildRequires: automake
36 BuildRequires: gettext-devel
37 BuildRequires: gnome-vfs2-devel >= 2.4.0
38 BuildRequires: gtk+2-devel >= 2.2.0
39 BuildRequires: intltool
40 BuildRequires: libbonoboui-devel >= 2.4.0
41 BuildRequires: libglade2-devel >= 2.0.1
42 BuildRequires: libgnomeui-devel >= 2.4.0
43 BuildRequires: libstdc++-devel
44 BuildRequires: libtool
45 BuildRequires: libxml2-devel >= 2.4.0
46 BuildRequires: mozilla-devel >= %{minmozver}
47 %{?with_nautilus:BuildRequires: nautilus-devel >= 2.4.0}
48 BuildRequires: openssl-devel >= 0.9.7c
49 BuildRequires: rpm-build >= 4.1-10
50 BuildRequires: scrollkeeper >= 0.1.4
51 Requires(post): GConf2
52 Requires(post): scrollkeeper
53 Requires: libbonobo >= 2.4.0
54 Requires: mozilla = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla)
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 # can be provided by mozilla or mozilla-embedded
58 %define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
66 GNOME browser based on Gecko (Mozilla rendering engine).
69 Galeon jest przegl±dark± WWW bazuj±c± na Gecko (mechanizmie
70 interpretacji stron Mozilli).
73 O galeon é um browser para o GNOME baseado no mozilla.
76 %setup -q -n %{name}-1.3.13
83 # regenerate - didn't compile with ORBit2 2.7.2
85 orbit-idl-2 -I /usr/share/idl/bonobo-2.0 -I /usr/share/idl/bonobo-activation-2.0 Galeon*.idl
86 mv Galeon*.[ch] ../src
90 glib-gettextize --copy --force
91 intltoolize --copy --force
98 --disable-schemas-install \
100 --enable-nautilus-view=yes
102 --enable-nautilus-view=no
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_mandir}/man1
113 DESTDIR=$RPM_BUILD_ROOT
115 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
117 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/*.la
119 # galeon-2.0.mo, but gnome/help/galeon
120 %find_lang galeon-2.0 --with-gnome --all-name
123 rm -rf $RPM_BUILD_ROOT
126 /usr/bin/scrollkeeper-update
127 %gconf_schema_install
129 %postun -p /usr/bin/scrollkeeper-update
131 %files -f galeon-2.0.lang
132 %defattr(644,root,root,755)
133 %doc AUTHORS ChangeLog NEWS README*
134 %attr(755,root,root) %{_bindir}/*
135 %attr(755,root,root) %{_libdir}/%{name}
136 %{_libdir}/bonobo/servers/*
139 %{_datadir}/gnome-2.0/ui/*.xml
140 %{_omf_dest_dir}/%{name}
141 %{_datadir}/sounds/galeon
143 %{_sysconfdir}/gconf/schemas/*
144 %{_sysconfdir}/sound/events/*