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