File kde-branding-SLE.spec of Package branding-SLE

#
# spec file for package kde-branding-SLE
#
# Copyright (c) 2016 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:           kde-branding-SLE
Version:        12
Release:        0
Url:            http://github.com/openSUSE/branding
Source0:        SLE.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SLE Brand File
License:        BSD-3-Clause
Group:          System/Fhs
BuildRequires:  fribidi
BuildRequires:  kde4-filesystem
BuildRequires:  kdelibs4-branding-upstream
BuildRequires:  update-desktop-files
BuildRequires:  wallpaper-branding-SLE
BuildArch:      noarch

%description
This package contains the file /etc/SUSE-brand, and its name is used as
a trigger for installation of correct vendor brand packages.

%define theme_name SLE

%package -n kdelibs4-branding-SLE
Summary:        SLE branding for KDE
Group:          System/GUI/KDE
Requires:       kdelibs4
Supplements:    packageand(kdelibs4:branding-SLE)
Provides:       kdelibs4-branding = %{_kde_branding_version}
Conflicts:      otherproviders(kdelibs4-branding)
BuildArch:      noarch

%description -n kdelibs4-branding-SLE
SLE branding for KDE workspace

%package -n ksplashx-branding-SLE
Summary:        SLE branding for KDE splash
Group:          System/Fhs
Provides:       ksplashx-branding = %{version}
Conflicts:      otherproviders(ksplashx-branding)
Supplements:    packageand(kdebase4-workspace:branding-SLE)
BuildArch:      noarch
# links its images
Requires:       wallpaper-branding-SLE

%description -n ksplashx-branding-SLE
SLE branding for KDE splash (splashx engine)

%package -n ksplash-qml-branding-SLE
Summary:        SLE branding for KDE splash QML
Group:          System/Fhs
Provides:       ksplash-qml-branding = %{version}
Conflicts:      otherproviders(ksplash-qml-branding)
Supplements:    packageand(kdebase4-workspace:branding-SLE)
BuildArch:      noarch
# links its images
Requires:       wallpaper-branding-SLE

%description -n ksplash-qml-branding-SLE
SLE branding for KDE splash (QML engine)

%package -n susegreeter-branding-SLE
Summary:        SLE branding for the KDE greeter
Group:          System/Fhs
Provides:       susegreeter-branding = %{version}
Conflicts:      otherproviders(susegreeter-branding)
BuildArch:      noarch

%description -n susegreeter-branding-SLE
SLE %{version} branding for the KDE greeter welcome screen

%prep
%setup -q -c
cp -a SLE/LICENSE COPYING 

%build
mkdir about
cp /usr/share/kde4/apps/kdeui/about/kde_infopage.css about/
cp /usr/share/kde4/apps/kdeui/about/kde_infopage_rtl.css about/
pushd about/
# need to have latest kdelibs4 in factory
patch -p0 < ../SLE/kdelibs/css.diff
popd

%install
mkdir -p %{buildroot}%{_kde4_appsdir}/kdeui/about
cp -a about/* %{buildroot}%{_kde4_appsdir}/kdeui/about

make -C SLE install DESTDIR=%{buildroot}
%suse_update_desktop_file  %{buildroot}/usr/share/kde4/apps/ksplash/Themes/ksplashx-suse/Theme.rc
%suse_update_desktop_file  %{buildroot}/usr/share/kde4/apps/ksplash/Themes/ksplash-qml-SLE/Theme.rc

rm -rf %{buildroot}/usr/share/{YaST2,backgrounds,gnome-background-properties,grub2,gimp,pixmaps,plymouth,wallpapers,kde4/apps/kdm}

%files -n kdelibs4-branding-SLE
%defattr(-,root,root)
%doc COPYING
%{_kde4_appsdir}/kdeui
%dir %{_kde4_appsdir}/ksplash
%dir %{_kde4_appsdir}/ksplash/Themes

%files -n ksplashx-branding-SLE
%defattr(-,root,root)
%{_kde4_appsdir}/ksplash/Themes/ksplashx-suse

%files -n ksplash-qml-branding-SLE
%defattr(-,root,root)
%dir %{_kde4_appsdir}/ksplash/Themes/ksplash-qml-SLE
%{_kde4_appsdir}/ksplash/Themes/ksplash-qml-SLE

%files -n susegreeter-branding-SLE
%defattr(-,root,root)
/usr/share/kde4/apps/SUSEgreeter

%changelog
openSUSE Build Service is sponsored by