]>
Commit | Line | Data |
---|---|---|
3428cfce | 1 | # |
3428cfce | 2 | #Conditional build: |
a84d07de | 3 | %bcond_with webkit # Build with experimental webkit support instead of xulrunner |
3428cfce | 4 | # |
d5a66c65 | 5 | %define basever 2.26 |
b214bb6b | 6 | Summary: Epiphany - gecko-based GNOME web browser |
1dda78a4 ER |
7 | Summary(es.UTF-8): Epiphany - navigador Web de GNOME basado en gecko |
8 | Summary(pl.UTF-8): Epiphany - przeglądarka WWW dla GNOME | |
b214bb6b | 9 | Name: epiphany |
5ef94e40 | 10 | Version: 2.26.3 |
4e32f848 | 11 | Release: 2 |
64cfd84f | 12 | License: GPL v2 |
b214bb6b | 13 | Group: X11/Applications/Networking |
d5a66c65 | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/epiphany/2.26/%{name}-%{version}.tar.bz2 |
5ef94e40 | 15 | # Source0-md5: 16f44012bc376077e1443e049d725847 |
b3cca493 MB |
16 | Patch0: %{name}-pld-homepage.patch |
17 | Patch1: %{name}-configure.patch | |
acf50bed | 18 | Patch2: %{name}-ti-agent.patch |
19 | Patch3: %{name}-agent.patch | |
87babfe8 | 20 | Patch4: %{name}-lt.patch |
d1054ee8 | 21 | Patch5: %{name}-libxul.patch |
e7c3d2b1 | 22 | Patch7: %{name}-build_date.patch |
09c83199 | 23 | Patch8: %{name}-xulrunner-plugins-dir.patch |
3adf4a38 | 24 | URL: http://www.gnome.org/projects/epiphany/ |
2f518579 | 25 | BuildRequires: GConf2-devel >= 2.26.0 |
3b036307 | 26 | BuildRequires: NetworkManager-devel |
fd3d9ecb | 27 | BuildRequires: autoconf >= 2.59 |
9c7631b4 | 28 | BuildRequires: automake >= 1:1.9 |
2f518579 | 29 | BuildRequires: avahi-gobject-devel >= 0.6 |
9c7631b4 | 30 | BuildRequires: dbus-glib-devel >= 0.73 |
556ff656 | 31 | BuildRequires: enchant-devel >= 1.0 |
2f518579 | 32 | BuildRequires: gettext-devel |
b3cca493 | 33 | BuildRequires: gnome-common >= 2.20.0 |
2f518579 | 34 | BuildRequires: gnome-desktop-devel >= 2.26.0 |
b3cca493 | 35 | BuildRequires: gnome-doc-utils >= 0.12.0 |
d5a66c65 | 36 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
9c7631b4 | 37 | BuildRequires: gtk-doc >= 1.8 |
3428cfce PZ |
38 | %if %{with webkit} |
39 | BuildRequires: gtk-webkit-devel | |
40 | BuildRequires: libssh2-devel | |
41 | %endif | |
2f518579 | 42 | BuildRequires: intltool >= 0.40.0 |
01f610e6 | 43 | BuildRequires: iso-codes >= 0.53 |
d5a66c65 | 44 | BuildRequires: libcanberra-gtk-devel >= 0.3 |
b3cca493 | 45 | BuildRequires: libglade2-devel >= 1:2.6.2 |
2f518579 MB |
46 | BuildRequires: libgnomeui-devel >= 2.24.0 |
47 | BuildRequires: libnotify-devel >= 0.4 | |
47ba0170 | 48 | BuildRequires: libtool |
2ee625f0 | 49 | BuildRequires: libxml2-devel >= 1:2.6.28 |
9c7631b4 | 50 | BuildRequires: libxslt-devel >= 1.1.20 |
64cfd84f | 51 | BuildRequires: pkgconfig |
b3cca493 MB |
52 | BuildRequires: python-gnome-devel >= 2.20.0 |
53 | BuildRequires: python-pygtk-devel >= 2:2.12.0 | |
acf50bed | 54 | BuildRequires: rpm >= 4.4.9-56 |
5c860df1 | 55 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
a84d07de | 56 | BuildRequires: rpmbuild(macros) >= 1.364 |
c305e9cc | 57 | BuildRequires: scrollkeeper |
fec44160 | 58 | BuildRequires: startup-notification-devel >= 0.8 |
3428cfce | 59 | %if %{without webkit} |
9c7631b4 | 60 | BuildRequires: xulrunner |
0cf5f9f8 | 61 | BuildRequires: xulrunner-devel >= 1.9.0.1-1 |
3428cfce | 62 | %endif |
6c81e5d5 | 63 | Requires(post,postun): desktop-file-utils |
c4601149 | 64 | Requires(post,postun): gtk+2 |
d1e1b12f | 65 | Requires(post,postun): hicolor-icon-theme |
e6dfa88b | 66 | Requires(post,postun): scrollkeeper |
9c7631b4 MB |
67 | Requires(post,preun): GConf2 |
68 | Requires: dbus >= 1.0.2 | |
2f518579 MB |
69 | Requires: gnome-icon-theme >= 2.26.0 |
70 | Requires: libgnomeui >= 2.24.0 | |
a84d07de | 71 | Provides: wwwbrowser |
3428cfce | 72 | %if %{without webkit} |
a84d07de ER |
73 | Requires: browser-plugins >= 2.0 |
74 | Requires: browser-plugins(%{_target_base_arch}) | |
8353110f | 75 | %requires_eq xulrunner |
3428cfce | 76 | %endif |
ad062fc6 | 77 | Obsoletes: python-epiphany |
84d82d33 | 78 | # sr@Latn vs. sr@latin |
79 | Conflicts: glibc-misc < 6:2.7 | |
b214bb6b | 80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
81 | ||
3428cfce | 82 | %if %{without webkit} |
b214bb6b | 83 | # can be provided by mozilla or mozilla-embedded |
84 | %define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so | |
ac1e9f33 MB |
85 | # we have strict deps for it |
86 | %define _noautoreq libxpcom.so | |
3428cfce | 87 | %endif |
b214bb6b | 88 | |
89 | %description | |
584d60bd | 90 | GNOME browser based on Gecko (Mozilla rendering engine). |
b214bb6b | 91 | |
bbabfc8c | 92 | %description -l es.UTF-8 |
9c7631b4 MB |
93 | Navigador Web de GNOME basado en Gecko (el engine plasmante de |
94 | Mozilla). | |
3adf4a38 | 95 | |
bbabfc8c JR |
96 | %description -l pl.UTF-8 |
97 | Epiphany jest przeglądarką WWW bazującą na Gecko (mechanizmie | |
b214bb6b | 98 | interpretacji stron Mozilli). |
99 | ||
ce9f0285 | 100 | %package devel |
101 | Summary: Epiphany header files | |
1dda78a4 ER |
102 | Summary(es.UTF-8): Ficheros de cabecera de Epiphany |
103 | Summary(pl.UTF-8): Pliki nagłówkowe Epiphany | |
ce9f0285 | 104 | Group: X11/Applications/Networking |
cc8a9ea0 | 105 | # doesn't require base |
2f518579 MB |
106 | Requires: gtk+2-devel >= 2:2.16.0 |
107 | Requires: libxml2-devel >= 1:2.6.28 | |
ce9f0285 | 108 | |
109 | %description devel | |
110 | Epiphany header files for plugin development. | |
111 | ||
bbabfc8c | 112 | %description devel -l es.UTF-8 |
3adf4a38 | 113 | Ficheros de cabecera de Epiphany para desarrollar plug-ins. |
114 | ||
bbabfc8c JR |
115 | %description devel -l pl.UTF-8 |
116 | Pliki nagłówkowe Epiphany do tworzenia wtyczek. | |
ce9f0285 | 117 | |
c8df5897 | 118 | %package apidocs |
119 | Summary: Epiphany API documentation | |
1dda78a4 | 120 | Summary(pl.UTF-8): Dokumentacja API Epiphany |
c8df5897 | 121 | Group: Documentation |
122 | Requires: gtk-doc-common | |
123 | ||
124 | %description apidocs | |
125 | Epiphany API documentation. | |
126 | ||
bbabfc8c | 127 | %description apidocs -l pl.UTF-8 |
c8df5897 | 128 | Dokumentacja API Epiphany. |
129 | ||
b214bb6b | 130 | %prep |
c27c16d4 | 131 | %setup -q |
b3cca493 | 132 | %patch0 -p1 |
477bd04e | 133 | %patch1 -p1 |
acf50bed | 134 | %if "%{pld_release}" == "ti" |
d94aa458 | 135 | %patch2 -p1 |
acf50bed | 136 | %else |
137 | %patch3 -p1 | |
138 | %endif | |
87babfe8 | 139 | %patch4 -p1 |
d1054ee8 | 140 | %patch5 -p1 |
e7c3d2b1 | 141 | %patch7 -p1 |
09c83199 | 142 | %patch8 -p1 |
b214bb6b | 143 | |
144 | %build | |
c8df5897 | 145 | %{__gnome_doc_prepare} |
cabc9554 | 146 | %{__gnome_doc_common} |
9d9c32a1 | 147 | %{__glib_gettextize} |
148 | %{__intltoolize} | |
b214bb6b | 149 | %{__libtoolize} |
cabc9554 | 150 | %{__aclocal} -I m4 |
b214bb6b | 151 | %{__autoheader} |
152 | %{__automake} | |
153 | %{__autoconf} | |
b214bb6b | 154 | %configure \ |
155 | --disable-schemas-install \ | |
cabc9554 | 156 | --enable-dbus \ |
a84d07de | 157 | %{!?with_webkit:--enable-gtk-doc} \ |
3428cfce | 158 | --enable-network-manager \ |
d1054ee8 | 159 | --enable-python \ |
a84d07de | 160 | %if %{with webkit} |
d1054ee8 | 161 | --with-engine=webkit \ |
a84d07de | 162 | %else |
d1054ee8 | 163 | --with-gecko=libxul-embedding \ |
a84d07de | 164 | %endif |
10e31070 | 165 | --with-html-dir=%{_gtkdocdir} |
479b2587 | 166 | %{__make} |
b214bb6b | 167 | |
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
fd3ae4b7 | 170 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/%{basever}/extensions |
b214bb6b | 171 | |
a84d07de ER |
172 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/%{basever}/plugins |
173 | ||
b214bb6b | 174 | %{__make} install \ |
10e31070 | 175 | DESTDIR=$RPM_BUILD_ROOT \ |
176 | HTML_DIR=%{_gtkdocdir} | |
b214bb6b | 177 | |
fd3ae4b7 | 178 | rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/%{basever}/plugins/*.la |
f16457d3 | 179 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/LowContrastLargePrint |
e6dfa88b | 180 | |
359d4f9e | 181 | %find_lang %{name} --with-gnome --with-omf |
b214bb6b | 182 | |
183 | %clean | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %post | |
fd3ae4b7 | 187 | %gconf_schema_install epiphany-fonts.schemas |
9d9c32a1 | 188 | %gconf_schema_install epiphany-lockdown.schemas |
3120beb0 | 189 | %gconf_schema_install epiphany-pango.schemas |
9d9c32a1 | 190 | %gconf_schema_install epiphany.schemas |
191 | %scrollkeeper_update_post | |
192 | %update_desktop_database_post | |
c8df5897 | 193 | %update_icon_cache hicolor |
a84d07de ER |
194 | %if %{without webkit} |
195 | %update_browser_plugins | |
196 | %endif | |
6c81e5d5 | 197 | |
198 | %preun | |
fd3ae4b7 | 199 | %gconf_schema_uninstall epiphany-fonts.schemas |
9d9c32a1 | 200 | %gconf_schema_uninstall epiphany-lockdown.schemas |
3120beb0 | 201 | %gconf_schema_uninstall epiphany-pango.schemas |
9d9c32a1 | 202 | %gconf_schema_uninstall epiphany.schemas |
b214bb6b | 203 | |
e6dfa88b | 204 | %postun |
9d9c32a1 | 205 | %scrollkeeper_update_postun |
206 | %update_desktop_database_postun | |
c8df5897 | 207 | %update_icon_cache hicolor |
a84d07de ER |
208 | %if %{without webkit} |
209 | if [ "$1" = 0 ]; then | |
210 | %update_browser_plugins | |
46ddfe88 | 211 | fi |
a84d07de | 212 | %endif |
0c3c17e3 | 213 | |
7bc0643f | 214 | %files -f %{name}.lang |
b214bb6b | 215 | %defattr(644,root,root,755) |
216 | %doc AUTHORS ChangeLog NEWS README | |
a84d07de ER |
217 | |
218 | %if %{without webkit} | |
219 | # browser plugins v2 | |
220 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
221 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
222 | %endif | |
223 | ||
b214bb6b | 224 | %attr(755,root,root) %{_bindir}/* |
fd3ae4b7 | 225 | %{_datadir}/dbus-1/services/*.service |
b214bb6b | 226 | %{_datadir}/%{name} |
4d4e973b | 227 | %{_desktopdir}/*.desktop |
3428cfce | 228 | %{_iconsdir}/*/*/apps/*.* |
fd3ae4b7 | 229 | %{_sysconfdir}/gconf/schemas/epiphany-fonts.schemas |
cabc9554 | 230 | %{_sysconfdir}/gconf/schemas/epiphany-lockdown.schemas |
3120beb0 | 231 | %{_sysconfdir}/gconf/schemas/epiphany-pango.schemas |
cabc9554 | 232 | %{_sysconfdir}/gconf/schemas/epiphany.schemas |
cabc9554 | 233 | %dir %{_libdir}/%{name} |
fd3ae4b7 | 234 | %dir %{_libdir}/%{name}/%{basever} |
235 | %dir %{_libdir}/%{name}/%{basever}/extensions | |
3428cfce | 236 | %if %{without webkit} |
fd3ae4b7 | 237 | %dir %{_libdir}/%{name}/%{basever}/plugins |
238 | %attr(755,root,root) %{_libdir}/epiphany/%{basever}/plugins/*.so* | |
3428cfce | 239 | %endif |
9405fbf9 | 240 | %{_mandir}/man1/* |
ce9f0285 | 241 | |
242 | %files devel | |
243 | %defattr(644,root,root,755) | |
fd3ae4b7 | 244 | %{_aclocaldir}/* |
cabc9554 | 245 | %{_includedir}/epiphany |
084a89d6 | 246 | %{_pkgconfigdir}/*.pc |
cabc9554 | 247 | %{_datadir}/pygtk/*/defs/epiphany.defs |
c8df5897 | 248 | |
249 | %files apidocs | |
250 | %defattr(644,root,root,755) | |
10e31070 | 251 | %{_gtkdocdir}/* |