File kdeartwork4.spec of Package kdeartwork4
#
# spec file for package kdeartwork4
#
# Copyright (c) 2011 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: kdeartwork4
BuildRequires: kdebase4-workspace-devel xscreensaver
%if %suse_version >= 1130
BuildRequires: libeigen2-devel libkexiv2-devel xscreensaver-data-extra
%endif
License: GPLv2 ; GPLv2+ ; LGPLv2.1 ; LGPLv2.1+
Group: System/GUI/KDE
Summary: KDE artwork base package
Url: http://www.kde.org
Version: 4.6.0
Release: 0.<RELEASE2>
Source0: kdeartwork-%version.tar.bz2
Source1: baselibs.conf
Patch: 4_6_BRANCH.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Suggests: kdeartwork4-screensaver
Suggests: kdeartwork4-emoticons
Suggests: kdeartwork4-icons
Suggests: kdeartwork4-sounds
Suggests: kdeartwork4-wallpapers
Suggests: kdeartwork4-weatherwallpapers
Suggests: kdeartwork4-desktopthemes
%description
This package suggests the packages which are built from the kdeartwork
module.
%prep
%setup -q -n kdeartwork-%version
%patch
%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
%create_subdir_filelist -d kscreensaver
%makeinstall
cd ..
%create_exclude_filelist
rm -rf $RPM_BUILD_ROOT%_kde_share_dir/apps/kworldclock
rm -rf $RPM_BUILD_ROOT/usr/share/emoticons
rm -rf $RPM_BUILD_ROOT/usr/share/icons
rm -rf $RPM_BUILD_ROOT/usr/share/sounds
rm -rf $RPM_BUILD_ROOT/usr/share/wallpapers
rm -rf $RPM_BUILD_ROOT/usr/share/kde4/apps/desktoptheme
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf filelists
%package screensaver
License: No license agreement found in package
Group: System/GUI/KDE
Summary: KDE screensaver package
%kde4_runtime_requires
Provides: kdeartwork3-kscreensaver = 3.5.1
Obsoletes: kdeartwork3-kscreensaver <= 3.5.1
%if %suse_version >= 1130
Recommends: xscreensaver-data-extra
%else
Recommends: xscreensaver
%endif
%description screensaver
This package contains screensavers for KDE which originate from the
kdeartwork module.
Authors:
--------
The KDE Team <kde@kde.org>
%post screensaver -p /sbin/ldconfig
%postun screensaver -p /sbin/ldconfig
%files screensaver -f filelists/kscreensaver
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%dir %_kde4_appsdir/kfiresaver
%dir %_kde4_appsdir/kscreensaver
%dir %_kde4_servicesdir/ScreenSavers
%files -f filelists/exclude
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC README
%_kde4_modulesdir/kstyle_phase_config.so
%_kde4_modulesdir/plugins/styles/phasestyle.so
%_kde4_modulesdir/kwin3_kde2.so
%_kde4_modulesdir/kwin3_keramik.so
%_kde4_modulesdir/kwin3_modernsys.so
%_kde4_modulesdir/kwin3_quartz.so
%_kde4_modulesdir/kwin3_redmond.so
%_kde4_modulesdir/kwin3_web.so
%_kde4_modulesdir/kwin_kde2_config.so
%_kde4_modulesdir/kwin_keramik_config.so
%_kde4_modulesdir/kwin_modernsys_config.so
%_kde4_modulesdir/kwin_quartz_config.so
%_kde4_appsdir/kwin/kde2.desktop
%_kde4_appsdir/kwin/keramik.desktop
%_kde4_appsdir/kwin/modernsystem.desktop
%_kde4_appsdir/kwin/quartz.desktop
%_kde4_appsdir/kwin/redmond.desktop
%_kde4_appsdir/kwin/web.desktop
%_kde4_appsdir/kstyle/themes/phase.themerc
%_kde4_appsdir/color-schemes
%dir %_kde4_appsdir/aurorae
%dir %_kde4_appsdir/aurorae/themes
%_kde4_appsdir/aurorae/themes/Air-Oxygen
%_kde4_appsdir/aurorae/themes/Oxygen
%dir %_kde4_modulesdir/plugins/styles
%dir %_kde4_appsdir/kstyle
%dir %_kde4_appsdir/kstyle/themes
%changelog