File kdetoys4.spec of Package kdetoys4

#
# spec file for package kdetoys4
#
# Copyright (c) 2013 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:           kdetoys4
BuildRequires:  fdupes
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  xz
Summary:        Base Package for kdetoys
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Version:        4.10.0
Release:        0
Source0:        kdetoys-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This package suggests the packages, built from the kdetoys module.

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

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %create_subdir_filelist -d amor
  %create_subdir_filelist -d ktux
  %create_subdir_filelist -d kteatime
  %create_subdir_filelist -d ktux
  cd ..
  %suse_update_desktop_file -r kteatime    System   TrayIcon
  %suse_update_desktop_file    amor        Games    Amusement
  rm -rf %{buildroot}%{_kde4_appsdir}/kdesktop
  %kde_post_install
  %fdupes -s %{buildroot}

%clean
  rm -rf %{buildroot}
  rm -rf filelists

%package -n amor
Summary:        On-Screen Creature
Group:          Amusements/Toys/Other
%kde4_runtime_requires
Provides:       kde4-amor = 4.3.0
Obsoletes:      %{name} < 4.7.1
Obsoletes:      kde4-amor < 4.3.0
Provides:       %{name} = 4.7.1

%description -n amor
KDE creature for your desktop

%package -n kteatime
Summary:        Tea Cooker
Group:          Amusements/Toys/Other
Provides:       kde4-kteatime = 4.3.0
Obsoletes:      kde4-kteatime < 4.3.0
%kde4_runtime_requires

%description -n kteatime
KDE time utility for making a fine cup of tea

%package -n ktux
Summary:        Tux Screen Saver
Group:          Amusements/Toys/Screensavers
Provides:       kde4-ktux = 4.3.0
Obsoletes:      kde4-ktux < 4.3.0
%kde4_runtime_requires

%description -n ktux
This package contains a screen saver showing Tux in space.

%post   -n amor -p /sbin/ldconfig

%postun -n amor -p /sbin/ldconfig

%post   -n kteatime -p /sbin/ldconfig

%postun -n kteatime -p /sbin/ldconfig

%post   -n ktux -p /sbin/ldconfig

%postun -n ktux -p /sbin/ldconfig

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

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

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

%changelog
openSUSE Build Service is sponsored by