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