2007-01-16 00:42:22 +01:00
|
|
|
#
|
2011-01-14 17:34:40 +01:00
|
|
|
# spec file for package xfce4-session
|
2010-12-08 14:30:09 +01:00
|
|
|
#
|
2017-05-17 18:03:52 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-12-08 14:30:09 +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.
|
|
|
|
|
2007-01-16 00:42:22 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-15 17:22:20 +01:00
|
|
|
|
2019-08-15 03:06:01 +02:00
|
|
|
%bcond_with git
|
2007-01-16 00:42:22 +01:00
|
|
|
Name: xfce4-session
|
2019-08-15 03:06:01 +02:00
|
|
|
Version: 4.14.0
|
2011-12-14 14:22:56 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Xfce Session Manager
|
2012-04-19 15:01:43 +02:00
|
|
|
License: GPL-2.0
|
2007-10-22 18:04:56 +02:00
|
|
|
Group: System/GUI/XFCE
|
2019-08-15 03:06:01 +02:00
|
|
|
URL: https://docs.xfce.org/xfce/xfce4-session/start
|
|
|
|
%if %{with git}
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
# PATCH-FIX-OPENSUSE xfce4-session-adapt-session-scripts-git.patch bnc#789057 maurizio.galli@gmail.com-- Adapt upstream sessions script to openSUSE.
|
|
|
|
Patch0: xfce4-session-adapt-session-scripts-git.patch
|
|
|
|
# PATCH-FIX-OPENSUSE add-light-locker-support.patch maurizio.galli@gmail.com -- add light-locker to xflock4 script.
|
|
|
|
Patch2: add-light-locker-support-git.patch
|
|
|
|
%else
|
|
|
|
Source0: https://archive.xfce.org/src/xfce/xfce4-session/4.13/%{name}-%{version}.tar.bz2
|
|
|
|
# PATCH-FIX-OPENSUSE xfce4-session-adapt-session-scripts.patch bnc#789057 gber@opensuse.org -- Adapt upstream sessions script to openSUSE.
|
2012-06-04 21:39:12 +02:00
|
|
|
Patch1: xfce4-session-adapt-session-scripts.patch
|
2019-08-15 03:06:01 +02:00
|
|
|
# PATCH-FIX-OPENSUSE add-light-locker-support.patch -- add light-locker to xflock4 script.
|
|
|
|
Patch3: add-light-locker-support.patch
|
|
|
|
%endif
|
2012-09-01 00:41:01 +02:00
|
|
|
BuildRequires: iceauth
|
2010-12-03 02:57:38 +01:00
|
|
|
BuildRequires: intltool
|
2019-08-15 03:06:01 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkgconfig
|
2011-12-14 14:22:56 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2013-08-07 23:20:36 +02:00
|
|
|
BuildRequires: xfce4-dev-tools
|
2012-03-31 12:19:07 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2010-12-03 02:57:38 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
2012-03-31 12:19:07 +02:00
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
2011-12-14 14:22:56 +01:00
|
|
|
BuildRequires: pkgconfig(gnome-keyring-1)
|
2019-08-15 03:06:01 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0
|
2012-09-01 00:41:01 +02:00
|
|
|
BuildRequires: pkgconfig(ice)
|
2019-08-15 03:06:01 +02:00
|
|
|
BuildRequires: pkgconfig(libwnck-3.0) >= 3.10
|
2011-12-14 14:22:56 +01:00
|
|
|
BuildRequires: pkgconfig(libxfce4panel-1.0)
|
2019-08-15 03:06:01 +02:00
|
|
|
BuildRequires: pkgconfig(libxfce4ui-2) >= 4.12.0
|
|
|
|
BuildRequires: pkgconfig(libxfce4util-1.0) >= 4.12.0
|
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.102
|
2012-02-20 14:21:07 +01:00
|
|
|
BuildRequires: pkgconfig(sm)
|
2017-12-18 16:24:49 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(atk)
|
2012-03-31 12:19:07 +02:00
|
|
|
Requires: %{name}-branding = %{version}
|
2013-06-07 11:26:12 +02:00
|
|
|
Requires: systemd
|
2012-03-31 12:19:07 +02:00
|
|
|
Requires: xfce4-settings
|
|
|
|
Requires: xfconf
|
2013-10-11 09:38:31 +02:00
|
|
|
# bnc#845264
|
|
|
|
Requires: iceauth
|
2017-05-17 18:03:52 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2012-03-31 12:19:07 +02:00
|
|
|
Recommends: %{name}-doc = %{version}
|
|
|
|
Recommends: %{name}-lang = %{version}
|
2012-04-26 11:14:31 +02:00
|
|
|
# minimal packages for an Xfce session
|
|
|
|
Recommends: xfwm4
|
|
|
|
Recommends: xfdesktop
|
|
|
|
Recommends: thunar
|
|
|
|
Recommends: xfce4-panel
|
|
|
|
# xfce4-about needs to be dragged at a low level
|
|
|
|
Recommends: libxfce4ui-tools
|
2019-08-15 03:06:01 +02:00
|
|
|
Obsoletes: xfce4-session-devel < %{version}
|
|
|
|
Obsoletes: libxfsm-4_6-0 < %{version}
|
2007-01-16 00:42:22 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
xfce4-session is the session manager for the Xfce desktop environment.
|
|
|
|
|
2009-03-09 00:31:39 +01:00
|
|
|
%package branding-upstream
|
2012-03-31 12:19:07 +02:00
|
|
|
Summary: Upstream Branding of xfce4-session
|
2011-12-14 14:22:56 +01:00
|
|
|
Group: System/GUI/XFCE
|
2010-12-03 02:57:38 +01:00
|
|
|
Supplements: packageand(%{name}:branding-upstream)
|
2009-03-09 00:31:39 +01:00
|
|
|
Conflicts: otherproviders(%{name}-branding)
|
2015-03-01 22:01:08 +01:00
|
|
|
Provides: %{name}-branding = %{version}
|
2010-12-27 17:14:46 +01:00
|
|
|
# BRAND: xfce4-session.xml: Control session parameters such as the tools and
|
|
|
|
# BRAND: applications started by default or the splash theme.
|
2010-02-09 18:50:17 +01:00
|
|
|
BuildArch: noarch
|
2009-03-09 00:31:39 +01:00
|
|
|
|
|
|
|
%description branding-upstream
|
2011-01-05 19:07:31 +01:00
|
|
|
This package provides the upstream look and feel for the Xfce Session Manager.
|
2010-12-27 16:49:14 +01:00
|
|
|
|
2012-03-31 12:19:07 +02:00
|
|
|
%lang_package
|
|
|
|
|
2007-01-16 00:42:22 +01:00
|
|
|
%prep
|
2019-04-01 17:54:12 +02:00
|
|
|
%autosetup -p1
|
2007-01-16 00:42:22 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-15 03:06:01 +02:00
|
|
|
%if %{with git}
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
%configure \
|
|
|
|
--enable-maintainer-mode \
|
|
|
|
--disable-static
|
|
|
|
%else
|
2009-03-09 00:31:39 +01:00
|
|
|
%configure \
|
2013-06-07 11:36:51 +02:00
|
|
|
--disable-static
|
2019-08-15 03:06:01 +02:00
|
|
|
%endif
|
|
|
|
%make_build
|
2007-01-16 00:42:22 +01:00
|
|
|
|
|
|
|
%install
|
2010-12-03 02:57:38 +01:00
|
|
|
%make_install
|
2012-03-31 12:19:07 +02:00
|
|
|
|
2019-08-15 03:06:01 +02:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}/icons/hicolor/*
|
|
|
|
|
2012-04-26 11:14:31 +02:00
|
|
|
chmod 755 %{buildroot}%{_sysconfdir}/xdg/xfce4/xinitrc
|
|
|
|
|
2012-06-04 21:39:12 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/xfce/applications
|
|
|
|
|
2012-04-26 11:14:31 +02:00
|
|
|
# add back X-XFCE for now; this is a personal and not a system setting
|
|
|
|
%suse_update_desktop_file -r xfce-session-settings XFCE X-XFCE GTK Settings DesktopSettings X-XFCE-SettingsDialog X-XFCE-PersonalSettings
|
2010-12-27 16:49:14 +01:00
|
|
|
%suse_update_desktop_file xfce4-session-logout
|
2012-03-31 12:19:07 +02:00
|
|
|
|
2008-11-06 01:02:35 +01:00
|
|
|
%find_lang %{name}
|
2012-03-31 12:19:07 +02:00
|
|
|
|
2015-03-01 22:01:08 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
# not needed, shutdown/reboot happens via systemd
|
|
|
|
rm %{buildroot}%{_datadir}/polkit-1/actions/org.xfce.session.policy \
|
|
|
|
%{buildroot}%{_libdir}/xfce4/session/xfsm-shutdown-helper
|
2010-12-03 02:57:38 +01:00
|
|
|
|
2017-05-17 18:03:52 +02:00
|
|
|
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-08-15 03:06:01 +02:00
|
|
|
# remove xscreensaver desktop file. We use xfce4-screensaver instead.
|
|
|
|
rm %{buildroot}%{_sysconfdir}/xdg/autostart/xscreensaver.desktop
|
2012-03-31 12:19:07 +02:00
|
|
|
|
2010-12-03 02:57:38 +01:00
|
|
|
%post
|
2017-05-17 18:03:52 +02:00
|
|
|
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
|
|
|
|
default-xsession.desktop %{_datadir}/xsessions/xfce.desktop 20
|
2010-12-03 02:57:38 +01:00
|
|
|
|
2011-02-18 01:22:15 +01:00
|
|
|
%postun
|
2017-05-17 18:03:52 +02:00
|
|
|
[ -f %{_datadir}/xsessions/xfce.desktop ] || %{_sbindir}/update-alternatives \
|
|
|
|
--remove default-xsession.desktop %{_datadir}/xsessions/xfce.desktop
|
2007-01-16 00:42:22 +01:00
|
|
|
|
2012-03-31 12:19:07 +02:00
|
|
|
%files
|
2019-08-15 03:06:01 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS BUGS NEWS README TODO
|
2012-04-26 11:14:31 +02:00
|
|
|
%dir %{_sysconfdir}/xdg/xfce4
|
|
|
|
%config %{_sysconfdir}/xdg/xfce4/Xft.xrdb
|
|
|
|
%{_sysconfdir}/xdg/xfce4/xinitrc
|
2010-12-03 02:57:38 +01:00
|
|
|
%{_bindir}/xfce4-session
|
|
|
|
%{_bindir}/xfce4-session-logout
|
|
|
|
%{_bindir}/xfce4-session-settings
|
2012-04-26 11:14:31 +02:00
|
|
|
%{_bindir}/xflock4
|
|
|
|
%{_bindir}/startxfce4
|
2009-03-09 00:31:39 +01:00
|
|
|
%{_libdir}/xfce4
|
2012-06-04 21:39:12 +02:00
|
|
|
%{_datadir}/xfce
|
2012-04-26 11:14:31 +02:00
|
|
|
%{_datadir}/xsessions/xfce.desktop
|
2017-07-05 16:05:52 +02:00
|
|
|
%{_datadir}/xsessions/default.desktop
|
2019-08-15 03:06:01 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/default.desktop
|
2017-05-17 18:03:52 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
|
2012-03-31 12:19:07 +02:00
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/icons/*/*/*
|
|
|
|
%doc %{_mandir}/man1/xfce4-session*.1*
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2009-03-09 00:31:39 +01:00
|
|
|
|
|
|
|
%files branding-upstream
|
|
|
|
%dir %{_sysconfdir}/xdg/xfce4
|
|
|
|
%dir %{_sysconfdir}/xdg/xfce4/xfconf
|
|
|
|
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
|
2010-12-27 16:49:14 +01:00
|
|
|
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
|
2007-12-03 23:55:31 +01:00
|
|
|
|
2007-03-03 14:38:26 +01:00
|
|
|
%changelog
|
2019-08-15 03:06:01 +02:00
|
|
|
|