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