File kdeartwork4.spec of Package kdeartwork4.openSUSE_13.2_Update

#
# spec file for package kdeartwork4
#
# 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:           kdeartwork4
BuildRequires:  fdupes
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libeigen2-devel
BuildRequires:  libkexiv2-devel
BuildRequires:  xscreensaver
BuildRequires:  xscreensaver-data
BuildRequires:  xscreensaver-data-extra
BuildRequires:  xz
BuildRequires:  pkgconfig(glu)
Summary:        Base package for kdeartwork
License:        GPL-2.0 and GPL-2.0+ and LGPL-2.1 and LGPL-2.1+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Version:        14.12.3
Release:        0
Source0:        kdeartwork-%{version}.tar.xz
Source1:        baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define targets kscreensaver kwin-styles styles ColorSchemes desktopthemes emoticons IconThemes wallpapers HighResolutionWallpapers WeatherWallpapers

%description
This package suggests the packages which are built from the kdeartwork
module.

%prep
%setup -q -n kdeartwork-%{version}

%build
  # in 11.3 and later it's perfectly feasible to have xscreensaver hacks without xscreensaver binary
  xscreensavers=`grep -l TryExec=xscreensaver kscreensaver/kxsconfig/ScreenSavers/*.desktop`
  for ss in $xscreensavers; do
    base=`basename $ss .desktop`
    sed -e "s,TryExec=xscreensaver,TryExec=/usr/%_lib/xscreensaver/$base," -i $ss
  done
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  for target in %targets
  do 
    %create_subdir_filelist -d $target
  done
  %kde4_makeinstall
  %kde_post_install
  %fdupes -s %{buildroot}

# --------- Arch-specific packages --------- #

%package decorations
Summary:        KDE window decorations
Group:          System/GUI/KDE
%kde4_runtime_requires
Obsoletes:      kdeartwork4 < 4.7.1
Provides:       kdeartwork4 = 4.7.1
Obsoletes:      kdeartwork4-decorations-aurorae < 4.10.80
Provides:       kdeartwork4-decorations-aurorae = 4.10.80

%description decorations
This package contains window decorations for KDE which originate from the
kdeartwork module.

%package screensaver
Summary:        KDE screensaver package
Group:          System/GUI/KDE
Recommends:     xscreensaver-data-extra
%kde4_runtime_requires

%description screensaver
This package contains screensavers for KDE which originate from the
kdeartwork module.

%package styles
Summary:        KDE application styles
Group:          System/GUI/KDE
%kde4_runtime_requires

%description styles
This package contains application styles for KDE which originate from the
kdeartwork module.

# --------- NoArch packages --------- #

%package -n kdeartwork4-colorschemes
Summary:        KDE color schemes
Group:          System/GUI/KDE
BuildArch:      noarch
%kde4_runtime_requires

%description -n kdeartwork4-colorschemes
This package contains color schemes for applications

%package -n kdeartwork4-desktopthemes
Summary:        KDE desktop themes
Group:          System/GUI/KDE
BuildArch:      noarch
Provides:       kde4-plasma-addons:/usr/share/kde4/apps/desktoptheme/Elegance/dialogs/background.svg
%kde4_runtime_requires

%description -n kdeartwork4-desktopthemes
This package suggests the packages which are built from the kdeartwork
module.

%package -n kdeartwork4-emoticons
Summary:        KDE emoticons package
Group:          System/GUI/KDE
BuildArch:      noarch

%description -n kdeartwork4-emoticons
This package contains pictures for usage in eg instant messengers.

%package -n kdeartwork4-icons
Summary:        KDE icon packages
Group:          System/GUI/KDE
BuildArch:      noarch

%description -n kdeartwork4-icons
This package contains the icon themes which are contained in the
kdeartwork module.

%package -n kdeartwork4-icons-mono
Summary:        Mono KDE icon packages
Group:          System/GUI/KDE
BuildArch:      noarch
Obsoletes:      kdeaccessibility4-icons < %{version}
Provides:       kdeaccessibility4-icons = %{version}

%description -n kdeartwork4-icons-mono
This package provides monochrome KDE icons for increased accessibility.

%package -n kdeartwork4-wallpapers
Summary:        KDE wallpapers package
Group:          System/GUI/KDE
BuildArch:      noarch
Obsoletes:      kdeartwork4-wallpapers-extra < %{version}
Provides:       kdeartwork4-wallpapers-extra = %{version}

%description -n kdeartwork4-wallpapers
This package contains the wallpapers which originate from the
kdeartwork module.

%package -n kdeartwork4-wallpapers-large
Summary:        High-resolution KDE wallpapers package
Group:          System/GUI/KDE
BuildArch:      noarch
Requires:       kdeartwork4-wallpapers = %{version}

%description -n kdeartwork4-wallpapers-large
This package contains the high-resolution wallpapers which
originate from the kdeartwork module.

%package -n kdeartwork4-wallpapers-weather
Summary:        KDE weather wallpapers package
Group:          System/GUI/KDE
Supplements:    plasma-addons
BuildArch:      noarch
# ignore the rpmlint self-obsoletes here, can be changed to < after 4.7.2
Obsoletes:      kdeartwork4-weatherwallpapers <= 4.7.1
Provides:       kdeartwork4-weatherwallpapers = %{version}
Requires:       kdeartwork4-wallpapers = %{version}

%description -n kdeartwork4-wallpapers-weather
This package contains the wallpapers which are used by the Plasma
wallpaper plugin.

%package -n plasma-theme-aya
Summary:        Theme for Plasma
Group:          System/GUI/KDE
BuildArch:      noarch

%description -n  plasma-theme-aya
This package contains the Plasma theme Aya.

%post   decorations -p /sbin/ldconfig

%postun decorations -p /sbin/ldconfig

%post   screensaver -p /sbin/ldconfig

%postun screensaver -p /sbin/ldconfig

%post   styles -p /sbin/ldconfig

%postun styles -p /sbin/ldconfig

%files decorations -f filelists/kwin-styles
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README

%files screensaver -f filelists/kscreensaver
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%dir %{_kde4_appsdir}/kfiresaver/

%files styles -f filelists/styles
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README

%files -n kdeartwork4-colorschemes -f filelists/ColorSchemes
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README

%files -n kdeartwork4-desktopthemes -f filelists/desktopthemes
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%{_kde4_appsdir}/desktoptheme/*
%exclude %{_kde4_appsdir}/desktoptheme/Aya

%files -n kdeartwork4-emoticons -f filelists/emoticons
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%dir %{_datadir}/emoticons/*/

%files -n kdeartwork4-icons
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%{_kde4_iconsdir}/nuvola/
%exclude %{_kde4_iconsdir}/mono/

%files -n kdeartwork4-icons-mono
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%{_kde4_iconsdir}/mono/

%files -n kdeartwork4-wallpapers -f filelists/wallpapers
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%exclude %{_datadir}/wallpapers/*/contents/images/4*.jpg
%exclude %{_datadir}/wallpapers/*/contents/images/3*.jpg
%exclude %{_datadir}/wallpapers/*/contents/images/2*.jpg
%dir %{_datadir}/wallpapers/*/
%dir %{_datadir}/wallpapers/*/contents/
%dir %{_datadir}/wallpapers/*/contents/images/

%files -n kdeartwork4-wallpapers-large -f filelists/HighResolutionWallpapers
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%{_datadir}/wallpapers/*/contents/images/4*.jpg
%{_datadir}/wallpapers/*/contents/images/3*.jpg
%{_datadir}/wallpapers/*/contents/images/2*.jpg

%files -n kdeartwork4-wallpapers-weather -f filelists/WeatherWallpapers
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README

%files -n plasma-theme-aya
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%{_kde4_appsdir}/desktoptheme/Aya

%changelog
openSUSE Build Service is sponsored by