File plasma5-session.spec of Package plasma5-session

#
# spec file for package plasma5-session
#
# Copyright (c) 2015 SUSE LINUX 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:           plasma5-session
Version:        5.4.2
Release:        0
Summary:        The KDE Session
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Source1:        plasma5.desktop
Source2:        COPYING
Source3:        kde-plasma.desktop
BuildRequires:  kf5-filesystem
Requires:       breeze >= %{version}
Requires:       breeze4-style >= %{version}
Requires:       breeze5-decoration >= %{version}
Requires:       khotkeys5 >= %{version}
Requires:       kwin5 >= %{version}
Requires:       libkscreen2-plugin >= %{version}
Requires:       plasma-nm5 >= %{version}
Requires:       plasma5-desktop >= %{version}
Requires:       plasma5-workspace >= %{version}
Requires:       polkit-kde-agent-5 >= %{version}
Requires:       powerdevil5 >= %{version}
Requires:       systemsettings5 >= %{version}
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
Provides:       kdebase4-session = %{version}
Obsoletes:      kdebase4-session < %{version}
%endif
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       update-desktop-files
Requires(pre):  /usr/bin/sed /usr/bin/grep /usr/bin/cut

%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/
# write version number into plasma5.desktop, this is displayed by KInfocenter as Plasma version
echo "X-KDE-PluginInfo-Version=%{version}" >> %{SOURCE1}
cp %{SOURCE1} %{buildroot}%{_datadir}/xsessions/
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
echo "X-KDE-PluginInfo-Version=%{version}" >> %{SOURCE3}
cp %{SOURCE3} %{buildroot}%{_datadir}/xsessions/
%endif
install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/doc/packages/plasma5-session/COPYING

%files
%defattr(-,root,root)
%{_datadir}/xsessions/plasma5.desktop
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
%{_datadir}/xsessions/kde-plasma.desktop
%endif
%dir %{_datadir}/doc/packages/plasma5-session
%{_datadir}/doc/packages/plasma5-session/COPYING

%changelog
openSUSE Build Service is sponsored by