forked from pool/gnome-shell-extensions
Accepting request 528342 from GNOME:Next
Reusbmit, after coolo found a stupid mistake OBS-URL: https://build.opensuse.org/request/show/528342 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extensions?expand=0&rev=136
This commit is contained in:
parent
063f00037f
commit
26d91566ea
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 22 08:44:34 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Register SLE-Classic with u-a handler for default.desktop
|
||||||
|
implementation, which obsoletes the change in
|
||||||
|
/etc/sysconfig/windowmanager to pick the 'default window manager'
|
||||||
|
(boo#1039756).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 18 06:38:10 UTC 2017 - xwang@suse.com
|
Mon Sep 18 06:38:10 UTC 2017 - xwang@suse.com
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%global __requires_exclude typelib\\(Meta\\)
|
%global __requires_exclude typelib\\(Meta\\)
|
||||||
|
|
||||||
Name: gnome-shell-extensions
|
Name: gnome-shell-extensions
|
||||||
Version: 3.26.0
|
Version: 3.26.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -41,15 +40,15 @@ Patch3: sle-classic-lock-screen-background.patch
|
|||||||
Patch1000: gse-sle-classic-ext.patch
|
Patch1000: gse-sle-classic-ext.patch
|
||||||
# Needed because we build a tarball generated with "git archive"
|
# Needed because we build a tarball generated with "git archive"
|
||||||
BuildRequires: gnome-common
|
BuildRequires: gnome-common
|
||||||
# Needed for directory ownership
|
|
||||||
BuildRequires: gnome-shell
|
|
||||||
# gobject-introspection is needed for the typelib() rpm magic.
|
# gobject-introspection is needed for the typelib() rpm magic.
|
||||||
BuildRequires: gnome-patch-translation
|
BuildRequires: gnome-patch-translation
|
||||||
|
# Needed for directory ownership
|
||||||
|
BuildRequires: gnome-shell
|
||||||
BuildRequires: gobject-introspection
|
BuildRequires: gobject-introspection
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: translation-update-upstream
|
BuildRequires: translation-update-upstream
|
||||||
BuildRequires: pkgconfig(gio-2.0)
|
BuildRequires: pkgconfig(gio-2.0)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -92,8 +91,8 @@ menu, and provides the ability to hibernate.
|
|||||||
This package provides the extensions required to switch to gnome-shell classic
|
This package provides the extensions required to switch to gnome-shell classic
|
||||||
and also installs the required session files.
|
and also installs the required session files.
|
||||||
|
|
||||||
|
|
||||||
%lang_package -n %{name}-common
|
%lang_package -n %{name}-common
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%if !0%{?is_opensuse}
|
%if !0%{?is_opensuse}
|
||||||
@ -107,7 +106,7 @@ gnome-patch-translation-prepare
|
|||||||
##gnome-patch-translation-update
|
##gnome-patch-translation-update
|
||||||
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
|
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
|
||||||
sed -i "s:Exec=gnome-session:Exec=gnome:g" data/gnome-classic.desktop.in
|
sed -i "s:Exec=gnome-session:Exec=gnome:g" data/gnome-classic.desktop.in
|
||||||
cp %{S:1} .
|
cp %{SOURCE1} .
|
||||||
%if !0%{?is_opensuse}
|
%if !0%{?is_opensuse}
|
||||||
sed -i -e 's/openSUSE/SUSE Linux Enterprise/g' README.SUSE
|
sed -i -e 's/openSUSE/SUSE Linux Enterprise/g' README.SUSE
|
||||||
%endif
|
%endif
|
||||||
@ -126,13 +125,29 @@ make %{?_smp_mflags}
|
|||||||
%make_install
|
%make_install
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
%if !0%{?is_opensuse}
|
%if !0%{?is_opensuse}
|
||||||
install -m0644 %{S:2} %{buildroot}/%{_datadir}/xsessions/sle-classic.desktop
|
install -m0644 %{SOURCE2} %{buildroot}/%{_datadir}/xsessions/sle-classic.desktop
|
||||||
# Install SLE theme
|
# Install SLE theme
|
||||||
tar -xzvf %{SOURCE3}
|
tar -xzvf %{SOURCE3}
|
||||||
install -d %{buildroot}%{_datadir}/gnome-shell/theme
|
install -d %{buildroot}%{_datadir}/gnome-shell/theme
|
||||||
cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme
|
cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme
|
||||||
|
|
||||||
|
# Prepare for 'default.desktop' being update-alternative handled, boo#1039756
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
|
||||||
|
ln -s %{_sysconfdir}/alternatives/default-xsession.desktop %{buildroot}%{_datadir}/xsessions/default.desktop
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if !0%{?is_opensuse}
|
||||||
|
%post -n gnome-shell-classic
|
||||||
|
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
|
||||||
|
default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop 30
|
||||||
|
|
||||||
|
%postun -n gnome-shell-classic
|
||||||
|
[ -f %{_datadir}/xsessions/sle-classic.desktop ] || %{_sbindir}/update-alternatives \
|
||||||
|
--remove default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files common
|
%files common
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COPYING README.SUSE
|
%doc COPYING README.SUSE
|
||||||
@ -164,8 +179,10 @@ cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme
|
|||||||
%{_datadir}/gnome-shell/theme/gnome-classic-high-contrast.css
|
%{_datadir}/gnome-shell/theme/gnome-classic-high-contrast.css
|
||||||
%{_datadir}/xsessions/gnome-classic.desktop
|
%{_datadir}/xsessions/gnome-classic.desktop
|
||||||
%if !0%{?is_opensuse}
|
%if !0%{?is_opensuse}
|
||||||
|
%{_datadir}/xsessions/default.desktop
|
||||||
%{_datadir}/xsessions/sle-classic.desktop
|
%{_datadir}/xsessions/sle-classic.desktop
|
||||||
%{_datadir}/gnome-shell/theme/sle-background.png
|
%{_datadir}/gnome-shell/theme/sle-background.png
|
||||||
|
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files common-lang -f %{name}.lang
|
%files common-lang -f %{name}.lang
|
||||||
|
Loading…
Reference in New Issue
Block a user