Merge branch 'f41' into c10s
Resolves: RHEL-54599 Add gnome-shell-extension-no-overview to RHEL 10
This commit is contained in:
commit
572726d61d
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
27
gnome-shell-extension-no-overview-HEAD.patch
Normal file
27
gnome-shell-extension-no-overview-HEAD.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From b0d987702a63f27a062fd2e2da5d99cc0799972e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Takao Fujiwara <tfujiwar@redhat.com>
|
||||||
|
Date: Fri, 6 Sep 2024 13:50:52 +0900
|
||||||
|
Subject: [PATCH] Add gnome-shell-47
|
||||||
|
|
||||||
|
---
|
||||||
|
metadata.json | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/metadata.json b/metadata.json
|
||||||
|
index 695d317..57cfc5d 100644
|
||||||
|
--- a/metadata.json
|
||||||
|
+++ b/metadata.json
|
||||||
|
@@ -3,8 +3,8 @@
|
||||||
|
"description": "No overview at start-up. Nothing more.",
|
||||||
|
"name": "No overview at start-up",
|
||||||
|
"original-authors": ["fthx"],
|
||||||
|
- "shell-version": ["46"],
|
||||||
|
+ "shell-version": ["46", "47"],
|
||||||
|
"url": "https://github.com/fthx/no-overview",
|
||||||
|
"uuid": "no-overview@fthx",
|
||||||
|
"version": 999
|
||||||
|
}
|
||||||
|
\ No newline at end of file
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
@ -12,6 +12,7 @@ Source0: https://github.com/fthx/no-overview/archive/refs/tags/v%{version
|
|||||||
Source1: https://raw.githubusercontent.com/fthx/no-overview/main/LICENSE#/%{extension}-LICENSE
|
Source1: https://raw.githubusercontent.com/fthx/no-overview/main/LICENSE#/%{extension}-LICENSE
|
||||||
Source2: https://raw.githubusercontent.com/fthx/no-overview/main/README.md#/%{extension}-README.md
|
Source2: https://raw.githubusercontent.com/fthx/no-overview/main/README.md#/%{extension}-README.md
|
||||||
#Patch0: %%{name}-HEAD.patch
|
#Patch0: %%{name}-HEAD.patch
|
||||||
|
Patch0: %{name}-HEAD.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# rhbz#2001561 Delete to require gnome-shell-extension-common
|
# rhbz#2001561 Delete to require gnome-shell-extension-common
|
||||||
#Requires: gnome-shell-extension-common
|
#Requires: gnome-shell-extension-common
|
||||||
|
5
plans/test.fmf
Normal file
5
plans/test.fmf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
summary: Basic smoke test
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
execute:
|
||||||
|
how: tmt
|
8
tests/validation/main.fmf
Normal file
8
tests/validation/main.fmf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
summary: Lint check for GNOME-Shell extension files
|
||||||
|
test: ./test.sh
|
||||||
|
framework: beakerlib
|
||||||
|
require:
|
||||||
|
- gjs
|
||||||
|
- glib2
|
||||||
|
- gnome-shell-extension-no-overview
|
||||||
|
- json-glib-devel
|
17
tests/validation/main.js
Normal file
17
tests/validation/main.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import GObject from 'gi://GObject';
|
||||||
|
|
||||||
|
export const LayoutManager = GObject.registerClass(
|
||||||
|
class LayoutManager extends GObject.Object {
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this._startingUp = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
connectObject(object) {
|
||||||
|
}
|
||||||
|
|
||||||
|
disconnectObject(object) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export let layoutManager = new LayoutManager();
|
7
tests/validation/test.js
Normal file
7
tests/validation/test.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import GObject from 'gi://GObject';
|
||||||
|
|
||||||
|
import NoOverviewExtension from './extension.js';
|
||||||
|
|
||||||
|
let extension = new NoOverviewExtension();
|
||||||
|
extension.enable();
|
||||||
|
extension.disable();
|
17
tests/validation/test.sh
Executable file
17
tests/validation/test.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
|
||||||
|
# gjs or js115 in mozjs115-devel provides very simple validations.
|
||||||
|
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
rlRun -t "sed -e 's|resource:.*/main.js|./main.js|' /usr/share/gnome-shell/extensions/no-overview@fthx/extension.js > extension.js"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlRun -t "json-glib-validate /usr/share/gnome-shell/extensions/no-overview@fthx/metadata.json"
|
||||||
|
rlRun -t "gjs -m test.js"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalEnd
|
Loading…
Reference in New Issue
Block a user