# # spec file for package epiphany # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: epiphany Version: 3.3.5 Release: 0 Summary: GNOME Web Browser License: GPL-2.0+ Group: Productivity/Networking/Web/Browsers Url: http://www.gnome.org/projects/epiphany/ Source: http://download.gnome.org/sources/epiphany/3.3/%{name}-%{version}.tar.xz # PATCH-FEATURE-OPENSUSE epiphany-safe-one-click-install.patch bnc330070 vuntz@novell.com -- Make one-click install work with one-click Patch6: epiphany-safe-one-click-install.patch BuildRequires: ca-certificates BuildRequires: fdupes BuildRequires: gnome-doc-utils-devel BuildRequires: gnome-icon-theme BuildRequires: gobject-introspection-devel BuildRequires: intltool BuildRequires: iso-codes-devel BuildRequires: libavahi-gobject-devel BuildRequires: libgnome-keyring-devel BuildRequires: libnotify-devel >= 0.5.1 BuildRequires: libseed-gtk3-devel BuildRequires: libsoup-devel >= 2.37.1 BuildRequires: libtool BuildRequires: libwebkitgtk3-devel >= 1.7.3 BuildRequires: libxslt-devel BuildRequires: mozilla-nss-devel BuildRequires: translation-update-upstream BuildRequires: update-desktop-files BuildRequires: pkgconfig(gsettings-desktop-schemas) BuildRequires: pkgconfig(gtk+-3.0) >= 3.3.14 Requires: %{name}-branding = %{version} Requires: NetworkManager Requires: gnome-icon-theme Requires: iso-codes Recommends: %{name}-lang Recommends: ca-certificates BuildRoot: %{_tmppath}/%{name}-%{version}-build %glib2_gsettings_schema_requires %description Epiphany is a Web browser for the GNOME Desktop. Its principles are simplicity and standards compliance. %package devel Summary: GNOME Web Browser Group: Development/Libraries/GNOME Requires: %{name} = %{version} Provides: %{name}-doc = %{version} Obsoletes: %{name}-doc < %{version} %description devel Epiphany is a Web Browser for the GNOME Desktop. Its principles are simplicity and standards compliance. %package branding-upstream Summary: GNOME Web Browser -- Upstream default bookmarks and user agent string Group: Productivity/Networking/Web/Browsers Requires: %{name} = %{version} Provides: %{name}-branding = %{version} Conflicts: otherproviders(%{name}-branding) Supplements: packageand(%{name}:branding-upstream) BuildArch: noarch #BRAND: Provide a few files - #BRAND: /usr/share/epiphany/default-bookmarks.rdf #BRAND: the default bookmarks #BRAND: /usr/share/epiphany/branding.conf (optional) #BRAND: a file to change the default user agent. For instance: #BRAND: [User Agent] #BRAND: Vendor=SUSE #BRAND: VendorSub=12.1 #BRAND: VendorComment=3.1.2-101.5 %description branding-upstream Epiphany is a Web Browser for the GNOME Desktop. Its principles are simplicity and standards compliance. This package provides the upstream default bookmarks and user agent string. %lang_package %prep %setup -q translation-update-upstream %patch6 -p1 %build %configure \ --disable-scrollkeeper \ --disable-maintainer-mode \ --enable-introspection \ --enable-zeroconf \ --enable-network-manager \ --enable-seed \ --with-distributor-name="SUSE" make %{?_smp_mflags} V=1 %install %makeinstall # In case make install did not create the extensions directory; note that we # determine this directory with the pkg-config file that got installed. extensionsdir=`pkg-config --variable extensionsdir %{buildroot}%{_libdir}/pkgconfig/epiphany-*.pc` if ! test -d %{buildroot}${extensionsdir}; then install -d -m 0755 %{buildroot}${extensionsdir} fi %suse_update_desktop_file -N "Epiphany" %name # Copy the icons in hicolor, else brp-check is sad for size in 8x8 16x16 22x22 24x24 32x32 48x48 256x256; do if test -f %{_datadir}/icons/gnome/$size/apps/web-browser.png; then mkdir -p %{buildroot}%{_datadir}/icons/hicolor/$size/apps cp -a %{_datadir}/icons/gnome/$size/apps/web-browser.png %{buildroot}%{_datadir}/icons/hicolor/$size/apps/web-browser.png fi done %find_lang %{name} %{?no_lang_C} %fdupes %{buildroot} %post /sbin/ldconfig %desktop_database_post %icon_theme_cache_post %glib2_gsettings_schema_post %postun /sbin/ldconfig %desktop_database_postun %icon_theme_cache_postun %glib2_gsettings_schema_postun %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %dir %{_datadir}/gnome/ %dir %{_datadir}/gnome/help/ %dir %{_datadir}/gnome/help/%{name}/ %doc %{_datadir}/gnome/help/%{name}/C/ %dir %{_datadir}/omf/ %dir %{_datadir}/omf/%{name}/ %doc %{_datadir}/omf/%{name}/%{name}-C.omf %{_bindir}/ephy-profile-migrator %{_bindir}/epiphany %{_datadir}/applications/epiphany.desktop %{_datadir}/dbus-1/services/org.gnome.Epiphany.service %exclude %{_datadir}/epiphany/default-bookmarks.rdf %{_datadir}/epiphany/ %{_datadir}/GConf/gsettings/epiphany.convert %{_datadir}/glib-2.0/schemas/org.gnome.Epiphany.enums.xml %{_datadir}/glib-2.0/schemas/org.gnome.epiphany.gschema.xml %{_datadir}/icons/hicolor/*/apps/*.png %{_libdir}/epiphany %{_libdir}/girepository-1.0/Epiphany-3.3.typelib %doc %{_mandir}/man1/epiphany.1.gz %files lang -f %{name}.lang %files devel %defattr(-,root,root) %doc %{_datadir}/gtk-doc/html/epiphany/ %{_datadir}/aclocal/*.m4 %{_datadir}/gir-1.0/*.gir %{_includedir}/epiphany* %{_libdir}/pkgconfig/*.pc %files branding-upstream %defattr(-,root,root) %{_datadir}/epiphany/default-bookmarks.rdf %changelog