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