- Add default-xsession which fvogt@suse.com added to

(now deprecated) lxqt-common in the past

OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-session?expand=0&rev=7
This commit is contained in:
Michael Vetter 2017-10-25 22:05:19 +00:00 committed by Git OBS Bridge
parent 3b43613159
commit 4cd0997418
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 25 22:00:41 UTC 2017 - mvetter@suse.com
- Add default-xsession which fvogt@suse.com added to
(now deprecated) lxqt-common in the past
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 23 11:37:19 UTC 2017 - mvetter@suse.com Mon Oct 23 11:37:19 UTC 2017 - mvetter@suse.com

View File

@ -38,6 +38,8 @@ BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb) BuildRequires: pkgconfig(x11-xcb)
BuildRequires: xdg-user-dirs BuildRequires: xdg-user-dirs
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: %{name}-lang Recommends: %{name}-lang
Obsoletes: lxqt-common Obsoletes: lxqt-common
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -61,6 +63,19 @@ make %{?_smp_mflags}
%cmake_install %cmake_install
%fdupes -s %{buildroot}/%{_datadir} %fdupes -s %{buildroot}/%{_datadir}
# for default-xsession
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
ln -s %{_sysconfdir}/alternatives/default-xsession.desktop %{buildroot}%{_datadir}/xsessions/default.desktop
%post
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
default-xsession.desktop %{_datadir}/xsessions/lxqt.desktop 20
%postun
[ -f %{_datadir}/xsessions/lxqt.desktop ] || %{_sbindir}/update-alternatives \
--remove default-xsession.desktop %{_datadir}/xsessions/lxqt.desktop
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS LICENSE %doc AUTHORS LICENSE
@ -84,5 +99,8 @@ make %{?_smp_mflags}
%{_datadir}/kdm/sessions/lxqt.desktop %{_datadir}/kdm/sessions/lxqt.desktop
%{_mandir}/man1/startlxqt.1%{ext_man} %{_mandir}/man1/startlxqt.1%{ext_man}
%{_datadir}/xsessions/lxqt.desktop %{_datadir}/xsessions/lxqt.desktop
# for default-xsession
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
%{_datadir}/xsessions/*.desktop
%changelog %changelog