File epiphany.spec of Package epiphany

# spec file for package epiphany
# Copyright (c) 2020 SUSE LLC
# 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.34.4
Release:        0
Summary:        GNOME Web Browser
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Web/Browsers
Source99:       %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM epiphany-fix-compile-warning.patch -- sync-utils: use getrandom() to generate randomness
Patch0:         epiphany-fix-compile-warning.patch

BuildRequires:  fdupes
BuildRequires:  meson >= 0.42.0
BuildRequires:  pkgconfig
BuildRequires:  translation-update-upstream
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(cairo) >= 1.2
BuildRequires:  pkgconfig(gcr-3) >= 3.5.5
BuildRequires:  pkgconfig(gdk-3.0) >= 3.24.0
BuildRequires:  pkgconfig(gdk-pixbuf-2.0) >= 2.36.5
BuildRequires:  pkgconfig(gio-2.0) >= 2.61.2
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.61.2
BuildRequires:  pkgconfig(glib-2.0) >= 2.61.2
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.13
BuildRequires:  pkgconfig(gtk+-unix-print-3.0) >= 3.22.13
BuildRequires:  pkgconfig(hogweed) >= 3.2
BuildRequires:  pkgconfig(icu-uc) >= 4.6
BuildRequires:  pkgconfig(iso-codes) >= 0.35
BuildRequires:  pkgconfig(json-glib-1.0) >= 1.2.4
BuildRequires:  pkgconfig(libdazzle-1.0) >= 3.31.90
BuildRequires:  pkgconfig(libhandy-0.0) >= 0.0.9
BuildRequires:  pkgconfig(libnotify) >= 0.5.1
BuildRequires:  pkgconfig(libsecret-1) >= 0.14
BuildRequires:  pkgconfig(libsoup-2.4) >= 2.48.0
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.12
BuildRequires:  pkgconfig(libxslt) >= 1.1.7
BuildRequires:  pkgconfig(nettle) >= 3.2
BuildRequires:  pkgconfig(sqlite3) >= 3.0
BuildRequires:  pkgconfig(webkit2gtk-4.0) >= 2.25.1
BuildRequires:  pkgconfig(webkit2gtk-web-extension-4.0) >= 2.25.1
Requires:       %{name}-branding = %{version}
Requires:       iso-codes
Recommends:     ca-certificates

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}
Supplements:    packageand(%{name}:branding-upstream)
Conflicts:      %{name}-branding
Provides:       %{name}-branding = %{version}
BuildArch:      noarch

%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

%package -n gnome-shell-search-provider-epiphany
Summary:        Epiphany Search Provider for GNOME Shell
Group:          Productivity/Networking/Web/Browsers
Requires:       %{name} = %{version}
Requires:       gnome-shell
Supplements:    packageand(%{name}:gnome-shell)

%description -n gnome-shell-search-provider-epiphany
Epiphany is a Web browser for the GNOME Desktop.

This package contains a search provider to enable GNOME Shell to get
search results from Web (epiphany)


%autosetup -p1

%meson \
	-Ddeveloper_mode=false \
	-Ddistributor_name=openSUSE \
	-Dunit_tests=disabled \

%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}

%license COPYING
%doc %{_datadir}/help/C/%{name}/
%dir %{_datadir}/metainfo
%exclude %{_datadir}/epiphany/default-bookmarks.rdf
%dir %{_libdir}/epiphany
%dir %{_libdir}/epiphany/web-process-extensions
%dir %{_libexecdir}/epiphany

%files branding-upstream

%files -n gnome-shell-search-provider-epiphany
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by