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