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
2012-03-31 12:19:07 +02:00
%define libname libxfsm-4_6-0
2007-01-16 00:42:22 +01:00
Name : xfce4-session
2015-03-16 10:05:20 +01:00
Version : 4.12.1
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
2012-03-31 12:19:07 +02:00
Url : http://docs.xfce.org/xfce/xfce4-session/start
2015-03-01 22:01:08 +01:00
Source0 : http://archive.xfce.org/src/xfce/xfce4-session/4.12/%{name} -%{version} .tar.bz2
2011-02-02 20:22:24 +01:00
# PATCH-FEATURE-OPENSUSE xfce4-session-simple-splash-remove-shadows.patch gber@opensuse.org -- Improves readability of the simple splash engine text by removing the text shadows
2011-07-26 09:41:09 +02:00
Patch0 : xfce4-session-simple-splash-remove-shadows.patch
2013-01-28 17:15:04 +01:00
# 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
2016-09-23 11:28:23 +02:00
# PATCH-FIX-UPSTREAM xfce4-session-Make-verbose-logging-conditional.patch boo#999676
Patch2 : xfce4-session-Make-verbose-logging-conditional.patch
2017-12-30 14:52:31 +01:00
# PATCH-FIX-OPENSUSE xfce4-session-systemd-user-addons.patch seife+dev@b1-systems.com -- fix systemd-user session settings
Patch3 : xfce4-session-systemd-user-addons.patch
2018-10-24 17:17:41 +02:00
Patch4 : add-light-locker-support.patch
2012-09-01 00:41:01 +02:00
BuildRequires : iceauth
2010-12-03 02:57:38 +01:00
BuildRequires : intltool
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)
2012-03-31 12:19:07 +02:00
BuildRequires : pkgconfig(gtk+-2.0)
2012-09-01 00:41:01 +02:00
BuildRequires : pkgconfig(ice)
2010-12-03 02:57:38 +01:00
BuildRequires : pkgconfig(libwnck-1.0)
2011-12-14 14:22:56 +01:00
BuildRequires : pkgconfig(libxfce4panel-1.0)
2010-12-03 02:57:38 +01:00
BuildRequires : pkgconfig(libxfce4ui-1)
BuildRequires : pkgconfig(libxfce4util-1.0)
2013-06-07 11:26:12 +02:00
BuildRequires : pkgconfig(polkit-gobject-1) >= 0.100
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
2015-03-01 22:01:08 +01:00
Provides : xfce-utils = %{version}
Obsoletes : xfce-utils <= 4.8.3
Provides : xfce-utils-doc = %{version}
Obsoletes : xfce-utils-doc <= 4.8.3
Provides : xfce-utils-lang = %{version}
Obsoletes : xfce-utils-lang <= 4.8.3
Provides : xfce4-session-doc = %{version}
Obsoletes : xfce4-session-doc <= 4.8.3
2010-12-03 02:57:38 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-01-16 00:42:22 +01:00
%description
xfce4-session is the session manager for the Xfce desktop environment.
2012-03-31 12:19:07 +02:00
%package -n %{libname}
Summary : Shared Library for xfce4-session Splash Screen Engines
Group : System/Libraries
%description -n %{libname}
This package contains the shared library for xfce4-session splash screen
engines.
2007-01-24 02:12:08 +01:00
%package devel
2012-03-31 12:19:07 +02:00
Summary : Development Files for xfce4-session
2010-12-27 16:49:14 +01:00
Group : Development/Libraries/C and C++
2012-04-19 10:43:00 +02:00
Requires : %{libname} = %{version}
2007-01-24 02:12:08 +01:00
%description devel
2012-03-31 12:19:07 +02:00
This package contains development files needed to develop custom splash screen
engines for the xfce4-session.
2007-01-24 02:12:08 +01:00
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
2013-08-07 23:20:36 +02:00
xdt-autogen
2009-03-09 00:31:39 +01:00
%configure \
2013-06-07 11:36:51 +02:00
--disable-static
2010-12-27 19:10:20 +01:00
make %{?_smp_mflags} V=1
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
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 " * . l a " -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
2012-03-31 12:19:07 +02:00
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
2010-12-03 02:57:38 +01:00
%post
2011-02-18 01:22:15 +01:00
%desktop_database_post
%icon_theme_cache_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
%desktop_database_postun
%icon_theme_cache_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
2007-01-16 00:42:22 +01:00
%defattr (-,root,root)
2011-10-21 23:39:45 +02:00
%doc AUTHORS BUGS COPYING ChangeLog 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
%{_sysconfdir} /xdg/autostart/xscreensaver.desktop
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
2017-05-17 18:03:52 +02:00
%ghost %{_sysconfdir} /alternatives/default-xsession.desktop
2007-01-16 00:42:22 +01:00
%{_datadir} /themes/*
2012-03-31 12:19:07 +02:00
%{_datadir} /applications/*.desktop
%{_datadir} /icons/*/*/*
%doc %{_mandir} /man1/xfce4-session*.1*
%files -n %{libname}
%defattr (-,root,root)
%doc COPYING
%{_libdir} /libxfsm-*.so.*
%files lang -f %{name}.lang
2015-03-01 22:01:08 +01:00
%defattr (-,root,root)
2012-03-31 12:19:07 +02:00
2007-01-24 02:12:08 +01:00
%files devel
%defattr (-,root,root)
2012-03-31 12:19:07 +02:00
%dir %{_includedir} /xfce4
%{_includedir} /xfce4/xfce4-session-*/
%{_libdir} /pkgconfig/xfce4-session-*.pc
%{_libdir} /libxfsm-*.so
2009-03-09 00:31:39 +01:00
%files branding-upstream
%defattr (-,root,root)
%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