File eolie.spec of Package eolie

#
# spec file for package eolie
#
# Copyright (c) 2017-2018 The openSUSE Project.
#
# 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/
#


# Filter out unwanted Requires
%global __requires_exclude typelib\\(Unity\\)

Name:           eolie
Version:        0.9.36
Release:        0
Summary:        Web browser for GNOME
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Web/Browsers
URL:            https://wiki.gnome.org/Apps/Eolie
Source:         %{name}-%{version}.tar.xz
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.35.9
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.20
BuildRequires:  pkgconfig(pygobject-3.0)
BuildRequires:  pkgconfig(webkit2gtk-web-extension-4.0)
Requires:       python3-cairo
Requires:       python3-dateutil
Requires:       python3-gobject
Recommends:     python3-PyFxA
Recommends:     python3-beautifulsoup4
Recommends:     python3-cryptography
Recommends:     python3-pycrypto
Recommends:     python3-requests-hawk
# Eolie can use git to retrieve more adblock rules from
# https://gitlab.gnome.org/gnumdk/eolie-adblock.git.
Suggests:       git

%description
Eolie is a Web browser for the GNOME Desktop. It provides:
* Firefox sync support
* Secret password store
* A modern UI

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

%description -n gnome-shell-search-provider-eolie
This package contains a search provider to enable GNOME Shell to get
search results from the Eolie Web browser.

%lang_package

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install
%find_lang %{name} %{?no_lang_C}

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_datadir}/metainfo/org.gnome.Eolie.appdata.xml
%{_datadir}/applications/org.gnome.Eolie.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Eolie.gschema.xml
%{_datadir}/icons/hicolor/*/*/org.gnome.Eolie*
%{_datadir}/%{name}
%{_libdir}/%{name}
%{python3_sitelib}/%{name}

%files -n gnome-shell-search-provider-eolie
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers
%{_datadir}/dbus-1/services/org.gnome.Eolie.SearchProvider.service
%{_datadir}/gnome-shell/search-providers/eolie-search-provider.ini
%{_libexecdir}/%{name}-sp

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by