-%define minmozver 1.4b
-%define snap 20030518
+%define minmozver 5:1.7
Summary: Epiphany - gecko-based GNOME web browser
+Summary(es): Epiphany - navigador Web de GNOME basado en gecko
Summary(pl): Epiphany - przegl±darka WWW dla GNOME
Name: epiphany
-Version: 0.7.2
-#Release: 1.%{snap}.1
-Release: 1
+Version: 1.2.6
+Release: 3
License: GPL
Group: X11/Applications/Networking
-#Source0: %{name}-%{version}-%{snap}.tar.bz2
-Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/0.7/%{name}-%{version}.tar.bz2
-# Source0-md5: f9377ac919b8038901b4d327b567d0e7
-Patch0: %{name}-ac.patch
-Patch1: %{name}-MOZILLA_FIVE_HOME.patch
-URL: http://epiphany.mozdev.org/
+Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/1.2/%{name}-%{version}.tar.bz2
+# Source0-md5: 6dedf570ddb9106ecd6be624f009a35a
+Patch0: %{name}-MOZILLA_FIVE_HOME.patch
+Patch1: %{name}-first-tab.patch
+Patch2: %{name}-locale-names.patch
+Patch3: %{name}-desktop-name-entry.patch
+URL: http://www.gnome.org/projects/epiphany/
BuildRequires: GConf2-devel
-BuildRequires: ORBit2-devel >= 2.7.2
+BuildRequires: ORBit2-devel >= 1:2.10.0
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: bonobo-activation-devel >= 2.1.0
-BuildRequires: gnome-vfs2-devel
-BuildRequires: gtk+2-devel >= 2.0.6
-BuildRequires: intltool
-BuildRequires: libglade2-devel
-BuildRequires: libgnomeui-devel
-BuildRequires: libxml2-devel
-BuildRequires: mozilla-embedded-devel >= %{minmozver}
-BuildRequires: nautilus-devel >= 2.0.0
-BuildRequires: scrollkeeper
+BuildRequires: gnome-common >= 2.4.0
+BuildRequires: gnome-vfs2-devel >= 2.6.0
+BuildRequires: gtk+2-devel >= 2:2.4.0
+BuildRequires: gtk-doc
+BuildRequires: intltool >= 0.29
+BuildRequires: libbonoboui-devel >= 2.6.0
+BuildRequires: libglade2-devel >= 1:2.3.6
+BuildRequires: libgnomeui-devel >= 2.6.0
+BuildRequires: libxml2-devel >= 2.6.6
+BuildRequires: mozilla-devel >= %{minmozver}
+BuildRequires: nautilus-devel >= 2.6.0
BuildRequires: rpm-build >= 4.1-10
+BuildRequires: scrollkeeper
Requires(post): GConf2
Requires(post): scrollkeeper
-Requires: mozilla-embedded = %(rpm -q --qf '%{VERSION}' --whatprovides mozilla-embedded)
+Requires: gnome-icon-theme >= 1.2.0
+Requires: gtk+2 >= 2:2.4.0
+Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# can be provided by mozilla or mozilla-embedded
%define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
%description
-Gnome browser based on Gecko (Mozilla rendering engine).
+GNOME browser based on Gecko (Mozilla rendering engine).
+
+%description -l es
+Navigador Web de GNOME basado en Gecko (el engine plasmante de Mozilla).
%description -l pl
Epiphany jest przegl±dark± WWW bazuj±c± na Gecko (mechanizmie
interpretacji stron Mozilli).
+%package devel
+Summary: Epiphany header files
+Summary(es): Ficheros de cabecera de Epiphany
+Summary(pl): Pliki nag³ówkowe Epiphany
+Group: X11/Applications/Networking
+# doesn't require base
+Requires: gtk+2-devel >= 2:2.4.0
+Requires: libxml2-devel >= 2.6.6
+
+%description devel
+Epiphany header files for plugin development.
+
+%description devel -l es
+Ficheros de cabecera de Epiphany para desarrollar plug-ins.
+
+%description devel -l pl
+Pliki nag³ówkowe Epiphany do tworzenia wtyczek.
+
%prep
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+mv po/{no,nb}.po
%build
rm -f acconfig.h
+cp /usr/share/automake/mkinstalldirs .
glib-gettextize --copy --force
intltoolize --copy --force
+gnome-doc-common --copy
%{__libtoolize}
%{__aclocal} -I %{_aclocaldir}/gnome2-macros
%{__autoheader}
%{__automake}
%{__autoconf}
-# rebuild for new ORBit2
-cd idl
-orbit-idl-2 -I/usr/share/idl -I/usr/share/idl/bonobo-2.0 \
- -I/usr/share/idl/bonobo-activation-2.0 EphyAutomation.idl
-mv -f *.h *.c ../src
-cd ..
-
%configure \
--disable-schemas-install \
--enable-nautilus-view=yes \
- --with-mozilla-snapshot=1.4b
+ --enable-gtk-doc \
+ --with-mozilla-snapshot=branch1.7 \
+ --with-html-dir=%{_gtkdocdir}
# CFLAGS is a hack for gcc 3.3
-%{__make} CFLAGS="%{rpmcflags} -fno-strict-aliasing"
+%{__make} \
+ CFLAGS="%{rpmcflags} -fno-strict-aliasing"
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ HTML_DIR=%{_gtkdocdir}
# epiphany-2.0.mo, but gnome/help/epiphany
%find_lang %{name}-2.0 --with-gnome --all-name
%gconf_schema_install
/usr/bin/scrollkeeper-update
+%postun -p /usr/bin/scrollkeeper-update
+
%files -f %{name}-2.0.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%{_pixmapsdir}/*
%{_sysconfdir}/gconf/schemas/*
%{_omf_dest_dir}/*
+%{_libdir}/%{name}
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/epiphany-1.2
+%{_pkgconfigdir}/*.pc
+%{_gtkdocdir}/*