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-05-08 11:49:42 +02:00
Version : 4.10.0
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
2012-05-08 11:49:42 +02:00
Source0 : http://archive.xfce.org/src/xfce/xfce4-session/4.10/%{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
2012-06-10 20:20:37 +02:00
# PATCH-FIX-OPENSUSE xfce4-session-adapt-session-scripts.patch gber@opensuse.org -- Adapt upstream sessions script to openSUSE
Patch1 : xfce4-session-adapt-session-scripts.patch
2010-12-05 22:51:34 +01:00
BuildRequires : intltool
2011-12-15 16:08:08 +01:00
BuildRequires : update-desktop-files
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)
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-05-08 11:49:42 +02: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-04-20 15:21:10 +02:00
Requires : %{name} -branding = %{version}
Requires : xfce4-settings
Requires : xfconf
Recommends: %{name} -doc = %{version}
Recommends: %{name} -lang = %{version}
2012-05-08 11:49:42 +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
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
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.
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
2007-01-16 00:42:22 +01:00
%build
2009-03-09 00:31:39 +01:00
%configure \
--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
2012-05-08 11:49:42 +02:00
chmod 755 %{buildroot} %{_sysconfdir} /xdg/xfce4/xinitrc
2012-06-10 20:20:37 +02:00
install -d -m 755 %{buildroot} %{_datadir} /xfce/applications
2012-05-08 11:49:42 +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
2011-01-14 17:34:29 +01:00
%suse_update_desktop_file xfce4-session-logout
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
2012-05-08 11:49:42 +02:00
%dir %{_sysconfdir} /xdg/xfce4
%config %{_sysconfdir} /xdg/xfce4/Xft.xrdb
%{_sysconfdir} /xdg/xfce4/xinitrc
%{_sysconfdir} /xdg/autostart/xscreensaver.desktop
2010-12-05 22:51:34 +01:00
%{_bindir} /xfce4-session
%{_bindir} /xfce4-session-logout
%{_bindir} /xfce4-session-settings
2012-05-08 11:49:42 +02:00
%{_bindir} /xflock4
%{_bindir} /startxfce4
2009-03-09 00:31:39 +01:00
%{_libdir} /xfce4
2012-06-10 20:20:37 +02:00
%{_datadir} /xfce
2012-05-08 11:49:42 +02:00
%{_datadir} /xsessions/xfce.desktop
2007-01-16 00:42:22 +01:00
%{_datadir} /themes/*
2012-04-20 15:21:10 +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
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
2007-12-03 23:55:31 +01:00
2007-03-03 14:38:26 +01:00
%changelog