3 %bcond_with webkit # Build with experimental webkit support instead of xulrunner
6 Summary: Epiphany - gecko-based GNOME web browser
7 Summary(es.UTF-8): Epiphany - navigador Web de GNOME basado en gecko
8 Summary(pl.UTF-8): Epiphany - przeglądarka WWW dla GNOME
13 Group: X11/Applications/Networking
14 Source0: http://ftp.gnome.org/pub/GNOME/sources/epiphany/2.24/%{name}-%{version}.tar.bz2
15 # Source0-md5: af51614c7b78f8b8c68e9ece3d8f4d8f
16 Patch0: %{name}-pld-homepage.patch
17 Patch1: %{name}-configure.patch
18 Patch2: %{name}-ti-agent.patch
19 Patch3: %{name}-agent.patch
20 Patch4: %{name}-lt.patch
21 Patch5: %{name}-libxul.patch
22 Patch7: %{name}-build_date.patch
23 Patch8: %{name}-xulrunner-plugins-dir.patch
24 URL: http://www.gnome.org/projects/epiphany/
25 BuildRequires: GConf2-devel >= 2.20.0
26 BuildRequires: NetworkManager-devel
27 BuildRequires: ORBit2-devel >= 1:2.14.9
28 BuildRequires: autoconf >= 2.59
29 BuildRequires: automake >= 1:1.9
30 BuildRequires: dbus-glib-devel >= 0.73
31 BuildRequires: enchant-devel >= 1.0
32 BuildRequires: gnome-common >= 2.20.0
33 BuildRequires: gnome-desktop-devel >= 2.20.0
34 BuildRequires: gnome-doc-utils >= 0.12.0
35 BuildRequires: gnome-vfs2-devel >= 2.22.0
36 BuildRequires: gtk+2-devel >= 2:2.12.0
37 BuildRequires: gtk-doc >= 1.8
39 BuildRequires: gtk-webkit-devel
40 BuildRequires: libssh2-devel
42 BuildRequires: intltool >= 0.36.2
43 BuildRequires: iso-codes >= 0.53
44 BuildRequires: libglade2-devel >= 1:2.6.2
45 BuildRequires: libgnomeprintui-devel >= 2.18.0
46 BuildRequires: libgnomeui-devel >= 2.22.0
47 BuildRequires: libtool
48 BuildRequires: libxml2-devel >= 1:2.6.28
49 BuildRequires: libxslt-devel >= 1.1.20
50 BuildRequires: pkgconfig
51 BuildRequires: python-gnome-devel >= 2.20.0
52 BuildRequires: python-pygtk-devel >= 2:2.12.0
53 BuildRequires: rpm >= 4.4.9-56
54 BuildRequires: rpmbuild(find_lang) >= 1.23
55 BuildRequires: rpmbuild(macros) >= 1.364
56 BuildRequires: scrollkeeper
57 BuildRequires: startup-notification-devel >= 0.8
59 BuildRequires: xulrunner
60 BuildRequires: xulrunner-devel >= 1.9.0.1-1
62 Requires(post,postun): desktop-file-utils
63 Requires(post,postun): gtk+2
64 Requires(post,postun): hicolor-icon-theme
65 Requires(post,postun): scrollkeeper
66 Requires(post,preun): GConf2
67 Requires: dbus >= 1.0.2
68 Requires: gnome-icon-theme >= 2.22.0
69 Requires: libgnomeui >= 2.22.0
72 Requires: browser-plugins >= 2.0
73 Requires: browser-plugins(%{_target_base_arch})
74 %requires_eq xulrunner
76 Obsoletes: python-epiphany
77 # sr@Latn vs. sr@latin
78 Conflicts: glibc-misc < 6:2.7
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82 # can be provided by mozilla or mozilla-embedded
83 %define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
84 # we have strict deps for it
85 %define _noautoreq libxpcom.so
89 GNOME browser based on Gecko (Mozilla rendering engine).
91 %description -l es.UTF-8
92 Navigador Web de GNOME basado en Gecko (el engine plasmante de
95 %description -l pl.UTF-8
96 Epiphany jest przeglądarką WWW bazującą na Gecko (mechanizmie
97 interpretacji stron Mozilli).
100 Summary: Epiphany header files
101 Summary(es.UTF-8): Ficheros de cabecera de Epiphany
102 Summary(pl.UTF-8): Pliki nagłówkowe Epiphany
103 Group: X11/Applications/Networking
104 # doesn't require base
105 Requires: gtk+2-devel >= 2:2.12.0
106 Requires: libxslt-devel >= 1.1.20
109 Epiphany header files for plugin development.
111 %description devel -l es.UTF-8
112 Ficheros de cabecera de Epiphany para desarrollar plug-ins.
114 %description devel -l pl.UTF-8
115 Pliki nagłówkowe Epiphany do tworzenia wtyczek.
118 Summary: Epiphany API documentation
119 Summary(pl.UTF-8): Dokumentacja API Epiphany
121 Requires: gtk-doc-common
124 Epiphany API documentation.
126 %description apidocs -l pl.UTF-8
127 Dokumentacja API Epiphany.
133 %if "%{pld_release}" == "ti"
144 %{__gnome_doc_prepare}
145 %{__gnome_doc_common}
154 --disable-schemas-install \
156 %{!?with_webkit:--enable-gtk-doc} \
157 --enable-network-manager \
160 --with-engine=webkit \
162 --with-gecko=libxul-embedding \
164 --with-html-dir=%{_gtkdocdir}
168 rm -rf $RPM_BUILD_ROOT
169 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/%{basever}/extensions
171 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/%{basever}/plugins
174 DESTDIR=$RPM_BUILD_ROOT \
175 HTML_DIR=%{_gtkdocdir}
177 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/%{basever}/plugins/*.la
178 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/LowContrastLargePrint
180 %find_lang %{name} --with-gnome --with-omf
183 rm -rf $RPM_BUILD_ROOT
186 %gconf_schema_install epiphany-fonts.schemas
187 %gconf_schema_install epiphany-lockdown.schemas
188 %gconf_schema_install epiphany-pango.schemas
189 %gconf_schema_install epiphany.schemas
190 %scrollkeeper_update_post
191 %update_desktop_database_post
192 %update_icon_cache hicolor
193 %if %{without webkit}
194 %update_browser_plugins
198 %gconf_schema_uninstall epiphany-fonts.schemas
199 %gconf_schema_uninstall epiphany-lockdown.schemas
200 %gconf_schema_uninstall epiphany-pango.schemas
201 %gconf_schema_uninstall epiphany.schemas
204 %scrollkeeper_update_postun
205 %update_desktop_database_postun
206 %update_icon_cache hicolor
207 %if %{without webkit}
208 if [ "$1" = 0 ]; then
209 %update_browser_plugins
213 %files -f %{name}.lang
214 %defattr(644,root,root,755)
215 %doc AUTHORS ChangeLog NEWS README
217 %if %{without webkit}
219 %{_browserpluginsconfdir}/browsers.d/%{name}.*
220 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
223 %attr(755,root,root) %{_bindir}/*
224 %{_datadir}/dbus-1/services/*.service
226 %{_desktopdir}/*.desktop
227 %{_iconsdir}/*/*/apps/*.*
228 %{_sysconfdir}/gconf/schemas/epiphany-fonts.schemas
229 %{_sysconfdir}/gconf/schemas/epiphany-lockdown.schemas
230 %{_sysconfdir}/gconf/schemas/epiphany-pango.schemas
231 %{_sysconfdir}/gconf/schemas/epiphany.schemas
232 %dir %{_libdir}/%{name}
233 %dir %{_libdir}/%{name}/%{basever}
234 %dir %{_libdir}/%{name}/%{basever}/extensions
235 %if %{without webkit}
236 %dir %{_libdir}/%{name}/%{basever}/plugins
237 %attr(755,root,root) %{_libdir}/epiphany/%{basever}/plugins/*.so*
242 %defattr(644,root,root,755)
244 %{_includedir}/epiphany
245 %{_pkgconfigdir}/*.pc
246 %{_datadir}/pygtk/*/defs/epiphany.defs
249 %defattr(644,root,root,755)