File plasma5-openSUSE.spec of Package plasma5-openSUSE

#
# spec file for package plasma5-openSUSE
#
# Copyright (c) 2014 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:           plasma5-openSUSE
Version:        13.2
Release:        0
Summary:        openSUSE KDE Extension
License:        GPL-2.0+
Group:          System/GUI/KDE
# git clone git://github.com/openSUSE/kdebase-opensuse.git
Url:            http://www.opensuse.org/
Source:         plasma5-openSUSE-%{version}.tar.xz
Source2:        oS.diff
BuildRequires:  kf5-filesystem
BuildRequires:  oxygen-icon-theme
BuildRequires:  plasma5-workspace
Requires:       plasma5-desktop-branding-openSUSE
Requires:       plasma5-workspace-branding-openSUSE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the standard openSUSE desktop and extensions.

%package -n plasma5-desktop-branding-openSUSE
Summary:        openSUSE KDE Extension
Group:          System/GUI/KDE
PreReq:         %fillup_prereq
Requires:       plasma5-desktop
Requires:       plasma5-workspace-branding-openSUSE = %{version}
Requires:       ksplashx-branding-openSUSE = %{version}
Requires:       susegreeter-branding-openSUSE = %{version}
Requires:       wallpaper-branding-openSUSE = %{version}
Supplements:    packageand(plasma5-desktop:branding-openSUSE)
Provides:       plasma5-desktop-branding = %{_plasma5_branding_version}
Conflicts:      otherproviders(plasma5-desktop-branding)

%description -n plasma5-desktop-branding-openSUSE
This package contains the standard openSUSE desktop and extensions.

%package -n plasma5-workspace-branding-openSUSE
Summary:        The KDE Runtime Components
Group:          System/GUI/KDE
PreReq:         %fillup_prereq
Supplements:    packageand(plasma5-workspace:branding-openSUSE)
Provides:       plasma5-workspace-branding = %{_plasma5_branding_version}
Conflicts:      otherproviders(plasma5-workspace-branding)
Requires:       wallpaper-branding-openSUSE
Requires:       plasma5-workspace

%description -n plasma5-workspace-branding-openSUSE
This package contains all run-time dependencies of KDE applications.

%prep
%setup -q -n %{name}

%build
  #cmake_kf5 -d build
  #make_jobs

%install
  #kf5_makeinstall -C build
  mv config-files/COPYING .
  cp -a config-files/* %{buildroot}
  cp /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/splash/Splash.qml %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/splash/
  cp /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreen.qml %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/lockscreen/
  pushd %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/
  ln -s ../../org.kde.breeze.desktop/contents/components .
  patch -p0 < %{SOURCE2}
  popd

%files
%defattr(-,root,root)
%doc COPYING

%files -n plasma5-workspace-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%config %{_kf5_configdir}/*rc
%config %{_kf5_configdir}/kdeglobals
%{_kf5_servicesdir}/
%{_kf5_sharedir}/color-schemes/
%{_kf5_plasmadir}/

%files -n plasma5-desktop-branding-openSUSE
%defattr(-,root,root)
%doc COPYING

%changelog
openSUSE Build Service is sponsored by