2014-11-13 09:17:21 +01:00
|
|
|
#
|
|
|
|
# spec file for package lxqt-session
|
|
|
|
#
|
2022-04-02 01:13:18 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-11-13 09:17:21 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-04-16 13:11:49 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-11-13 09:17:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: lxqt-session
|
2022-05-09 14:23:23 +02:00
|
|
|
Version: 1.1.1
|
2014-11-13 09:17:21 +01:00
|
|
|
Release: 0
|
2015-11-13 23:35:42 +01:00
|
|
|
Summary: LXQt Session Manager
|
2018-05-22 17:18:37 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2022-04-02 01:13:18 +02:00
|
|
|
Group: System/GUI/Other
|
2018-05-22 17:18:37 +02:00
|
|
|
URL: http://www.lxqt.org
|
2020-04-25 15:52:51 +02:00
|
|
|
Source: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
|
2016-09-25 00:01:54 +02:00
|
|
|
Source2: %{name}.keyring
|
2018-07-24 10:59:52 +02:00
|
|
|
# FIX-OPENSUSE mvetter@suse.com bsc#1099800
|
|
|
|
Patch0: lxqt-0.13.0-xdg-config-dir.patch
|
2019-02-27 11:29:57 +01:00
|
|
|
# mvetter@suse.com bsc#1127043 - Use Openbox as default WM
|
2022-04-29 08:10:42 +02:00
|
|
|
Patch1: lxqt-session-default_wm.patch
|
2015-11-13 23:35:42 +01:00
|
|
|
BuildRequires: cmake >= 3.0.2
|
2014-11-13 09:17:21 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2022-04-29 08:10:25 +02:00
|
|
|
BuildRequires: lxqt-build-tools-devel >= 0.11.0
|
2018-05-22 17:18:37 +02:00
|
|
|
BuildRequires: pkgconfig
|
2022-05-09 14:23:23 +02:00
|
|
|
BuildRequires: qtxdg-tools
|
2018-05-22 17:18:37 +02:00
|
|
|
BuildRequires: xdg-user-dirs
|
2020-11-04 14:49:17 +01:00
|
|
|
BuildRequires: cmake(KF5WindowSystem) >= 5.36.0
|
2021-11-08 10:54:45 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5UiTools) >= 5.15
|
2014-11-13 09:17:21 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Xdg)
|
2021-04-16 13:11:49 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(libprocps)
|
2015-11-13 23:35:42 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2022-04-29 08:10:25 +02:00
|
|
|
BuildRequires: pkgconfig(lxqt) >= 1.1.0
|
2014-11-13 09:17:21 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(x11-xcb)
|
2017-10-26 00:05:19 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2022-05-09 14:23:23 +02:00
|
|
|
Requires: qtxdg-tools
|
2016-09-25 00:01:54 +02:00
|
|
|
Recommends: %{name}-lang
|
2021-04-16 13:08:36 +02:00
|
|
|
Obsoletes: lxqt-common <= 0.12.0
|
|
|
|
Obsoletes: lxqt-l10n <= 0.12.0
|
2014-11-13 09:17:21 +01:00
|
|
|
|
|
|
|
%description
|
2016-09-25 00:01:54 +02:00
|
|
|
lxqt-session is the standard session manager used by LXQt. The lxqt-session manager
|
2014-11-13 09:17:21 +01:00
|
|
|
is used to automatically start a set of applications and set up a working desktop
|
|
|
|
environment. Moreover, the session manager is able to remember the applications in
|
|
|
|
use when a user logs out and to restart them the next time the user logs in.
|
|
|
|
|
2019-01-31 11:27:41 +01:00
|
|
|
%lang_package
|
|
|
|
|
2014-11-13 09:17:21 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-07-24 10:59:52 +02:00
|
|
|
%patch0 -p1
|
2022-04-29 08:10:42 +02:00
|
|
|
%patch1 -p1
|
2015-11-13 23:35:42 +01:00
|
|
|
# Changing LXQt into X-LXQt in desktop files to be freedesktop compliant and shut rpmlint warnings
|
|
|
|
#find -name '*desktop.in*' -exec sed -ri 's/(LXQt;)/X-\1/' {} +
|
2014-11-13 09:17:21 +01:00
|
|
|
|
|
|
|
%build
|
2016-09-25 00:01:54 +02:00
|
|
|
%cmake -DPULL_TRANSLATIONS=No
|
2021-04-16 13:11:49 +02:00
|
|
|
%make_build
|
2014-11-13 09:17:21 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-25 02:17:17 +01:00
|
|
|
%cmake_install
|
2018-05-09 08:27:52 +02:00
|
|
|
%fdupes %{buildroot}/%{_datadir}
|
2014-11-13 09:17:21 +01:00
|
|
|
|
2017-10-26 00:05:19 +02:00
|
|
|
# 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
|
|
|
|
|
2019-01-31 11:27:41 +01:00
|
|
|
%find_lang %{name} --with-qt
|
|
|
|
|
2017-10-26 00:05:19 +02:00
|
|
|
%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
|
|
|
|
|
2014-11-13 09:17:21 +01:00
|
|
|
%files
|
2018-05-22 17:18:37 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS
|
2014-11-13 09:17:21 +01:00
|
|
|
%{_bindir}/lxqt-config-session
|
|
|
|
%{_bindir}/lxqt-session
|
2015-02-16 21:08:25 +01:00
|
|
|
%{_bindir}/lxqt-leave
|
2014-11-13 09:17:21 +01:00
|
|
|
%{_datadir}/applications/*.desktop
|
2017-10-23 13:43:17 +02:00
|
|
|
%{_mandir}/man?/lxqt-*%{ext_man}
|
|
|
|
%config %{_sysconfdir}/xdg/autostart/lxqt-xscreensaver-autostart.desktop
|
|
|
|
%{_bindir}/startlxqt
|
2018-05-22 17:18:37 +02:00
|
|
|
%{_mandir}/man1/startlxqt.1%{?ext_man}
|
2017-10-23 13:43:17 +02:00
|
|
|
%{_datadir}/xsessions/lxqt.desktop
|
2018-05-22 18:00:54 +02:00
|
|
|
%config %{_datadir}/lxqt/lxqt.conf
|
|
|
|
%config %{_datadir}/lxqt/session.conf
|
|
|
|
%config %{_datadir}/lxqt/windowmanagers.conf
|
2018-05-22 17:18:37 +02:00
|
|
|
|
2017-10-26 00:05:19 +02:00
|
|
|
# for default-xsession
|
|
|
|
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
|
|
|
|
%{_datadir}/xsessions/*.desktop
|
2015-02-16 21:08:25 +01:00
|
|
|
|
2019-01-31 11:27:41 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%dir %{_datadir}/lxqt
|
|
|
|
%dir %{_datadir}/lxqt/translations
|
|
|
|
%{_datadir}/lxqt/translations/lxqt-config-session
|
|
|
|
%{_datadir}/lxqt/translations/lxqt-leave
|
|
|
|
%{_datadir}/lxqt/translations/lxqt-session
|
|
|
|
|
2014-11-13 09:17:21 +01:00
|
|
|
%changelog
|