2007-01-15 23:42:22 +00:00
#
2011-01-14 16:34:40 +00:00
# spec file for package xfce4-session
2010-12-08 13:30:09 +00:00
#
2014-10-19 08:20:43 +00:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2010-12-08 13:30:09 +00: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-15 23:42:22 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-12-15 16:22:20 +00:00
2012-03-31 10:19:07 +00:00
%define libname libxfsm-4_6-0
2007-01-15 23:42:22 +00:00
Name : xfce4-session
2013-06-07 09:26:12 +00:00
Version : 4.10.1
2011-12-14 13:22:56 +00:00
Release : 0
Summary : Xfce Session Manager
2012-04-19 13:01:43 +00:00
License : GPL-2.0
2007-10-22 16:04:56 +00:00
Group : System/GUI/XFCE
2012-03-31 10:19:07 +00:00
Url : http://docs.xfce.org/xfce/xfce4-session/start
2012-04-29 14:52:08 +00:00
Source0 : http://archive.xfce.org/src/xfce/xfce4-session/4.10/%{name} -%{version} .tar.bz2
2011-02-02 19:22:24 +00: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 07:41:09 +00:00
Patch0 : xfce4-session-simple-splash-remove-shadows.patch
2013-01-28 16:15:04 +00:00
# PATCH-FIX-OPENSUSE xfce4-session-adapt-session-scripts.patch bnc#789057 gber@opensuse.org -- Adapt upstream sessions script to openSUSE
2012-06-04 19:39:12 +00:00
Patch1 : xfce4-session-adapt-session-scripts.patch
2013-08-07 21:20:36 +00:00
# PATCH-FIX-UPSTREAM xfce4-session-systemd-suspend-hibernate-support.patch bnc#9952 gber@opensuse.org -- Add systemd suspend/hibernate support
Patch2 : xfce4-session-systemd-suspend-hibernate-support.patch
2014-10-20 19:49:37 +00:00
# PATCH-FIX-UPSTREAM xfce4-session-set-desktop-name.patch bxo#11239 gber@opensuse.org -- Set DesktopNames property in the xsession file
2014-10-19 08:29:49 +00:00
Patch3 : xfce4-session-set-desktop-name.patch
2012-08-31 22:41:01 +00:00
BuildRequires : iceauth
2010-12-03 01:57:38 +00:00
BuildRequires : intltool
2011-12-14 13:22:56 +00:00
BuildRequires : update-desktop-files
2013-08-07 21:20:36 +00:00
BuildRequires : xfce4-dev-tools
2011-12-14 13:22:56 +00:00
BuildRequires : xorg-x11
2012-03-31 10:19:07 +00:00
BuildRequires : pkgconfig(dbus-1)
2010-12-03 01:57:38 +00:00
BuildRequires : pkgconfig(dbus-glib-1)
2012-03-31 10:19:07 +00:00
BuildRequires : pkgconfig(gmodule-2.0)
2011-12-14 13:22:56 +00:00
BuildRequires : pkgconfig(gnome-keyring-1)
2012-03-31 10:19:07 +00:00
BuildRequires : pkgconfig(gtk+-2.0)
2012-08-31 22:41:01 +00:00
BuildRequires : pkgconfig(ice)
2010-12-03 01:57:38 +00:00
BuildRequires : pkgconfig(libwnck-1.0)
2011-12-14 13:22:56 +00:00
BuildRequires : pkgconfig(libxfce4panel-1.0)
2010-12-03 01:57:38 +00:00
BuildRequires : pkgconfig(libxfce4ui-1)
BuildRequires : pkgconfig(libxfce4util-1.0)
2013-06-07 09:26:12 +00:00
%if 0%{?suse_version} >= 1230
BuildRequires : pkgconfig(polkit-gobject-1) >= 0.100
%endif
2012-02-20 13:21:07 +00:00
BuildRequires : pkgconfig(sm)
2012-04-26 09:14:31 +00: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
2012-03-31 10:19:07 +00:00
Requires : %{name} -branding = %{version}
2013-06-07 09:26:12 +00:00
%if 0%{?suse_version} >= 1230
Requires : systemd
2013-08-07 21:20:36 +00:00
%else
Requires : ConsoleKit-x11
2013-06-07 09:26:12 +00:00
%endif
2012-03-31 10:19:07 +00:00
Requires : xfce4-settings
Requires : xfconf
2013-10-11 07:38:31 +00:00
# bnc#845264
Requires : iceauth
2012-03-31 10:19:07 +00:00
Recommends: %{name} -doc = %{version}
Recommends: %{name} -lang = %{version}
2012-04-26 09:14:31 +00: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
2010-12-03 01:57:38 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-01-15 23:42:22 +00:00
%description
xfce4-session is the session manager for the Xfce desktop environment.
2012-03-31 10:19:07 +00: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 01:12:08 +00:00
%package devel
2012-03-31 10:19:07 +00:00
Summary : Development Files for xfce4-session
2010-12-27 15:49:14 +00:00
Group : Development/Libraries/C and C++
2012-04-19 08:43:00 +00:00
Requires : %{libname} = %{version}
2007-01-24 01:12:08 +00:00
%description devel
2012-03-31 10:19:07 +00:00
This package contains development files needed to develop custom splash screen
engines for the xfce4-session.
2007-01-24 01:12:08 +00:00
2009-03-08 23:31:39 +00:00
%package branding-upstream
2012-03-31 10:19:07 +00:00
Summary : Upstream Branding of xfce4-session
2011-12-14 13:22:56 +00:00
Group : System/GUI/XFCE
2010-12-03 01:57:38 +00:00
Supplements: packageand(%{name} :branding-upstream)
2009-03-08 23:31:39 +00:00
Provides : %{name} -branding = %{version}
Conflicts : otherproviders(%{name} -branding)
2010-12-27 16:14:46 +00: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 17:50:17 +00:00
BuildArch : noarch
2009-03-08 23:31:39 +00:00
%description branding-upstream
2011-01-05 18:07:31 +00:00
This package provides the upstream look and feel for the Xfce Session Manager.
2010-12-27 15:49:14 +00:00
2012-03-31 10:19:07 +00:00
%lang_package
2007-01-15 23:42:22 +00:00
%prep
%setup -q
2011-07-26 07:41:09 +00:00
%patch0 -p1
2011-10-13 19:48:16 +00:00
%patch1 -p1
2013-08-07 21:20:36 +00:00
%patch2 -p1
2014-10-19 08:29:49 +00:00
%patch3 -p1
2007-01-15 23:42:22 +00:00
%build
2013-08-07 21:20:36 +00:00
xdt-autogen
2009-03-08 23:31:39 +00:00
%configure \
2013-06-07 09:36:51 +00:00
--disable-static
2010-12-27 18:10:20 +00:00
make %{?_smp_mflags} V=1
2007-01-15 23:42:22 +00:00
%install
2010-12-03 01:57:38 +00:00
%make_install
2012-03-31 10:19:07 +00:00
2012-04-26 09:14:31 +00:00
chmod 755 %{buildroot} %{_sysconfdir} /xdg/xfce4/xinitrc
2012-06-04 19:39:12 +00:00
install -d -m 755 %{buildroot} %{_datadir} /xfce/applications
2012-04-26 09:14:31 +00: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 15:49:14 +00:00
%suse_update_desktop_file xfce4-session-logout
2012-03-31 10:19:07 +00:00
2010-12-27 15:49:14 +00:00
rm -rf %{buildroot} %{_datadir} /locale/{ast,kk,tl_PH,ur_PK}
2012-03-31 10:19:07 +00:00
2008-11-06 00:02:35 +00:00
%find_lang %{name}
2012-03-31 10:19:07 +00:00
2010-12-27 15:49:14 +00:00
rm -f %{buildroot} %{_libdir} /*.la %{buildroot} %{_libdir} /xfce4/session/splash-engines/*.la
2007-01-15 23:42:22 +00:00
%clean
2010-12-03 01:57:38 +00:00
rm -rf %{buildroot}
2012-03-31 10:19:07 +00:00
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
2010-12-03 01:57:38 +00:00
%post
2011-02-18 00:22:15 +00:00
%desktop_database_post
%icon_theme_cache_post
2010-12-03 01:57:38 +00:00
2011-02-18 00:22:15 +00:00
%postun
%desktop_database_postun
%icon_theme_cache_postun
2007-01-15 23:42:22 +00:00
2012-03-31 10:19:07 +00:00
%files
2007-01-15 23:42:22 +00:00
%defattr (-,root,root)
2011-10-21 21:39:45 +00:00
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
2012-04-26 09:14:31 +00:00
%dir %{_sysconfdir} /xdg/xfce4
%config %{_sysconfdir} /xdg/xfce4/Xft.xrdb
%{_sysconfdir} /xdg/xfce4/xinitrc
%{_sysconfdir} /xdg/autostart/xscreensaver.desktop
2010-12-03 01:57:38 +00:00
%{_bindir} /xfce4-session
%{_bindir} /xfce4-session-logout
%{_bindir} /xfce4-session-settings
2012-04-26 09:14:31 +00:00
%{_bindir} /xflock4
%{_bindir} /startxfce4
2009-03-08 23:31:39 +00:00
%{_libdir} /xfce4
2012-06-04 19:39:12 +00:00
%{_datadir} /xfce
2012-04-26 09:14:31 +00:00
%{_datadir} /xsessions/xfce.desktop
2007-01-15 23:42:22 +00:00
%{_datadir} /themes/*
2012-03-31 10:19:07 +00: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
2007-01-24 01:12:08 +00:00
%files devel
%defattr (-,root,root)
2012-03-31 10:19:07 +00:00
%dir %{_includedir} /xfce4
%{_includedir} /xfce4/xfce4-session-*/
%{_libdir} /pkgconfig/xfce4-session-*.pc
%{_libdir} /libxfsm-*.so
2009-03-08 23:31:39 +00: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 15:49:14 +00:00
%config %{_sysconfdir} /xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
2007-12-03 22:55:31 +00:00
2007-03-03 13:38:26 +00:00
%changelog