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
#
2012-01-19 16:57:20 +01:00
# Copyright (c) 2012 SUSE LINUX Products 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-21 10:04:28 +01:00
2012-04-20 15:21:10 +02:00
%define libname libxfsm-4_6-0
2007-01-16 00:42:22 +01:00
Name : xfce4-session
2012-02-16 10:11:02 +01:00
Version : 4.8.3
2011-12-15 16:08:08 +01:00
Release : 0
Summary : Xfce Session Manager
2012-04-20 15:21:10 +02:00
License : GPL-2.0
2007-10-22 18:04:56 +02:00
Group : System/GUI/XFCE
2012-04-20 15:21:10 +02:00
Url : http://docs.xfce.org/xfce/xfce4-session/start
Source : http://archive.xfce.org/src/xfce/xfce4-session/4.8/%{name} -%{version} .tar.bz2
2011-02-04 18:26:55 +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 17:03:34 +02:00
Patch0 : xfce4-session-simple-splash-remove-shadows.patch
2011-10-14 09:49:29 +02:00
# PATCH-FIX-UPSTREAM xfce4-session-fix-gnome-mode.patch bnc#710038 bxo#8014 gber@opensuse.org -- Removes obsolete GNOME compatibility code, treats GNOME-/KDE-only autostart files as inactive, and allows to enable them through xfce4-session-settings
Patch1 : xfce4-session-fix-gnome-mode.patch
2011-12-15 16:08:08 +01:00
# PATCH-FEATURE-UPSTREAM xfce4-session-lock-screen-on-suspend-hibernate.patch bxo#6019 gber@opensuse.org -- Try to lock the screen when hibernating/suspending
Patch2 : xfce4-session-lock-screen-on-suspend-hibernate.patch
2012-04-20 15:21:10 +02:00
# PATCH-FIX-UPSTREAM xfce4-session-respect-session-save-setting.patch bxo#7915 gber@opensuse.org -- Respect the value of the "/general/SaveOnExit" option from xfce4-session in the logout panel plugin as well (backported from upstream git)
Patch3 : xfce4-session-respect-session-save-setting.patch
2010-12-05 22:51:34 +01:00
BuildRequires : intltool
2011-12-15 16:08:08 +01:00
BuildRequires : update-desktop-files
2012-01-19 16:57:20 +01:00
BuildRequires : xfce4-dev-tools
2011-12-15 16:08:08 +01:00
BuildRequires : xorg-x11
2012-04-20 15:21:10 +02:00
BuildRequires : pkgconfig(dbus-1)
2010-12-05 22:51:34 +01:00
BuildRequires : pkgconfig(dbus-glib-1)
2011-12-15 16:08:08 +01:00
BuildRequires : pkgconfig(gconf-2.0)
2012-04-20 15:21:10 +02:00
BuildRequires : pkgconfig(gmodule-2.0)
2011-12-15 16:08:08 +01:00
BuildRequires : pkgconfig(gnome-keyring-1)
2012-04-20 15:21:10 +02:00
BuildRequires : pkgconfig(gtk+-2.0)
2010-12-05 22:51:34 +01:00
BuildRequires : pkgconfig(libwnck-1.0)
2011-12-15 16:08:08 +01:00
BuildRequires : pkgconfig(libxfce4panel-1.0)
2010-12-05 22:51:34 +01:00
BuildRequires : pkgconfig(libxfce4ui-1)
BuildRequires : pkgconfig(libxfce4util-1.0)
2012-02-21 12:27:08 +01:00
BuildRequires : pkgconfig(sm)
2012-04-20 15:21:10 +02:00
Requires : %{name} -branding = %{version}
2010-12-08 14:30:02 +01:00
Requires : xfce-utils
2012-04-20 15:21:10 +02:00
Requires : xfce4-settings
Requires : xfconf
Recommends: %{name} -doc = %{version}
Recommends: %{name} -lang = %{version}
# for xfce4-tips
2009-03-09 00:31:39 +01:00
Recommends: fortune
2010-12-05 22:51:34 +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-04-20 15:21:10 +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-04-20 15:21:10 +02:00
Summary : Development Files for xfce4-session
2011-01-14 17:34:29 +01:00
Group : Development/Libraries/C and C++
2012-04-20 15:21:10 +02:00
Requires : %{libname} = %{version}
2007-01-24 02:12:08 +01:00
%description devel
2012-04-20 15:21:10 +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
2012-04-20 15:21:10 +02:00
%package doc
Summary : Documentation for xfce4-session
Group : Documentation/HTML
BuildArch : noarch
%description doc
This package includes the documentation for xfce4-session.
2011-01-14 17:34:29 +01:00
2009-03-09 00:31:39 +01:00
%package branding-upstream
2012-04-20 15:21:10 +02:00
Summary : Upstream Branding of xfce4-session
2011-12-15 16:08:08 +01:00
Group : System/GUI/XFCE
2010-12-05 22:51:34 +01:00
Supplements: packageand(%{name} :branding-upstream)
2009-03-09 00:31:39 +01:00
Provides : %{name} -branding = %{version}
Conflicts : otherproviders(%{name} -branding)
2011-01-14 17:34:29 +01:00
# BRAND: xfce4-session.xml: Control session parameters such as the tools and
# BRAND: applications started by default or the splash theme.
# BRAND: xfce4-tips-autostart.desktop: Control whether xfce4-tips is started
# BRAND: by default.
2010-03-19 09:51:28 +01:00
BuildArch : noarch
2009-03-09 00:31:39 +01:00
%description branding-upstream
2011-01-14 17:34:29 +01:00
This package provides the upstream look and feel for the Xfce Session Manager.
2009-03-09 00:31:39 +01:00
2012-04-20 15:21:10 +02:00
%lang_package
2007-01-16 00:42:22 +01:00
%prep
%setup -q
2011-07-26 17:03:34 +02:00
%patch0 -p1
2011-10-14 09:49:29 +02:00
%patch1 -p1
2011-12-15 16:08:08 +01:00
%patch2 -p1
2012-04-20 15:21:10 +02:00
%patch3 -p1
2007-01-16 00:42:22 +01:00
%build
2012-01-19 16:57:20 +01:00
xdt-autogen
2009-03-09 00:31:39 +01:00
%configure \
2011-10-25 17:20:46 +02:00
--docdir=%{_datadir} /xfce4/xfce4-session \
2009-03-09 00:31:39 +01:00
--disable-static \
2011-02-04 18:26:55 +01:00
--enable-session-screenshots \
--enable-gnome \
2012-04-20 15:21:10 +02:00
--enable-libgnome-keyring
2011-01-14 17:34:29 +01:00
make %{?_smp_mflags} V=1
2007-01-16 00:42:22 +01:00
%install
2010-12-05 22:51:34 +01:00
%make_install
2012-04-20 15:21:10 +02:00
2011-01-14 17:34:29 +01:00
%suse_update_desktop_file xfce-session-settings
%suse_update_desktop_file xfce4-session-logout
%suse_update_desktop_file xfce4-tips-autostart
2012-04-20 15:21:10 +02:00
2011-01-14 17:34:29 +01:00
rm -rf %{buildroot} %{_datadir} /locale/{ast,kk,tl_PH,ur_PK}
2012-04-20 15:21:10 +02:00
2008-11-06 01:02:35 +01:00
%find_lang %{name}
2012-04-20 15:21:10 +02:00
2011-01-14 17:34:29 +01:00
rm -f %{buildroot} %{_libdir} /*.la %{buildroot} %{_libdir} /xfce4/session/splash-engines/*.la
2017-05-17 18:03:52 +02:00
2007-01-16 00:42:22 +01:00
%clean
2010-12-05 22:51:34 +01:00
rm -rf %{buildroot}
2012-04-20 15:21:10 +02:00
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
2010-12-05 22:51:34 +01:00
%post
2011-02-18 13:04:05 +01:00
%desktop_database_post
%icon_theme_cache_post
2010-12-05 22:51:34 +01:00
2011-02-18 13:04:05 +01:00
%postun
%desktop_database_postun
%icon_theme_cache_postun
2007-01-16 00:42:22 +01:00
2012-04-20 15:21:10 +02:00
%files
2007-01-16 00:42:22 +01:00
%defattr (-,root,root)
2011-10-25 17:20:46 +02:00
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
2010-12-05 22:51:34 +01:00
%{_bindir} /xfce4-session
%{_bindir} /xfce4-session-logout
%{_bindir} /xfce4-session-settings
%{_bindir} /xfce4-tips
2009-03-09 00:31:39 +01:00
%{_libdir} /xfce4
2007-01-16 00:42:22 +01:00
%{_datadir} /themes/*
2012-04-20 15:21:10 +02:00
%{_datadir} /applications/*.desktop
%{_datadir} /icons/*/*/*
2011-10-25 17:20:46 +02:00
%{_datadir} /xfce4/panel-plugins/xfsm-logout-plugin.desktop
%{_datadir} /xfce4/tips/
2012-04-20 15:21:10 +02:00
%doc %{_mandir} /man1/xfce4-session*.1*
%files -n %{libname}
%defattr (-,root,root)
%doc COPYING
%{_libdir} /libxfsm-*.so.*
%files doc
%defattr (-,root,root)
2011-10-25 17:20:46 +02:00
%dir %{_datadir} /xfce4
%dir %{_datadir} /xfce4/xfce4-session
%doc %{_datadir} /xfce4/xfce4-session/html/
2007-01-24 02:12:08 +01:00
2012-04-20 15:21:10 +02:00
%files lang -f %{name}.lang
2007-01-24 02:12:08 +01:00
%files devel
%defattr (-,root,root)
2012-04-20 15:21:10 +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
2011-01-14 17:34:29 +01:00
%config %{_sysconfdir} /xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
%config %{_sysconfdir} /xdg/autostart/xfce4-tips-autostart.desktop
2007-12-03 23:55:31 +01:00
2007-03-03 14:38:26 +01:00
%changelog