%global extension pop-shell %global uuid %{extension}@system76.com %global forgeurl https://github.com/pop-os/shell %global commit a11d3c34db01987bb716b8b127b2b889130a4fc1 %global date 20201016 %forgemeta Name: gnome-shell-extension-%{extension} Version: 0.1.0 Release: 1%{?dist} Summary: GNOME Shell extension for advanced tiling window management # The entire source code is GPLv3 except math.js which is ASL 2.0 License: GPLv3 and ASL 2.0 URL: %{forgeurl} Source0: %{forgesource} Source1: 50_org.gnome.desktop.wm.keybindings.%{extension}.gschema.override Source2: 50_org.gnome.mutter.%{extension}.gschema.override Source3: 50_org.gnome.mutter.wayland.%{extension}.gschema.override Source4: 50_org.gnome.settings-daemon.plugins.media-keys.%{extension}.gschema.override Source5: 50_org.gnome.shell.%{extension}.gschema.override # downstream-only patch Patch0: 0001-Remove-schemas-from-compile-target.patch # https://github.com/pop-os/shell/pull/649 Patch1: 0001-Display-shortcuts-website-if-pop-shell-shortcuts-is-not-installed.patch BuildArch: noarch BuildRequires: npm(typescript) >= 3.8 Requires: gnome-shell-extension-common Recommends: %{name}-shortcut-overrides Recommends: gnome-extensions-app Recommends: gnome-shell-extension-native-window-placement %description Pop Shell is a keyboard-driven layer for GNOME Shell which allows for quick and sensible navigation and management of windows. The core feature of Pop Shell is the addition of advanced tiling window management - a feature that has been highly-sought within our community. For many - ourselves included - i3wm has become the leading competitor to the GNOME desktop. %package shortcut-overrides Summary: Shortcut overrides for %{name} %description shortcut-overrides Shortcut overrides for %{name}. %prep %forgeautosetup -p 1 %build %make_build compile %install %make_install # install the schema file install -D -p -m 0644 \ schemas/org.gnome.shell.extensions.%{extension}.gschema.xml \ %{buildroot}%{_datadir}/glib-2.0/schemas/%{uuid}.gschema.xml # install the schema override files install -d -m 0755 %{buildroot}%{_datadir}/glib-2.0/schemas install -p -m 0644 %{_sourcedir}/*.%{extension}.gschema.override %{buildroot}%{_datadir}/glib-2.0/schemas/ %files %license LICENSE %doc README.md %{_datadir}/gnome-shell/extensions/%{uuid} %{_datadir}/glib-2.0/schemas/%{uuid}.gschema.xml %files shortcut-overrides %{_datadir}/glib-2.0/schemas/*.%{extension}.gschema.override %changelog * Thu Oct 22 2020 Carl George - 0.1.0-1.20201016gita11d3c3 - Split gschema overrides to seperate files * Tue Oct 20 2020 Carl George - 0.1.0-0.9.20201016gita11d3c3 - Latest upstream commit - Sync shortcut overrides with pop-session - Move shortcut overrides to a subpackage - Open shortcuts website if pop-shell-shortcuts is not installed * Fri Oct 02 2020 Carl George - 0.1.0-0.8.20201001gitff702bc - Latest upstream commit - Include new color-dialog file * Fri Oct 02 2020 Drew DeVore - 0.1.0-0.7.20200929gitb9f8d96 - Added override for stacking conflict * Thu Oct 01 2020 Carl George - 0.1.0-0.6.20200929gitb9f8d96 - Latest upstream commit * Mon Sep 21 2020 Carl George - 0.1.0-0.5.20200920git8791171 - Latest upstream commit * Tue Sep 15 2020 Carl George - 0.1.0-0.4.20200915gite5a80ea - Latest upstream commit * Thu Sep 10 2020 Carl George - 0.1.0-0.3.20200908git017c92e - Latest upstream commit - Add primary-super-h/l versions of toggle-tiled-left/right keybindings * Fri Aug 28 2020 Carl George - 0.1.0-0.2.20200821git8416328 - Add keyboard shortcut overrides * Thu Aug 27 2020 Carl George - 0.1.0-0.1.20200821git8416328 - Initial package