1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session.spec
Stephan Kulow 7dff95095c Accepting request 114606 from X11:xfce
- change license to GPL-2.0 (bnc#758033)

- let -devel depend on libxfsm-4_6-0 rather than the main package

- specfile cleanup
- corrected dependencies
- split off libxfsm-4_6-0, -doc and -lang subpackages
- added xfce4-session-respect-session-save-setting.patch in order
  to respect the value of the "/general/SaveOnExit" option from
  xfce4-session in the logout panel plugin as well (bxo#7915)

OBS-URL: https://build.opensuse.org/request/show/114606
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfce4-session?expand=0&rev=53
2012-04-20 13:21:10 +00:00

196 lines
6.3 KiB
RPMSpec

#
# spec file for package xfce4-session
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define libname libxfsm-4_6-0
Name: xfce4-session
Version: 4.8.3
Release: 0
Summary: Xfce Session Manager
License: GPL-2.0
Group: System/GUI/XFCE
Url: http://docs.xfce.org/xfce/xfce4-session/start
Source: http://archive.xfce.org/src/xfce/xfce4-session/4.8/%{name}-%{version}.tar.bz2
# 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
Patch0: xfce4-session-simple-splash-remove-shadows.patch
# 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
# 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
# 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
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: xfce4-dev-tools
BuildRequires: xorg-x11
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libwnck-1.0)
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(sm)
Requires: %{name}-branding = %{version}
Requires: xfce-utils
Requires: xfce4-settings
Requires: xfconf
Recommends: %{name}-doc = %{version}
Recommends: %{name}-lang = %{version}
# for xfce4-tips
Recommends: fortune
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
xfce4-session is the session manager for the Xfce desktop environment.
%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.
%package devel
Summary: Development Files for xfce4-session
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
This package contains development files needed to develop custom splash screen
engines for the xfce4-session.
%package doc
Summary: Documentation for xfce4-session
Group: Documentation/HTML
BuildArch: noarch
%description doc
This package includes the documentation for xfce4-session.
%package branding-upstream
Summary: Upstream Branding of xfce4-session
Group: System/GUI/XFCE
Supplements: packageand(%{name}:branding-upstream)
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
# 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.
BuildArch: noarch
%description branding-upstream
This package provides the upstream look and feel for the Xfce Session Manager.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
xdt-autogen
%configure \
--docdir=%{_datadir}/xfce4/xfce4-session \
--disable-static \
--enable-session-screenshots \
--enable-gnome \
--enable-libgnome-keyring
make %{?_smp_mflags} V=1
%install
%make_install
%suse_update_desktop_file xfce-session-settings
%suse_update_desktop_file xfce4-session-logout
%suse_update_desktop_file xfce4-tips-autostart
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/xfce4/session/splash-engines/*.la
%clean
rm -rf %{buildroot}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
%{_bindir}/xfce4-session
%{_bindir}/xfce4-session-logout
%{_bindir}/xfce4-session-settings
%{_bindir}/xfce4-tips
%{_libdir}/xfce4
%{_datadir}/themes/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*/*/*
%{_datadir}/xfce4/panel-plugins/xfsm-logout-plugin.desktop
%{_datadir}/xfce4/tips/
%doc %{_mandir}/man1/xfce4-session*.1*
%files -n %{libname}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libxfsm-*.so.*
%files doc
%defattr(-,root,root)
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/xfce4-session
%doc %{_datadir}/xfce4/xfce4-session/html/
%files lang -f %{name}.lang
%files devel
%defattr(-,root,root)
%dir %{_includedir}/xfce4
%{_includedir}/xfce4/xfce4-session-*/
%{_libdir}/pkgconfig/xfce4-session-*.pc
%{_libdir}/libxfsm-*.so
%files branding-upstream
%defattr(-,root,root)
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
%config %{_sysconfdir}/xdg/autostart/xfce4-tips-autostart.desktop
%changelog