]> git.pld-linux.org Git - packages/galeon.git/blame - galeon.spec
- fix for building with xulrunner 1.9.1.x, taken from gentoo
[packages/galeon.git] / galeon.spec
CommitLineData
3b0adc54 1#
8b6dc068 2# TODO:
3# - force galeon to use old SSL dialogs using nsIBadCertListener, ie. port
4# EphyBadCertRejector from Epiphany, this will fix issues with https sites
5# using self signed and expired certificates or mismatches in domain names
6#
3b0adc54 7# Conditional build:
8f1bfc8b 8%bcond_with nautilus # enable nautilus view
e2973888 9%bcond_with gcc2 # compile using gcc2 to get working gcc2-compiled java
10 # plugin (better get gcc3-compiled one).
11 # Flash plugin seems to still not work, use
12 # mozilla instead. To compile wit this option, You
13 # have to install mozilla compiled with gcc2.
3b0adc54 14#
2d5caf1b 15Summary: Galeon - gecko-based GNOME web browser
60a71b02
ER
16Summary(pl.UTF-8): Galeon - przeglądarka WWW dla GNOME
17Summary(pt_BR.UTF-8): O galeon é um browser para o GNOME baseado no mozilla
18Summary(zh_CN.UTF-8): 基于Gecko的GNOME流览器
73bb1b02 19Name: galeon
c2b17be0 20Version: 2.0.7
ba5bb428 21Release: 7
805351be 22Epoch: 2
73bb1b02 23License: GPL
24Group: X11/Applications/Networking
15e79dbc 25Source0: http://dl.sourceforge.net/galeon/%{name}-%{version}.tar.bz2
c2b17be0 26# Source0-md5: 2eede1f43e3f6f2ac4ce7d4db99b15b2
c45a9ff3 27Source1: %{name}-config-tool.1
a1e801cb 28Patch0: %{name}-desktop.patch
fa811b3a 29Patch1: %{name}-home_etc.patch
b7d5f870 30Patch2: %{name}-ti-agent.patch
31Patch3: %{name}-agent.patch
32Patch4: %{name}-libxul.patch
c2b17be0 33Patch5: %{name}-xul_includes_fix.patch
0d007d1e 34URL: http://galeon.sourceforge.net/
bafd3bac 35BuildRequires: GConf2-devel >= 2.4.0
36BuildRequires: ORBit2-devel >= 2.8.3
e8fd2a67 37BuildRequires: autoconf >= 2.52
8248c38e 38BuildRequires: automake
76e167bd 39BuildRequires: bison
2d5caf1b 40BuildRequires: gettext-devel
bb61e297 41BuildRequires: glib2-devel >= 1:2.4.4
fb065888 42BuildRequires: gnome-desktop-devel >= 2.9.91
a1484f71 43BuildRequires: gnome-vfs2-devel >= 2.10.0-2
bb61e297 44BuildRequires: gtk+2-devel >= 2:2.4.4
ded7c460 45BuildRequires: intltool
bafd3bac 46BuildRequires: libbonoboui-devel >= 2.4.0
e8fd2a67 47BuildRequires: libglade2-devel >= 1:2.4.0
9bde3343 48BuildRequires: libgnomeui-devel >= 2.6.0
2d5caf1b 49BuildRequires: libstdc++-devel
ad62aed9 50BuildRequires: libtool
e8fd2a67 51BuildRequires: libxml2-devel >= 2.6.6
1a32c029 52BuildRequires: xulrunner-devel >= 1.8.0.4
c3340658 53%{?with_nautilus:BuildRequires: nautilus-devel >= 2.4.0}
a316f6e5 54BuildRequires: pkgconfig
e1860ed5 55BuildRequires: rpm >= 4.4.9-56
a2e266ba 56BuildRequires: rpmbuild(find_lang) >= 1.23
e2973888 57BuildRequires: rpmbuild(macros) >= 1.197
90c0b910 58BuildRequires: scrollkeeper >= 0.1.4
a2e266ba 59BuildRequires: sed >= 4.0
e2973888 60Requires(post,postun): desktop-file-utils
a7efbce1 61Requires(post,postun): scrollkeeper
2e12d33e 62Requires(post,preun): GConf2
bb61e297 63Requires: glib2 >= 1:2.4.4
64Requires: gtk+2 >= 2:2.4.4
bafd3bac 65Requires: libbonobo >= 2.4.0
59eb0043 66%requires_eq_to xulrunner xulrunner-devel
176b31f7 67Provides: wwwbrowser
617abd0a 68# sr@Latn vs. sr@latin
69Conflicts: glibc-misc < 6:2.7
0d007d1e 70BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73bb1b02 71
0cc1369d 72# can be provided by mozilla or mozilla-embedded
e6907de5 73%define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
d7adffe6
MB
74# we have strict deps for it
75%define _noautoreq libxpcom.so
0cc1369d 76
67f4c311 77%if %{with gcc2}
0e9dd37f 78%define __cc gcc2
79%define __cxx gcc2
3b0adc54 80%endif
81
226ff634 82%description
0a27abb7 83GNOME browser based on Gecko (Mozilla rendering engine).
0d007d1e 84
244885b2
JR
85%description -l pl.UTF-8
86Galeon jest przeglądarką WWW bazującą na Gecko (mechanizmie
2d5caf1b 87interpretacji stron Mozilli).
3c3feeef 88
244885b2
JR
89%description -l pt_BR.UTF-8
90O galeon é um browser para o GNOME baseado no mozilla.
9fbaabf1 91
226ff634 92%prep
e8fd2a67 93%setup -q
a1e801cb 94%patch0 -p1
fa811b3a 95%patch1 -p1
e1860ed5 96%if "%{pld_release}" == "ti"
b7d5f870 97%patch2 -p1
e1860ed5 98%else
b7d5f870 99%patch3 -p1
e1860ed5 100%endif
b7d5f870 101%patch4 -p1
8b6dc068 102%patch5 -p1
8248c38e 103
a2e266ba 104sed -i -e 's#sr\@Latn#sr\@latin#' configure.in
2e05a038
MB
105mv po/sr\@{Latn,latin}.po
106
8248c38e
JB
107# regenerate - didn't compile with ORBit2 2.7.2
108cd idl
109orbit-idl-2 -I /usr/share/idl/bonobo-2.0 -I /usr/share/idl/bonobo-activation-2.0 Galeon*.idl
110mv Galeon*.[ch] ../src
226ff634 111
112%build
20963eb4 113cp /usr/share/automake/mkinstalldirs .
e2973888 114%{__glib_gettextize}
115%{__intltoolize}
52ccbbd8 116%{__libtoolize}
ec436fe6 117%{__aclocal}
118%{__autoheader}
085c6ea2 119%{__autoconf}
120%{__automake}
ded7c460 121%configure \
1a9537ee 122 --disable-schemas-install \
c3340658 123 %if %{with nautilus}
ec436fe6 124 --enable-nautilus-view=yes
c3340658 125 %else
126 --enable-nautilus-view=no
127 %endif
0d007d1e 128%{__make}
226ff634 129
130%install
131rm -rf $RPM_BUILD_ROOT
5da23fb0 132install -d $RPM_BUILD_ROOT%{_mandir}/man1
226ff634 133
7566ce2b 134%{__make} install \
1ba7666d 135 DESTDIR=$RPM_BUILD_ROOT
03f3eae7 136
c45a9ff3 137install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
138
1272381f 139# No components installed now.
140#rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/*.la
8248c38e
JB
141
142# galeon-2.0.mo, but gnome/help/galeon
2e05a038 143%find_lang galeon-2.0 --with-gnome --with-omf --all-name
2d5caf1b 144
2cf11446
JB
145%clean
146rm -rf $RPM_BUILD_ROOT
147
6b35b990 148%post
e2973888 149%scrollkeeper_update_post
150%gconf_schema_install galeon.schemas
151%update_desktop_database_post
152
153%preun
154%gconf_schema_uninstall galeon.schemas
6b35b990 155
a7efbce1 156%postun
e2973888 157%scrollkeeper_update_postun
158%update_desktop_database_postun
f22134a1 159
ec436fe6 160%files -f galeon-2.0.lang
73bb1b02 161%defattr(644,root,root,755)
b4cb549c 162%doc AUTHORS ChangeLog NEWS README*
73bb1b02 163%attr(755,root,root) %{_bindir}/*
1b620192 164%{_libdir}/bonobo/servers/*
2d5caf1b 165%{_datadir}/galeon
90bf16f3 166%{_desktopdir}/*.desktop
ec436fe6 167%{_datadir}/gnome-2.0/ui/*.xml
e3068898 168%{_datadir}/sounds/galeon
94df82ba 169%{_pixmapsdir}/*
2e05a038 170%{_sysconfdir}/gconf/schemas/galeon.schemas
55587936 171%{_sysconfdir}/sound/events/*
172%{_mandir}/man1/*
This page took 0.791981 seconds and 4 git commands to generate.