File plasmoid-cwp.spec of Package plasmoid-cwp

#
# spec file for package plasmoid-cwp
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Buschmann <buschmann23@opensuse.org>
#
# 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:           plasmoid-cwp
Version:        1.8.2
Release:        0
Summary:        Customizable Weather Plasmoid
License:        GPL-3.0+
Group:          Productivity/Other
Url:            http://www.kde-look.org/content/show.php?content=98925
Source0:        http://kde-look.org/CONTENT/content-files/98925-cwp-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE readme.patch buschmann23@opensuse.org -- Clarify where the xml files mentioned in the README are installed
Patch0:         readme.patch
BuildRequires:  libkde4-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
Requires:       kdebase4-workspace
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This is another weather plasmoid. It aims to be highly customizable, but a
little harder to setup than other weather plasmoids. Nearly any weather
forecast provider can be used, as long as the data is provided as html files
(no flash). The information how to extract the information from these html
files is stored inside xml files. Commands like grep, head, tail, sed, awk, ...
will do this job.

Some xml files are already included, you can find them under
/usr/share/kde4/apps/plasma-cwp

%lang_package

%prep
%setup -q -n cwp-%{version}
%patch0

%build
%cmake_kde4 -d build
%make_jobs

%install
%kde4_makeinstall -C build

%find_lang plasma_applet_cwp

%kde_post_install

%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog README
%dir %{_kde4_appsdir}/desktoptheme
%dir %{_kde4_appsdir}/desktoptheme/default
%dir %{_kde4_appsdir}/desktoptheme/default/widgets
%{_kde4_appsdir}/desktoptheme/default/widgets/*.svgz
%{_kde4_appsdir}/plasma-cwp/
%{_kde4_iconsdir}/oxygen/128x128/status/weather-windy.png
%{_kde4_iconsdir}/oxygen/scalable/status/weather-windy.svgz
%{_kde4_modulesdir}/plasma_applet_cwp.so
%{_kde4_servicesdir}/plasma-applet-cwp.desktop

%files lang -f plasma_applet_cwp.lang
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by