From 4eef678d5a77f14918bf78124b521b7bc0fcf180 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Fri, 9 Jun 2023 16:55:03 +0300 Subject: [PATCH] import gnome-shell-extension-dash-to-panel-44-1.el9 --- .gitignore | 1 + .gnome-shell-extension-dash-to-panel.metadata | 1 + ...n-dash-to-panel-system-install-paths.patch | 29 ++++++++++++ .../gnome-shell-extension-dash-to-panel.spec | 47 +++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 .gnome-shell-extension-dash-to-panel.metadata create mode 100644 SOURCES/gnome-shell-extension-dash-to-panel-system-install-paths.patch create mode 100644 SPECS/gnome-shell-extension-dash-to-panel.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..028e41e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/gnome-shell-extension-dash-to-panel-44.tar.gz diff --git a/.gnome-shell-extension-dash-to-panel.metadata b/.gnome-shell-extension-dash-to-panel.metadata new file mode 100644 index 0000000..42f3bf6 --- /dev/null +++ b/.gnome-shell-extension-dash-to-panel.metadata @@ -0,0 +1 @@ +3c22ee95c3fb53dd1a44af182397a411e2ccb6ae SOURCES/gnome-shell-extension-dash-to-panel-44.tar.gz diff --git a/SOURCES/gnome-shell-extension-dash-to-panel-system-install-paths.patch b/SOURCES/gnome-shell-extension-dash-to-panel-system-install-paths.patch new file mode 100644 index 0000000..c2a414f --- /dev/null +++ b/SOURCES/gnome-shell-extension-dash-to-panel-system-install-paths.patch @@ -0,0 +1,29 @@ +diff -up dash-to-panel-55/Makefile.orig dash-to-panel-55/Makefile +--- dash-to-panel-55/Makefile.orig 2023-03-09 16:32:54.000000000 +0100 ++++ dash-to-panel-55/Makefile 2023-03-15 13:42:54.227368912 +0100 +@@ -10,9 +10,12 @@ EXTRA_IMAGES = highlight_stacked_bg.svg + TOLOCALIZE = prefs.js appIcons.js + MSGSRC = $(wildcard po/*.po) + ifeq ($(strip $(DESTDIR)),) ++ INSTALLTYPE = local + INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions + else ++ INSTALLTYPE = system + INSTALLBASE = $(DESTDIR)/usr/share/gnome-shell/extensions ++ SHARE_PREFIX = $(DESTDIR)/usr/share + endif + INSTALLNAME = dash-to-panel@jderose9.github.com + +@@ -71,6 +74,12 @@ install-local: _build + rm -rf $(INSTALLBASE)/$(INSTALLNAME) + mkdir -p $(INSTALLBASE)/$(INSTALLNAME) + cp -r ./_build/* $(INSTALLBASE)/$(INSTALLNAME)/ ++ifeq ($(INSTALLTYPE),system) ++ rm -r $(INSTALLBASE)/$(INSTALLNAME)/schemas $(INSTALLBASE)/$(INSTALLNAME)/locale ++ mkdir -p $(SHARE_PREFIX)/glib-2.0/schemas $(SHARE_PREFIX)/locale ++ cp -r ./schemas/*gschema.* $(SHARE_PREFIX)/glib-2.0/schemas ++ cp -r ./_build/locale/* $(SHARE_PREFIX)/locale ++endif + -rm -fR _build + echo done + diff --git a/SPECS/gnome-shell-extension-dash-to-panel.spec b/SPECS/gnome-shell-extension-dash-to-panel.spec new file mode 100644 index 0000000..a3f03b9 --- /dev/null +++ b/SPECS/gnome-shell-extension-dash-to-panel.spec @@ -0,0 +1,47 @@ +%global ename dash-to-panel +%global extdir %{_datadir}/gnome-shell/extensions/dash-to-panel@jderose9.github.com + +Name: gnome-shell-extension-%{ename} +Version: 44 +Release: 1%{?dist} +Summary: Integrated icon taskbar and status panel for Gnome Shell +License: GPL-2.0-or-later +URL: https://github.com/home-sweet-gnome/dash-to-panel +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +# correct install paths +Patch0: %{name}-system-install-paths.patch +BuildArch: noarch +BuildRequires: gettext +BuildRequires: make +BuildRequires: %{_bindir}/glib-compile-schemas +Requires: clutter +Requires: gnome-shell >= 40 + +%description +Dash to Panel is an icon taskbar for Gnome Shell. This extension moves the dash +into the gnome main panel so that the application launchers and system tray are +combined into a single panel, similar to that found in KDE Plasma and Windows +7+. A separate dock is no longer needed for easy access to running and favorited +applications. + +%prep +%autosetup -n %{ename}-%{version} -p1 + +%build +%make_build VERSION=%{version} + +%install +%make_install VERSION=%{version} +rm -v %{buildroot}%{extdir}/{COPYING,README.md} + +%find_lang %{ename} + +%files -f %{ename}.lang +%license COPYING +%doc README.md +%{extdir}/ +%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{ename}.gschema.xml + +%changelog +* Wed Jun 14 2023 MSVSphere Packaging Team - 44-1 +- Rebuilt for MSVSphere 9.2