File chrome-gnome-shell.spec of Package chrome-gnome-shell
#
# spec file for package chrome-gnome-shell
#
# Copyright (c) 2017 SUSE LINUX 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: chrome-gnome-shell
Version: 9
Release: 0
Summary: GNOME Shell integration for Chrome Extension compatible browsers
License: GPL-3.0+
Group: Productivity/Networking/Web/Browsers
Url: https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: hicolor-icon-theme
BuildRequires: jq
BuildRequires: p7zip
Requires: python-requests
# Auto-install when the user uses GNOME Shell and any of the (known) supported browsers
Supplements: packageand(gnome-shell:MozillaFirefox)
Supplements: packageand(gnome-shell:chromium)
Supplements: packageand(gnome-shell:google-chrome-stable)
Supplements: packageand(gnome-shell:opera)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
Browser extension for Google Chrome/Chromium, Firefox, Vivaldi, Opera (and other
Browser Extension, Chrome Extension or WebExtensions capable browsers) and native
host messaging connector that provides integration with GNOME Shell and the
corresponding extensions repository https://extensions.gnome.org.
%prep
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%post
%icon_theme_cache_post gnome
%postun
%icon_theme_cache_postun gnome
%files
%defattr(-,root,root)
%doc LICENSE README.md NEWS
%config %{_sysconfdir}/chromium/
%config %{_sysconfdir}/opt/chrome/
%{_bindir}/chrome-gnome-shell
%if 0%{?suse_version} < 1330
%{python_sitelib}/chrome_gnome_shell-0.0.0-py2.7.egg-info
%else
%{python2_sitelib}/chrome_gnome_shell-0.0.0-py2.7.egg-info
%endif
%{_libdir}/mozilla/
%{_datadir}/applications/org.gnome.ChromeGnomeShell.desktop
%dir %{_datadir}/dbus-1
%dir %{_datadir}/dbus-1/services
%{_datadir}/dbus-1/services/org.gnome.ChromeGnomeShell.service
%{_datadir}/icons/gnome/
%changelog