File kdetoys4.spec of Package kdetoys4

# spec file for package kdetoys4
# 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

Name:           kdetoys4
BuildRequires:  fdupes
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libqimageblitz-devel
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Base Package for kdetoys
Version:        4.7.2
Release:        1
Source0:        kdetoys-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

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

  %cmake_kde4 -d build

  cd build
  %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
  %fdupes -s %{buildroot}

  rm -rf %{buildroot}
  rm -rf filelists

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

%description -n amor
KDE creature for your desktop

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

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

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

%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

%files -n kteatime -f filelists/kteatime

%files -n ktux -f filelists/ktux

openSUSE Build Service is sponsored by