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