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