File epiphany.spec of Package epiphany

# 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

Name:           epiphany
Version:        3.6.1
Release:        0
Summary:        GNOME Web Browser
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Browsers
# PATCH-FEATURE-OPENSUSE epiphany-safe-one-click-install.patch bnc330070 -- Make one-click install work with one-click
Patch6:         epiphany-safe-one-click-install.patch
BuildRequires:  fdupes
BuildRequires:  gnome-icon-theme
BuildRequires:  intltool >= 0.50
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(avahi-client) >= 0.6.22
BuildRequires:  pkgconfig(avahi-gobject) >= 0.6.22
BuildRequires:  pkgconfig(gcr-3) >= 3.5.5
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.31.2
BuildRequires:  pkgconfig(glib-2.0) >= 2.31.2
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gnome-desktop-3.0) >= 2.91.7
BuildRequires:  pkgconfig(gnome-keyring-1) >= 2.26.0
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 0.9.5
BuildRequires:  pkgconfig(gsettings-desktop-schemas) >= 0.0.1
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.5.2
BuildRequires:  pkgconfig(gtk+-unix-print-3.0) >= 3.5.2
BuildRequires:  pkgconfig(iso-codes) >= 0.35
BuildRequires:  pkgconfig(libnotify) >= 0.5.1
BuildRequires:  pkgconfig(libsoup-gnome-2.4) >= 2.39.6
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.12
BuildRequires:  pkgconfig(libxslt) >= 1.1.7
BuildRequires:  pkgconfig(nss)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(webkitgtk-3.0) >= 1.9.6
BuildRequires:  pkgconfig(x11)
Requires:       %{name}-branding = %{version}
Requires:       NetworkManager
Requires:       gnome-icon-theme
Requires:       iso-codes
Recommends:     %{name}-lang
Recommends:     ca-certificates
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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}
Provides:       browser(npapi)
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

%setup -q
%patch6 -p1

%configure \
    --disable-maintainer-mode \
    --enable-introspection \
make %{?_smp_mflags} V=1

# 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}
%suse_update_desktop_file %{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
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}



%exclude %{_datadir}/epiphany/default-bookmarks.rdf
%doc %{_mandir}/man1/epiphany.1.gz

%files lang -f %{name}.lang

%files devel
%doc %{_datadir}/gtk-doc/html/epiphany/

%files branding-upstream

openSUSE Build Service is sponsored by