commit fa29337f7d800a8aa9974baee815f7e73f9e8a1f Author: CentOS Sources Date: Tue May 17 05:11:51 2022 -0400 import chrome-gnome-shell-10.1-14.el9 diff --git a/.chrome-gnome-shell.metadata b/.chrome-gnome-shell.metadata new file mode 100644 index 0000000..d57c7a1 --- /dev/null +++ b/.chrome-gnome-shell.metadata @@ -0,0 +1 @@ +f8c05bd58302c6b0ad3220f9e82df4a43b4ea4f3 SOURCES/chrome-gnome-shell-10.1.tar.xz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd0934e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/chrome-gnome-shell-10.1.tar.xz diff --git a/SOURCES/0001-build-Install-icons-in-hicolor-theme.patch b/SOURCES/0001-build-Install-icons-in-hicolor-theme.patch new file mode 100644 index 0000000..53ce263 --- /dev/null +++ b/SOURCES/0001-build-Install-icons-in-hicolor-theme.patch @@ -0,0 +1,39 @@ +From bb1755043ce4b859406766dd2cdcb34b6fb300da Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Fri, 12 Jul 2019 16:13:27 +0200 +Subject: [PATCH] build: Install icons in hicolor theme + +This is the theme that will always be used as fallback regardless of the +icon-theme setting, and the expected location for application icons[0]. + +[0] https://wiki.gnome.org/HowDoI/ThemedIcons + +https://gitlab.gnome.org/GNOME/chrome-gnome-shell/merge_requests/4 +--- + CMakeLists.txt | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f41ed4a..170c9f7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -202,13 +202,13 @@ if(BUILD_CONNECTOR) + install(FILES "${CMAKE_BINARY_DIR}/org.gnome.ChromeGnomeShell.service" DESTINATION "${CMAKE_INSTALL_DATADIR}/dbus-1/services/") + + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/extension/icons/GnomeLogo-16.png" +- DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/gnome/16x16/apps/" ++ DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/16x16/apps/" + RENAME org.gnome.ChromeGnomeShell.png) + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/extension/icons/GnomeLogo-48.png" +- DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/gnome/48x48/apps/" ++ DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/48x48/apps/" + RENAME org.gnome.ChromeGnomeShell.png) + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/extension/icons/GnomeLogo-128.png" +- DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/gnome/128x128/apps/" ++ DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps/" + RENAME org.gnome.ChromeGnomeShell.png) + endif(BUILD_CONNECTOR) + +-- +2.29.2 + diff --git a/SPECS/chrome-gnome-shell.spec b/SPECS/chrome-gnome-shell.spec new file mode 100644 index 0000000..56634a9 --- /dev/null +++ b/SPECS/chrome-gnome-shell.spec @@ -0,0 +1,143 @@ +%global debug_package %{nil} + +Name: chrome-gnome-shell +Version: 10.1 +Release: 14%{?dist} +Summary: Support for managing GNOME Shell Extensions through web browsers + +License: GPLv3+ +URL: https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome +Source0: https://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz + +# Backported from upstream +Patch0: 0001-build-Install-icons-in-hicolor-theme.patch + +BuildRequires: cmake +BuildRequires: desktop-file-utils +BuildRequires: python3-devel +BuildRequires: /usr/bin/base64 +BuildRequires: /usr/bin/head +BuildRequires: /usr/bin/jq +BuildRequires: /usr/bin/sha256sum +BuildRequires: /usr/bin/tr + +Requires: dbus +Requires: gnome-shell +Requires: hicolor-icon-theme +Requires: mozilla-filesystem +Requires: python3-gobject-base +Requires: python3-requests + +%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 +%autosetup -p1 + +%build +%cmake -DBUILD_EXTENSION=OFF \ + -DCMAKE_INSTALL_LIBDIR=%{_lib} \ + -DPython_ADDITIONAL_VERSIONS=3 +%cmake_build + +%install +%cmake_install + +%check +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.ChromeGnomeShell.desktop + +%files +%license LICENSE +%{_sysconfdir}/chromium/ +%{_sysconfdir}/opt/chrome/ +%{_bindir}/chrome-gnome-shell +%{_libdir}/mozilla/native-messaging-hosts/ +%{python3_sitelib}/chrome_gnome_shell-*.egg-info +%{_datadir}/applications/org.gnome.ChromeGnomeShell.desktop +%{_datadir}/dbus-1/services/org.gnome.ChromeGnomeShell.service +%{_datadir}/icons/hicolor/*/apps/org.gnome.ChromeGnomeShell.png + +%changelog +* Mon Aug 09 2021 Mohan Boddu - 10.1-14 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Thu Apr 15 2021 Mohan Boddu - 10.1-13 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Fri Feb 05 2021 Kalev Lember - 10.1-12 +- Install icons into hicolor icon theme + +* Tue Jan 26 2021 Fedora Release Engineering - 10.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 10.1-10 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 10.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 10.1-8 +- Rebuilt for Python 3.9 + +* Tue Jan 28 2020 Fedora Release Engineering - 10.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Aug 19 2019 Miro Hrončok - 10.1-6 +- Rebuilt for Python 3.8 + +* Wed Jul 24 2019 Fedora Release Engineering - 10.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 10.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 10.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 10.1-2 +- Rebuilt for Python 3.7 + +* Wed Apr 04 2018 Pete Walter - 10.1-1 +- Update to 10.1 + +* Wed Feb 07 2018 Fedora Release Engineering - 9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Jun 22 2017 Pete Walter - 9-1 +- Update to 9 + +* Fri Mar 10 2017 Pete Walter - 8.2-2 +- Package review fixes (#1343710) +- Validate the desktop file +- Don't own /etc/opt directory +- Depend on mozilla-filesystem instead of co-owning mozilla directories +- Depend on dbus and gnome-icon-theme/hicolor-icon-theme for directory + ownership + +* Fri Mar 03 2017 Pete Walter - 8.2-1 +- Update to 8.2 +- Simplify files list +- Build with Python 3 (#1343710) +- Add missing python3-requests dependency (#1343710) +- Update package description + +* Tue Jun 07 2016 Pete Walter - 6.1-1 +- Update to 6.1 + +* Sat May 14 2016 Maxim Orlov - 6-1 +- Update to Ver.6 +- Fix "orphaned directory" + +* Mon Apr 11 2016 Maxim Orlov - 5.2-1 +- Initial package.