File kdebase4-session.spec of Package kdebase4-session
#
# spec file for package kdebase4-session (Version MACRO)
#
# Copyright (c) 2009 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
License: GPL v2 or later
Group: System/GUI/KDE
Summary: The KDE Session
Url: http://www.kde.org/
Version: %_kde_platform_version
Release: 7.<RELEASE1>
Source1: kde4.desktop
Source2: COPYING
Source3: kde.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: kde4-filesystem
Requires: kdebase4-workspace >= %_kde_platform_version
Provides: kdebase3-session = 3.5.1
Obsoletes: kdebase3-session <= 3.5.10
%description
This package contains the startup scripts necessary to start a KDE
session from kdm.
Authors:
--------
The KDE Team <kde@kde.org>
%prep
mkdir -p $RPM_BUILD_ROOT/%name
%build
%install
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/xsessions/
%if %suse_version > 1110
cp %{SOURCE3} $RPM_BUILD_ROOT/usr/share/xsessions/kde4.desktop
%else
cp %{SOURCE1} $RPM_BUILD_ROOT/usr/share/xsessions/
%endif
install -D -m644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/doc/packages/kdebase4-session/COPYING
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/share/xsessions/kde4.desktop
%dir /usr/share/doc/packages/kdebase4-session
/usr/share/doc/packages/kdebase4-session/COPYING
%changelog