Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
kdebase4-session
kdebase4-session.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdebase4-session.spec of Package kdebase4-session
# # spec file for package kdebase4-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/ # Name: kdebase4-session Version: %_kde_platform_version Release: 0 Summary: The KDE Session License: GPL-2.0+ Group: System/GUI/KDE Url: http://www.kde.org/ 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 Requires(pre): /usr/bin/sed /usr/bin/grep /usr/bin/cut 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/ # For compatibility with 11.4 and older %if 0%{?suse_version} <= 1140 cp %{SOURCE1} %{buildroot}%{_datadir}/xsessions/kde4.desktop %else cp %{SOURCE1} %{buildroot}%{_datadir}/xsessions/ %endif install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/doc/packages/kdebase4-session/COPYING %clean rm -rf %{buildroot} %post # Reset the DEFAULT_WM value for KDE upgrade compatibility if [ -f /etc/sysconfig/windowmanager ]; then OLD_DEFAULTWM=`grep "DEFAULT_WM" /etc/sysconfig/windowmanager | cut -d '=' -f 2 | cut -d '"' -f 2` fi if [ -f /var/adm/fillup-templates/sysconfig.windowmanager ]; then TEMPLATE_DEFAULTWM=`grep "DEFAULT_WM" /var/adm/fillup-templates/sysconfig.windowmanager | cut -d '=' -f 2 | cut -d '"' -f 2` fi # Check the old DEFAULT_WM and whether current DEFAULT_WM exists if ( [[ $OLD_DEFAULTWM = "startkde4" ]] || [[ $OLD_DEFAULTWM = "startkde" ]] || [[ $OLD_DEFAULTWM = "kde4" ]]); then if ( [[ -n $TEMPLATE_DEFAULTWM ]] && [[ $OLD_DEFAULTWM != $TEMPLATE_DEFAULTWM ]]); then sed -i -e "s/^DEFAULT_WM=['\"]\?kde.*/DEFAULT_WM=\"${TEMPLATE_DEFAULTWM}\"/g" /etc/sysconfig/windowmanager fi fi %files %defattr(-,root,root) %if 0%{?suse_version} <= 1140 %{_datadir}/xsessions/kde4.desktop %else %{_datadir}/xsessions/kde-plasma.desktop %endif %dir %{_datadir}/doc/packages/kdebase4-session %{_datadir}/doc/packages/kdebase4-session/COPYING %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor