8e985f0
%global debug_package %{nil}
8e985f0
8e985f0
Name:           chrome-gnome-shell
ce1ad3f
Version:        9
ce1ad3f
Release:        1%{?dist}
8e985f0
Summary:        Support for managing GNOME Shell Extensions through web browsers
8e985f0
8e985f0
License:        GPLv3+
8e985f0
URL:            https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome
8e985f0
Source0:        https://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
8e985f0
8e985f0
BuildRequires:  cmake
23b9de7
BuildRequires:  desktop-file-utils
8e985f0
BuildRequires:  python3-devel
8e985f0
BuildRequires:  /usr/bin/base64
8e985f0
BuildRequires:  /usr/bin/head
8e985f0
BuildRequires:  /usr/bin/jq
8e985f0
BuildRequires:  /usr/bin/sha256sum
8e985f0
BuildRequires:  /usr/bin/tr
8e985f0
8e985f0
Requires:       dbus
8e985f0
Requires:       gnome-icon-theme
8e985f0
Requires:       gnome-shell
8e985f0
Requires:       hicolor-icon-theme
8e985f0
Requires:       mozilla-filesystem
8e985f0
Requires:       python3-gobject-base
8e985f0
Requires:       python3-requests
8e985f0
8e985f0
%description
8e985f0
Browser extension for Google Chrome/Chromium, Firefox, Vivaldi, Opera (and
8e985f0
other Browser Extension, Chrome Extension or WebExtensions capable browsers)
8e985f0
and native host messaging connector that provides integration with GNOME Shell
8e985f0
and the corresponding extensions repository https://extensions.gnome.org.
8e985f0
8e985f0
%prep
8e985f0
%autosetup
8e985f0
8e985f0
%build
8e985f0
mkdir build
8e985f0
pushd build
8e985f0
  %cmake -DBUILD_EXTENSION=OFF \
8e985f0
         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
8e985f0
         -DPython_ADDITIONAL_VERSIONS=3 \
8e985f0
         ..
8e985f0
  %make_build
8e985f0
popd
8e985f0
8e985f0
%install
8e985f0
pushd build
8e985f0
  %make_install
8e985f0
popd
8e985f0
8e985f0
%check
8e985f0
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.ChromeGnomeShell.desktop
8e985f0
8e985f0
%files
8e985f0
%license LICENSE
8e985f0
%{_sysconfdir}/chromium/
8e985f0
%{_sysconfdir}/opt/chrome/
8e985f0
%{_bindir}/chrome-gnome-shell
8e985f0
%{_libdir}/mozilla/native-messaging-hosts/
8e985f0
%{python3_sitelib}/chrome_gnome_shell-*.egg-info
8e985f0
%{_datadir}/applications/org.gnome.ChromeGnomeShell.desktop
8e985f0
%{_datadir}/dbus-1/services/org.gnome.ChromeGnomeShell.service
8e985f0
%{_datadir}/icons/gnome/*/apps/org.gnome.ChromeGnomeShell.png
8e985f0
8e985f0
%changelog
ce1ad3f
* Thu Jun 22 2017 Pete Walter <pwalter@fedoraproject.org> - 9-1
ce1ad3f
- Update to 9
ce1ad3f
8e985f0
* Fri Mar 10 2017 Pete Walter <pwalter@fedoraproject.org> - 8.2-2
8e985f0
- Package review fixes (#1343710)
8e985f0
- Validate the desktop file
8e985f0
- Don't own /etc/opt directory
8e985f0
- Depend on mozilla-filesystem instead of co-owning mozilla directories
8e985f0
- Depend on dbus and gnome-icon-theme/hicolor-icon-theme for directory
8e985f0
  ownership
8e985f0
8e985f0
* Fri Mar 03 2017 Pete Walter <pwalter@fedoraproject.org> - 8.2-1
8e985f0
- Update to 8.2
8e985f0
- Simplify files list
8e985f0
- Build with Python 3 (#1343710)
8e985f0
- Add missing python3-requests dependency (#1343710)
8e985f0
- Update package description
8e985f0
8e985f0
* Tue Jun 07 2016 Pete Walter <pwalter@fedoraproject.org> - 6.1-1
8e985f0
- Update to 6.1
8e985f0
8e985f0
* Sat May 14 2016 Maxim Orlov <murmansksity@gmail.com> - 6-1
8e985f0
- Update to Ver.6
8e985f0
- Fix "orphaned directory"
8e985f0
8e985f0
* Mon Apr 11 2016 Maxim Orlov <murmansksity@gmail.com> - 5.2-1
8e985f0
- Initial package.