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 http://bugs.opensuse.org/
#



Name:           kdetoys4
BuildRequires:  fdupes
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libqimageblitz-devel
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Base Package for kdetoys
Url:            http://www.kde.org
Version:        4.7.2
Release:        1
Source0:        kdetoys-%version.tar.bz2
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
  %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
License:        GPLv2+
Group:          Amusements/Toys/Other
Summary:        On-Screen Creature
%kde4_runtime_requires
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
%kde4_runtime_requires

%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
%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