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