]> git.pld-linux.org Git - packages/epiphany.git/blobdiff - epiphany.spec
- up to 2.16.2
[packages/epiphany.git] / epiphany.spec
index 1cb6219552166d58184e585da66c1dfd63d380fc..67e9335cbfc4d2054d5b4e4f55934675022c30de 100644 (file)
@@ -1,42 +1,55 @@
-
-%define                minmozver       5:1.6
-
+%define                basever 2.16
 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:       1.0.7
-Release:       2
-License:       GPL
+Version:       2.16.2
+Release:       1
+License:       GPL v2
 Group:         X11/Applications/Networking
-Source0:       http://ftp.gnome.org/pub/gnome/sources/%{name}/1.0/%{name}-%{version}.tar.bz2
-# Source0-md5: 6f1639d7c7133769ce28eb24358ef55b
-#Source0:      http://downloads.uk1.mozdev.org/rsync/%{name}/%{name}-%{version}.tar.gz
-Patch0:                %{name}-MOZILLA_FIVE_HOME.patch
-Patch1:                %{name}-tabsmenu.patch
-Patch2:                %{name}-first-tab.patch
+Source0:       http://ftp.gnome.org/pub/gnome/sources/epiphany/%{basever}/%{name}-%{version}.tar.bz2
+# Source0-md5: 6d4ca4c3c1fb52b432ad3f5006866b6b
+Patch0:                %{name}-first-tab.patch
+Patch1:                %{name}-desktop.patch
+Patch2:                %{name}-pld-homepage.patch
+Patch3:                %{name}-configure.patch
 URL:           http://www.gnome.org/projects/epiphany/
-BuildRequires: GConf2-devel >= 2.4.0
-BuildRequires: ORBit2-devel >= 2.8.0
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: gnome-common >= 2.4.0
-BuildRequires: gnome-vfs2-devel >= 2.4.0
-BuildRequires: gtk+2-devel >= 2.2.0
-BuildRequires: intltool
-BuildRequires: libbonoboui-devel >= 2.4.0
-BuildRequires: libglade2-devel >= 2.0.1
-BuildRequires: libgnomeui-devel >= 2.4.0
+BuildRequires: GConf2-devel >= 2.16.0
+BuildRequires: ORBit2-devel >= 1:2.14.3
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.8
+BuildRequires: dbus-glib-devel >= 0.71-2
+BuildRequires: gnome-common >= 2.12.0
+BuildRequires: gnome-desktop-devel >= 2.16.1
+BuildRequires: gnome-doc-utils >= 0.8.0
+BuildRequires: gnome-vfs2-devel >= 2.16.2
+BuildRequires: gtk+2-devel >= 2:2.10.6
+BuildRequires: gtk-doc >= 1.7
+BuildRequires: intltool >= 0.35.0
+BuildRequires: iso-codes >= 0.53
+BuildRequires: libglade2-devel >= 1:2.6.0
+BuildRequires: libgnomeprintui-devel >= 2.12.1
+BuildRequires: libgnomeui-devel >= 2.16.1
 BuildRequires: libtool
-BuildRequires: libxml2-devel >= 2.5.9
-BuildRequires: mozilla-embedded-devel >= %{minmozver}
-BuildRequires: nautilus-devel >= 2.4.0
-BuildRequires: rpm-build >= 4.1-10
+BuildRequires: libxslt-devel >= 1.1.17
+BuildRequires: mozilla-firefox-devel >= 1.5.0.7
+BuildRequires: pkgconfig
+BuildRequires: python-gnome-devel >= 2.16.2
+BuildRequires: python-pygtk-devel >= 2.10.3
+BuildRequires: rpmbuild(macros) >= 1.311
 BuildRequires: scrollkeeper
-Requires(post):        GConf2
-Requires(post):        scrollkeeper
-Requires:      gnome-icon-theme
-Requires:      mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
+BuildRequires: startup-notification-devel >= 0.8
+Requires(post,preun):  GConf2 >= 2.16.0
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk+2 >= 2:2.10.6
+Requires(post,postun): hicolor-icon-theme
+Requires(post,postun): scrollkeeper
+Requires:      dbus >= 0.91
+Requires:      gnome-icon-theme >= 2.16.0.1
+Requires:      gtk+2 >= 2:2.10.6
+Requires:      libgnomeui >= 2.16.1
+%requires_eq   mozilla-firefox
+Obsoletes:     python-epiphany
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # can be provided by mozilla or mozilla-embedded
@@ -57,9 +70,9 @@ Summary:      Epiphany header files
 Summary(es):   Ficheros de cabecera de Epiphany
 Summary(pl):   Pliki nag³ówkowe Epiphany
 Group:         X11/Applications/Networking
-Requires:      %{name} = %{version}
-Requires:      gtk+2-devel >= 2.2.0
-Requires:      libxml2-devel >= 2.5.9
+# doesn't require base
+Requires:      gtk+2-devel >= 2:2.10.6
+Requires:      libxslt-devel >= 1.1.17
 
 %description devel
 Epiphany header files for plugin development.
@@ -70,71 +83,105 @@ Ficheros de cabecera de Epiphany para desarrollar plug-ins.
 %description devel -l pl
 Pliki nag³ówkowe Epiphany do tworzenia wtyczek.
 
+%package apidocs
+Summary:       Epiphany API documentation
+Summary(pl):   Dokumentacja API Epiphany
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+Epiphany API documentation.
+
+%description apidocs -l pl
+Dokumentacja API Epiphany.
+
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
-rm -f acconfig.h
-glib-gettextize --copy --force
-intltoolize --copy --force
+%{__gnome_doc_prepare}
+%{__gnome_doc_common}
+%{__glib_gettextize}
+%{__intltoolize}
 %{__libtoolize}
-%{__aclocal} -I %{_aclocaldir}/gnome2-macros
+%{__aclocal} -I m4
 %{__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.6
-
-# CFLAGS is a hack for gcc 3.3
-%{__make} \
-       CFLAGS="%{rpmcflags} -fno-strict-aliasing"
+       --enable-dbus \
+       --enable-gtk-doc \
+       --enable-python \
+       --with-html-dir=%{_gtkdocdir}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
+install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/%{basever}/extensions
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+       DESTDIR=$RPM_BUILD_ROOT \
+       HTML_DIR=%{_gtkdocdir}
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/%{basever}/plugins/*.la
 
-# epiphany-2.0.mo, but gnome/help/epiphany
-%find_lang %{name}-2.0 --with-gnome --all-name
+%find_lang %{name} --with-gnome
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%gconf_schema_install
-/usr/bin/scrollkeeper-update
-
-%postun -p /usr/bin/scrollkeeper-update
-
-%files -f %{name}-2.0.lang
+%gconf_schema_install epiphany-fonts.schemas
+%gconf_schema_install epiphany-lockdown.schemas
+%gconf_schema_install epiphany-pango.schemas
+%gconf_schema_install epiphany.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
+%update_icon_cache hicolor
+
+%preun
+%gconf_schema_uninstall epiphany-fonts.schemas
+%gconf_schema_uninstall epiphany-lockdown.schemas
+%gconf_schema_uninstall epiphany-pango.schemas
+%gconf_schema_uninstall epiphany.schemas
+
+%postun
+%scrollkeeper_update_postun
+%update_desktop_database_postun
+%update_icon_cache hicolor
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
 %attr(755,root,root) %{_bindir}/*
-%{_libdir}/bonobo/servers/*
+%{_datadir}/dbus-1/services/*.service
 %{_datadir}/%{name}
-%{_desktopdir}/*
-%{_datadir}/application-registry/*
-%{_pixmapsdir}/*
-%{_sysconfdir}/gconf/schemas/*
+%{_desktopdir}/*.desktop
+%{_iconsdir}/hicolor/*/*/*.png
+%{_sysconfdir}/gconf/schemas/epiphany-fonts.schemas
+%{_sysconfdir}/gconf/schemas/epiphany-lockdown.schemas
+%{_sysconfdir}/gconf/schemas/epiphany-pango.schemas
+%{_sysconfdir}/gconf/schemas/epiphany.schemas
 %{_omf_dest_dir}/*
-%{_libdir}/%{name}
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/%{basever}
+%dir %{_libdir}/%{name}/%{basever}/extensions
+%dir %{_libdir}/%{name}/%{basever}/plugins
+%attr(755,root,root) %{_libdir}/epiphany/%{basever}/plugins/*.so*
+%{_mandir}/man1/*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/epiphany-1.0
+%{_aclocaldir}/*
+%{_includedir}/epiphany
 %{_pkgconfigdir}/*.pc
+%{_datadir}/pygtk/*/defs/epiphany.defs
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/*
This page took 0.050717 seconds and 4 git commands to generate.