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.22/%{name}-%{version}.tar.bz2
15 # Source0-md5: f90dc0a01dae58dfa393b17bce717d3c
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 URL: http://www.gnome.org/projects/epiphany/
22 BuildRequires: GConf2-devel >= 2.20.0
23 BuildRequires: NetworkManager-devel
24 BuildRequires: ORBit2-devel >= 1:2.14.9
25 BuildRequires: autoconf >= 2.59
26 BuildRequires: automake >= 1:1.9
27 BuildRequires: dbus-glib-devel >= 0.73
28 BuildRequires: enchant-devel >= 1.0
29 BuildRequires: gnome-common >= 2.20.0
30 BuildRequires: gnome-desktop-devel >= 2.20.0
31 BuildRequires: gnome-doc-utils >= 0.12.0
32 BuildRequires: gnome-vfs2-devel >= 2.22.0
33 BuildRequires: gtk+2-devel >= 2:2.12.0
34 BuildRequires: gtk-doc >= 1.8
36 BuildRequires: gtk-webkit-devel
37 BuildRequires: libssh2-devel
39 BuildRequires: intltool >= 0.36.2
40 BuildRequires: iso-codes >= 0.53
41 BuildRequires: libglade2-devel >= 1:2.6.2
42 BuildRequires: libgnomeprintui-devel >= 2.18.0
43 BuildRequires: libgnomeui-devel >= 2.22.0
44 BuildRequires: libtool
45 BuildRequires: libxml2-devel >= 1:2.6.28
46 BuildRequires: libxslt-devel >= 1.1.20
47 BuildRequires: pkgconfig
48 BuildRequires: python-gnome-devel >= 2.20.0
49 BuildRequires: python-pygtk-devel >= 2:2.12.0
50 BuildRequires: rpm >= 4.4.9-56
51 BuildRequires: rpmbuild(find_lang) >= 1.23
52 BuildRequires: rpmbuild(macros) >= 1.311
53 BuildRequires: scrollkeeper
54 BuildRequires: startup-notification-devel >= 0.8
56 BuildRequires: xulrunner
57 BuildRequires: xulrunner-devel >= 1.8.1.6-1.20070731.2
59 Requires(post,postun): desktop-file-utils
60 Requires(post,postun): gtk+2
61 Requires(post,postun): hicolor-icon-theme
62 Requires(post,postun): scrollkeeper
63 Requires(post,preun): GConf2
64 Requires: dbus >= 1.0.2
65 Requires: gnome-icon-theme >= 2.22.0
66 Requires: libgnomeui >= 2.22.0
68 %requires_eq xulrunner
70 Obsoletes: python-epiphany
71 # sr@Latn vs. sr@latin
72 Conflicts: glibc-misc < 6:2.7
73 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76 # can be provided by mozilla or mozilla-embedded
77 %define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
78 # we have strict deps for it
79 %define _noautoreq libxpcom.so
83 GNOME browser based on Gecko (Mozilla rendering engine).
85 %description -l es.UTF-8
86 Navigador Web de GNOME basado en Gecko (el engine plasmante de
89 %description -l pl.UTF-8
90 Epiphany jest przeglądarką WWW bazującą na Gecko (mechanizmie
91 interpretacji stron Mozilli).
94 Summary: Epiphany header files
95 Summary(es.UTF-8): Ficheros de cabecera de Epiphany
96 Summary(pl.UTF-8): Pliki nagłówkowe Epiphany
97 Group: X11/Applications/Networking
98 # doesn't require base
99 Requires: gtk+2-devel >= 2:2.12.0
100 Requires: libxslt-devel >= 1.1.20
103 Epiphany header files for plugin development.
105 %description devel -l es.UTF-8
106 Ficheros de cabecera de Epiphany para desarrollar plug-ins.
108 %description devel -l pl.UTF-8
109 Pliki nagłówkowe Epiphany do tworzenia wtyczek.
112 Summary: Epiphany API documentation
113 Summary(pl.UTF-8): Dokumentacja API Epiphany
115 Requires: gtk-doc-common
118 Epiphany API documentation.
120 %description apidocs -l pl.UTF-8
121 Dokumentacja API Epiphany.
127 %if "%{pld_release}" == "ti"
134 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
135 mv po/sr@{Latn,latin}.po
138 %{__gnome_doc_prepare}
139 %{__gnome_doc_common}
148 --disable-schemas-install \
150 %{?!with_webkit:--enable-gtk-doc} \
151 --enable-network-manager \
153 --enable-spell-checker \
154 %{?with_webkit:--with-engine=webkit} \
155 --with-html-dir=%{_gtkdocdir}
159 rm -rf $RPM_BUILD_ROOT
160 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/%{basever}/extensions
163 DESTDIR=$RPM_BUILD_ROOT \
164 HTML_DIR=%{_gtkdocdir}
166 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/%{basever}/plugins/*.la
167 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/LowContrastLargePrint
169 %find_lang %{name} --with-gnome --with-omf
172 rm -rf $RPM_BUILD_ROOT
175 %gconf_schema_install epiphany-fonts.schemas
176 %gconf_schema_install epiphany-lockdown.schemas
177 %gconf_schema_install epiphany-pango.schemas
178 %gconf_schema_install epiphany.schemas
179 %scrollkeeper_update_post
180 %update_desktop_database_post
181 %update_icon_cache hicolor
184 %gconf_schema_uninstall epiphany-fonts.schemas
185 %gconf_schema_uninstall epiphany-lockdown.schemas
186 %gconf_schema_uninstall epiphany-pango.schemas
187 %gconf_schema_uninstall epiphany.schemas
190 %scrollkeeper_update_postun
191 %update_desktop_database_postun
192 %update_icon_cache hicolor
194 %files -f %{name}.lang
195 %defattr(644,root,root,755)
196 %doc AUTHORS ChangeLog NEWS README
197 %attr(755,root,root) %{_bindir}/*
198 %{_datadir}/dbus-1/services/*.service
200 %{_desktopdir}/*.desktop
201 %{_iconsdir}/*/*/apps/*.*
202 %{_sysconfdir}/gconf/schemas/epiphany-fonts.schemas
203 %{_sysconfdir}/gconf/schemas/epiphany-lockdown.schemas
204 %{_sysconfdir}/gconf/schemas/epiphany-pango.schemas
205 %{_sysconfdir}/gconf/schemas/epiphany.schemas
206 %dir %{_libdir}/%{name}
207 %dir %{_libdir}/%{name}/%{basever}
208 %dir %{_libdir}/%{name}/%{basever}/extensions
209 %if %{without webkit}
210 %dir %{_libdir}/%{name}/%{basever}/plugins
211 %attr(755,root,root) %{_libdir}/epiphany/%{basever}/plugins/*.so*
216 %defattr(644,root,root,755)
218 %{_includedir}/epiphany
219 %{_pkgconfigdir}/*.pc
220 %{_datadir}/pygtk/*/defs/epiphany.defs
223 %defattr(644,root,root,755)