3 %bcond_with webkit # Build with experimental webkit suppor 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: 3276f4ca4bef98606f84fc64ce46c9c4
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.311
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
71 %requires_eq xulrunner
73 Obsoletes: python-epiphany
74 # sr@Latn vs. sr@latin
75 Conflicts: glibc-misc < 6:2.7
76 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79 # can be provided by mozilla or mozilla-embedded
80 %define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
81 # we have strict deps for it
82 %define _noautoreq libxpcom.so
86 GNOME browser based on Gecko (Mozilla rendering engine).
88 %description -l es.UTF-8
89 Navigador Web de GNOME basado en Gecko (el engine plasmante de
92 %description -l pl.UTF-8
93 Epiphany jest przeglądarką WWW bazującą na Gecko (mechanizmie
94 interpretacji stron Mozilli).
97 Summary: Epiphany header files
98 Summary(es.UTF-8): Ficheros de cabecera de Epiphany
99 Summary(pl.UTF-8): Pliki nagłówkowe Epiphany
100 Group: X11/Applications/Networking
101 # doesn't require base
102 Requires: gtk+2-devel >= 2:2.12.0
103 Requires: libxslt-devel >= 1.1.20
106 Epiphany header files for plugin development.
108 %description devel -l es.UTF-8
109 Ficheros de cabecera de Epiphany para desarrollar plug-ins.
111 %description devel -l pl.UTF-8
112 Pliki nagłówkowe Epiphany do tworzenia wtyczek.
115 Summary: Epiphany API documentation
116 Summary(pl.UTF-8): Dokumentacja API Epiphany
118 Requires: gtk-doc-common
121 Epiphany API documentation.
123 %description apidocs -l pl.UTF-8
124 Dokumentacja API Epiphany.
130 %if "%{pld_release}" == "ti"
141 %{__gnome_doc_prepare}
142 %{__gnome_doc_common}
151 --disable-schemas-install \
153 %{?!with_webkit:--enable-gtk-doc} \
154 --enable-network-manager \
157 --with-engine=webkit \
159 --with-gecko=libxul-embedding \
161 --with-html-dir=%{_gtkdocdir}
165 rm -rf $RPM_BUILD_ROOT
166 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/%{basever}/extensions
169 DESTDIR=$RPM_BUILD_ROOT \
170 HTML_DIR=%{_gtkdocdir}
172 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/%{basever}/plugins/*.la
173 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/LowContrastLargePrint
175 %find_lang %{name} --with-gnome --with-omf
178 rm -rf $RPM_BUILD_ROOT
181 %gconf_schema_install epiphany-fonts.schemas
182 %gconf_schema_install epiphany-lockdown.schemas
183 %gconf_schema_install epiphany-pango.schemas
184 %gconf_schema_install epiphany.schemas
185 %scrollkeeper_update_post
186 %update_desktop_database_post
187 %update_icon_cache hicolor
190 %gconf_schema_uninstall epiphany-fonts.schemas
191 %gconf_schema_uninstall epiphany-lockdown.schemas
192 %gconf_schema_uninstall epiphany-pango.schemas
193 %gconf_schema_uninstall epiphany.schemas
196 %scrollkeeper_update_postun
197 %update_desktop_database_postun
198 %update_icon_cache hicolor
200 %files -f %{name}.lang
201 %defattr(644,root,root,755)
202 %doc AUTHORS ChangeLog NEWS README
203 %attr(755,root,root) %{_bindir}/*
204 %{_datadir}/dbus-1/services/*.service
206 %{_desktopdir}/*.desktop
207 %{_iconsdir}/*/*/apps/*.*
208 %{_sysconfdir}/gconf/schemas/epiphany-fonts.schemas
209 %{_sysconfdir}/gconf/schemas/epiphany-lockdown.schemas
210 %{_sysconfdir}/gconf/schemas/epiphany-pango.schemas
211 %{_sysconfdir}/gconf/schemas/epiphany.schemas
212 %dir %{_libdir}/%{name}
213 %dir %{_libdir}/%{name}/%{basever}
214 %dir %{_libdir}/%{name}/%{basever}/extensions
215 %if %{without webkit}
216 %dir %{_libdir}/%{name}/%{basever}/plugins
217 %attr(755,root,root) %{_libdir}/epiphany/%{basever}/plugins/*.so*
222 %defattr(644,root,root,755)
224 %{_includedir}/epiphany
225 %{_pkgconfigdir}/*.pc
226 %{_datadir}/pygtk/*/defs/epiphany.defs
229 %defattr(644,root,root,755)