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