]> git.pld-linux.org Git - packages/epiphany.git/blame - epiphany.spec
- release 2
[packages/epiphany.git] / epiphany.spec
CommitLineData
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 6Summary: Epiphany - gecko-based GNOME web browser
1dda78a4
ER
7Summary(es.UTF-8): Epiphany - navigador Web de GNOME basado en gecko
8Summary(pl.UTF-8): Epiphany - przeglądarka WWW dla GNOME
b214bb6b 9Name: epiphany
5ef94e40 10Version: 2.26.3
4e32f848 11Release: 2
64cfd84f 12License: GPL v2
b214bb6b 13Group: X11/Applications/Networking
d5a66c65 14Source0: http://ftp.gnome.org/pub/GNOME/sources/epiphany/2.26/%{name}-%{version}.tar.bz2
5ef94e40 15# Source0-md5: 16f44012bc376077e1443e049d725847
b3cca493
MB
16Patch0: %{name}-pld-homepage.patch
17Patch1: %{name}-configure.patch
acf50bed 18Patch2: %{name}-ti-agent.patch
19Patch3: %{name}-agent.patch
87babfe8 20Patch4: %{name}-lt.patch
d1054ee8 21Patch5: %{name}-libxul.patch
e7c3d2b1 22Patch7: %{name}-build_date.patch
09c83199 23Patch8: %{name}-xulrunner-plugins-dir.patch
3adf4a38 24URL: http://www.gnome.org/projects/epiphany/
2f518579 25BuildRequires: GConf2-devel >= 2.26.0
3b036307 26BuildRequires: NetworkManager-devel
fd3d9ecb 27BuildRequires: autoconf >= 2.59
9c7631b4 28BuildRequires: automake >= 1:1.9
2f518579 29BuildRequires: avahi-gobject-devel >= 0.6
9c7631b4 30BuildRequires: dbus-glib-devel >= 0.73
556ff656 31BuildRequires: enchant-devel >= 1.0
2f518579 32BuildRequires: gettext-devel
b3cca493 33BuildRequires: gnome-common >= 2.20.0
2f518579 34BuildRequires: gnome-desktop-devel >= 2.26.0
b3cca493 35BuildRequires: gnome-doc-utils >= 0.12.0
d5a66c65 36BuildRequires: gtk+2-devel >= 2:2.16.0
9c7631b4 37BuildRequires: gtk-doc >= 1.8
3428cfce
PZ
38%if %{with webkit}
39BuildRequires: gtk-webkit-devel
40BuildRequires: libssh2-devel
41%endif
2f518579 42BuildRequires: intltool >= 0.40.0
01f610e6 43BuildRequires: iso-codes >= 0.53
d5a66c65 44BuildRequires: libcanberra-gtk-devel >= 0.3
b3cca493 45BuildRequires: libglade2-devel >= 1:2.6.2
2f518579
MB
46BuildRequires: libgnomeui-devel >= 2.24.0
47BuildRequires: libnotify-devel >= 0.4
47ba0170 48BuildRequires: libtool
2ee625f0 49BuildRequires: libxml2-devel >= 1:2.6.28
9c7631b4 50BuildRequires: libxslt-devel >= 1.1.20
64cfd84f 51BuildRequires: pkgconfig
b3cca493
MB
52BuildRequires: python-gnome-devel >= 2.20.0
53BuildRequires: python-pygtk-devel >= 2:2.12.0
acf50bed 54BuildRequires: rpm >= 4.4.9-56
5c860df1 55BuildRequires: rpmbuild(find_lang) >= 1.23
a84d07de 56BuildRequires: rpmbuild(macros) >= 1.364
c305e9cc 57BuildRequires: scrollkeeper
fec44160 58BuildRequires: startup-notification-devel >= 0.8
3428cfce 59%if %{without webkit}
9c7631b4 60BuildRequires: xulrunner
0cf5f9f8 61BuildRequires: xulrunner-devel >= 1.9.0.1-1
3428cfce 62%endif
6c81e5d5 63Requires(post,postun): desktop-file-utils
c4601149 64Requires(post,postun): gtk+2
d1e1b12f 65Requires(post,postun): hicolor-icon-theme
e6dfa88b 66Requires(post,postun): scrollkeeper
9c7631b4
MB
67Requires(post,preun): GConf2
68Requires: dbus >= 1.0.2
2f518579
MB
69Requires: gnome-icon-theme >= 2.26.0
70Requires: libgnomeui >= 2.24.0
a84d07de 71Provides: wwwbrowser
3428cfce 72%if %{without webkit}
a84d07de
ER
73Requires: browser-plugins >= 2.0
74Requires: browser-plugins(%{_target_base_arch})
8353110f 75%requires_eq xulrunner
3428cfce 76%endif
ad062fc6 77Obsoletes: python-epiphany
84d82d33 78# sr@Latn vs. sr@latin
79Conflicts: glibc-misc < 6:2.7
b214bb6b 80BuildRoot: %{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 90GNOME browser based on Gecko (Mozilla rendering engine).
b214bb6b 91
bbabfc8c 92%description -l es.UTF-8
9c7631b4
MB
93Navigador Web de GNOME basado en Gecko (el engine plasmante de
94Mozilla).
3adf4a38 95
bbabfc8c
JR
96%description -l pl.UTF-8
97Epiphany jest przeglądarką WWW bazującą na Gecko (mechanizmie
b214bb6b 98interpretacji stron Mozilli).
99
ce9f0285 100%package devel
101Summary: Epiphany header files
1dda78a4
ER
102Summary(es.UTF-8): Ficheros de cabecera de Epiphany
103Summary(pl.UTF-8): Pliki nagłówkowe Epiphany
ce9f0285 104Group: X11/Applications/Networking
cc8a9ea0 105# doesn't require base
2f518579
MB
106Requires: gtk+2-devel >= 2:2.16.0
107Requires: libxml2-devel >= 1:2.6.28
ce9f0285 108
109%description devel
110Epiphany header files for plugin development.
111
bbabfc8c 112%description devel -l es.UTF-8
3adf4a38 113Ficheros de cabecera de Epiphany para desarrollar plug-ins.
114
bbabfc8c
JR
115%description devel -l pl.UTF-8
116Pliki nagłówkowe Epiphany do tworzenia wtyczek.
ce9f0285 117
c8df5897 118%package apidocs
119Summary: Epiphany API documentation
1dda78a4 120Summary(pl.UTF-8): Dokumentacja API Epiphany
c8df5897 121Group: Documentation
122Requires: gtk-doc-common
123
124%description apidocs
125Epiphany API documentation.
126
bbabfc8c 127%description apidocs -l pl.UTF-8
c8df5897 128Dokumentacja 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
169rm -rf $RPM_BUILD_ROOT
fd3ae4b7 170install -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 178rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/%{basever}/plugins/*.la
f16457d3 179rm -rf $RPM_BUILD_ROOT%{_iconsdir}/LowContrastLargePrint
e6dfa88b 180
359d4f9e 181%find_lang %{name} --with-gnome --with-omf
b214bb6b 182
183%clean
184rm -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}
209if [ "$1" = 0 ]; then
210 %update_browser_plugins
46ddfe88 211fi
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}/*
This page took 0.10505 seconds and 4 git commands to generate.