File project.diff of Package gnome-shell-xrdesktop
--- gnome-shell.spec.orig
+++ gnome-shell.spec
@@ -1,5 +1,5 @@
#
-# spec file for package gnome-shell
+# spec file for package gnome-shell-xrdesktop
#
# Copyright (c) 2022 SUSE LLC
#
@@ -17,8 +17,9 @@
%global __requires_exclude typelib\\(Meta\\)
+%global _basename gnome-shell
-Name: gnome-shell
+Name: gnome-shell-xrdesktop
Version: 42.3.1
Release: 0
Summary: GNOME Shell
@@ -27,8 +28,8 @@ License: GPL-2.0-or-later AND LGP
Group: System/GUI/GNOME
URL: https://wiki.gnome.org/Projects/GnomeShell
# Source url disabled as we are using a git checkout via source service
-#Source0: https://download.gnome.org/sources/gnome-shell/41/%%{name}-%%{version}.tar.xz
-Source0: %{name}-%{version}.tar.xz
+#Source0: https://download.gnome.org/sources/gnome-shell/41/%%{_basename}-%%{version}.tar.xz
+Source0: %{_basename}-%{version}.tar.xz
# SOURCE-FEATURE-SLE aboutMenu fate#314545 dliang@suse.com -- Add an applet on login UI to display suse icon, product name, hostname.
Source1: aboutMenu.js
@@ -62,6 +63,9 @@ Patch1009: gnome-shell-fate324570-M
# PATCH-FIX-UPSTREAM gnome-shell-jsc#SLE-16051-Input-method-recommendation.patch jsc#SLE-16051 glgo#GNOME/gnome-shell!1563 qzhao@suse.com -- launch recommended input engines when Gnome-shell init in CJK regions.
Patch1010: gnome-shell-jsc#SLE-16051-Input-method-recommendation.patch
+Patch2000: gnome-shell-xrdesktop.patch
+Patch2001: patch-for-the-patch.patch
+
# needed for directory ownership
BuildRequires: asciidoc
BuildRequires: dbus-1
@@ -99,6 +103,7 @@ BuildRequires: pkgconfig(libcanberra-gt
BuildRequires: pkgconfig(libecal-2.0) >= 3.33.1
BuildRequires: pkgconfig(libedataserver-1.2) >= 3.33.1
BuildRequires: pkgconfig(libgnome-menu-3.0) >= 3.5.3
+BuildRequires: pkgconfig(libinputsynth-0.16)
BuildRequires: pkgconfig(libmutter-10) >= 41.0
BuildRequires: pkgconfig(libnm) >= 1.10.4
BuildRequires: pkgconfig(libpipewire-0.3)
@@ -112,8 +117,10 @@ BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(mutter-clutter-10) >= 41.0
BuildRequires: pkgconfig(mutter-cogl-10) >= 41.0
BuildRequires: pkgconfig(mutter-cogl-pango-10) >= 41.0
+BuildRequires: pkgconfig(openxr)
BuildRequires: pkgconfig(polkit-agent-1) >= 0.100
BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(xrdesktop-0.16)
BuildRequires: python(abi) >= 3
Requires: gdk-pixbuf-loader-rsvg
Requires: gstreamer-plugin-pipewire
@@ -138,6 +145,8 @@ Recommends: gnome-clocks
Provides: dbus(org.freedesktop.Notifications)
# gnome-shell-browser-plugin dropped in 3.31.4
Obsoletes: gnome-shell-browser-plugin <= %{version}
+Conflicts: %{_basename}
+Provides: %{_basename} = %{version}
%description
The GNOME Shell redefines user interactions with the GNOME desktop. In
@@ -148,6 +157,7 @@ documents, and organizing open windows i
Summary: Development files for GNOME Shell
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
+Conflicts: %{_basename}-devel
%description devel
The GNOME Shell redefines user interactions with the GNOME desktop. In
@@ -158,6 +168,7 @@ documents, and organizing open windows i
Summary: Evolution Calendar support for GNOME Shell
Group: System/GUI/GNOME
Requires: %{name} = %{version}
+Conflicts: %{_basename}-calendar
# The clock / calendar applet in the panel requires e-d-s (bnc#795793).
Requires: evolution-data-server
Supplements: (%{name} and evolution-data-server)
@@ -166,18 +177,10 @@ Supplements: (%{name} and evolution-d
This package adds support for Evolution Calendar, such as appointments
into GNOME Shell calendar.
-%package -n gnome-extensions
-Summary: Extensions app for GNOME Shell
-Group: System/GUI/GNOME
-Requires: %{name} = %{version}
-
-%description -n gnome-extensions
-This package contains an optional extensions app for managing GNOME Shell extensions.
-
%lang_package
%prep
-%setup -q
+%setup -qn %{_basename}-%{version}
%patch1 -p1
%patch5 -p1
%patch7 -p1
@@ -196,6 +199,9 @@ This package contains an optional extens
%endif
%endif
+%patch2000 -p1
+%patch2001 -p1
+
cp %{SOURCE2} data/theme/
%if 0%{?sle_version}
cp %{SOURCE1} js/ui/
@@ -203,11 +209,13 @@ cp %{SOURCE1} js/ui/
%build
%meson \
- --libexecdir=%{_libexecdir}/%{name} \
+ --libexecdir=%{_libexecdir}/%{_basename} \
-Dgtk_doc=true \
-Dman=true \
-Dnetworkmanager=true \
-Dsystemd=true \
+ -Dextensions_app=false \
+ -Dextensions_tool=false \
%{nil}
%meson_build
@@ -217,7 +225,7 @@ cp %{SOURCE1} js/ui/
install -d %{buildroot}%{_datadir}/gnome-shell/extensions
# This is the directory where search providers get installed
install -d %{buildroot}%{_datadir}/gnome-shell/search-providers
-%find_lang %{name} %{?no_lang_C}
+%find_lang %{_basename} %{?no_lang_C}
# Work around race, as reported in bnc#844891 & bgo#709313.
install -d %{buildroot}%{_datadir}/gnome-shell/modes
%fdupes %{buildroot}%{_prefix}
@@ -229,6 +237,7 @@ rm -f %{buildroot}%{_datadir}/icons/hico
%doc README.md NEWS
%{_bindir}/gnome-shell
%{_bindir}/gnome-shell-extension-prefs
+%{_bindir}/gnome-shell-set-vr
%dir %{_libdir}/gnome-shell
%dir %{_libexecdir}/gnome-shell
%exclude %{_libexecdir}/gnome-shell/gnome-shell-calendar-server
@@ -306,7 +315,6 @@ rm -f %{buildroot}%{_datadir}/icons/hico
%files devel
%doc HACKING.md
%doc %{_datadir}/gtk-doc/html
-%{_bindir}/gnome-shell-extension-tool
%{_bindir}/gnome-shell-perf-tool
%{_datadir}/gnome-shell/*.gir
%dir %{_datadir}/gnome-shell/gir-1.0
@@ -317,20 +325,6 @@ rm -f %{buildroot}%{_datadir}/icons/hico
%{_libexecdir}/gnome-shell/gnome-shell-calendar-server
%{_datadir}/dbus-1/services/org.gnome.Shell.CalendarServer.service
-%files -n gnome-extensions
-%{_bindir}/gnome-extensions
-%{_bindir}/gnome-extensions-app
-%{_datadir}/applications/org.gnome.Extensions.desktop
-%{_mandir}/man?/gnome-extensions.?%{ext_man}
-%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Extensions.svg
-%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Extensions-symbolic.svg
-%{_datadir}/bash-completion/completions/gnome-extensions
-%{_datadir}/dbus-1/services/org.gnome.Extensions.service
-%{_datadir}/gnome-shell/org.gnome.Extensions
-%{_datadir}/gnome-shell/org.gnome.Extensions.data.gresource
-%{_datadir}/gnome-shell/org.gnome.Extensions.src.gresource
-%{_datadir}/metainfo/org.gnome.Extensions.metainfo.xml
-
-%files lang -f %{name}.lang
+%files lang -f %{_basename}.lang
%changelog