File kdebase4-session.spec of Package kdebase4-session
#
# spec file for package kdebase4-session
#
# Copyright (c) 2011 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/
#
Name: kdebase4-session
Version: %_kde_platform_version
Release: 12
License: GPLv2+
Summary: The KDE Session
Url: http://www.kde.org/
Group: System/GUI/KDE
Source1: kde-plasma.desktop
Source2: COPYING
BuildRequires: kde4-filesystem
Requires: kdebase4-workspace >= %_kde_platform_version
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1140
Requires: update-desktop-files
%endif
Provides: kdebase3-session = %{version}
Obsoletes: kdebase3-session <= 3.5.1
%description
This package contains the startup scripts necessary to start a KDE
session from kdm.
%prep
%build
%install
install -m 0755 -d %{buildroot}%{_datadir}/xsessions/
cp %{SOURCE1} %{buildroot}%{_datadir}/xsessions/
install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/doc/packages/kdebase4-session/COPYING
# For compatibility with 11.4 and older
ln -s /usr/share/xsessions/kde-plasma.desktop $RPM_BUILD_ROOT/usr/share/xsessions/kde4.desktop
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_datadir}/xsessions/kde4.desktop
%{_datadir}/xsessions/kde-plasma.desktop
%dir %{_datadir}/doc/packages/kdebase4-session
%{_datadir}/doc/packages/kdebase4-session/COPYING
%changelog