File kdetoys3.spec of Package kdetoys3

#
# spec file for package kdetoys3
#
# 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:           kdetoys3
BuildRequires:  kdebase3 kdelibs3-devel
License:        GPL-2.0+
Group:          System/GUI/KDE
Summary:        Nice Toys for KDE
Version:        3.5.10
Release:        16
Url:            http://www.kde.org
Requires:       kdelibs3 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        kdetoys-%{version}.tar.bz2
Patch0:         3_5_BRANCH.diff
Patch1:         artwork.diff
Patch3:         kdetoys-kweather-update-url.patch
Patch4:		kdetoys3-kweather-improve-station-list-processing.patch

%description
This package currently contains programs:

* kmoon, the show-me-the-current-moon-phase-in-the-panel program

* kworldclock, the show-me-where-on-the-world-is-day program

*  kodo, the show-me-how-far-I-have-moved-my-mouse-today program

* kweather, the show-me-how-the-weather-is-today program

* amor, the show-me-a-little-window-dancer program

* kteatime, the shoe-me-when-the-tea-is-good program



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -n kdetoys-%{version} -q
%patch -P 0
%patch -P 1
%patch -P 3 -p1
%patch -P 4 -p1
. /etc/opt/kde3/common_options
update_admin

%build
cd kweather
perl genstations.pl data/nsd_cccc.txt data/station_names.txt weather_stations.desktop.in
cd ..

. /etc/opt/kde3/common_options
./configure $configkde
make 

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
kde_post_install

%post
%run_ldconfig

%postun
%run_ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README 
%dir /opt/kde3/share/applnk/System/ScreenSavers
#%_mandir/*/*
/opt/kde3/share/applications/kde/*.desktop
/opt/kde3/share/apps/*
/opt/kde3/share/applnk/System/ScreenSavers/ktux.desktop
%doc %lang(en) /opt/kde3/share/doc/HTML/en/*
/opt/kde3/share/icons/*
/opt/kde3/bin/*
/opt/kde3/include/*
/opt/kde3/%_lib/*
/opt/kde3/share/services/*.desktop

%changelog
openSUSE Build Service is sponsored by