File plasmoid-quickaccess.spec of Package plasmoid-quickaccess

#
# spec file for package plasmoid-quickaccess (Version 0.8.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2008-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/
#

# norootforbuild

BuildRequires:  kdebase4-workspace-devel libkonq-devel licenses update-desktop-files

Name:           plasmoid-quickaccess
Summary:        Quick Access Plasmoid for KDE Desktop
Url:            http://www.kde-look.org/content/show.php/QuickAccess?content=101968
Version:        0.8.1
Release:        2
License:        GPL v2 only
Group:          System/GUI/KDE
Source0:        101968-plasma-widget-quickaccess_%{version}.orig.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    yes
Requires:       kdebase4-workspace licenses
Provides:       kdebase3:/opt/kde3/share/apps/kicker/builtins/browser.desktop
Provides:       kde4-plasmoid-quickaccess = 0.8.1
Obsoletes:      kde4-plasmoid-quickaccess <= 0.8.1
%kde4_runtime_requires

%description
This is a small applet designed for the panel to have quick access to
the most used folders.



Authors:
--------
    Mark Herbert <wirrkpf@googlemail.com
    >

%prep
%setup -qn plasma-widget-quickaccess-%{version}

%build
  %cmake_kde4 -d builddir
  %make_jobs

%install
  pushd builddir
  %makeinstall
  popd
  for FILE in COPYING ; do
    MD5SUM=$(md5sum $FILE | sed 's/ .*//')
    if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
        ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
    fi
  done
  %suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/plasma-applet-quickaccess.desktop
  %kde_post_install
  %find_lang plasma_applet_quickaccess

%clean
  rm -rf $RPM_BUILD_ROOT

%files -f plasma_applet_quickaccess.lang
%defattr(-,root,root)
%doc COPYING README
%_libdir/kde4/plasma_applet_quickaccess.so
%_kde_share_dir/services/plasma-applet-quickaccess.desktop

%changelog
openSUSE Build Service is sponsored by