File rekonq.spec of Package rekonq

#
# spec file for package rekonq
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 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 >= 4.4.0
BuildRequires:  libqt4-devel >= 4.7.0
BuildRequires:  konqueror-plugins licenses update-desktop-files
BuildRequires:  gtk2-devel kwebkitpart-devel

Name:           rekonq
Summary:        WebKit Based Web Browser for KDE4
Version:        0.6.1
Release:        1
License:        GPLv3
Group:          Productivity/Networking/Web/Browsers
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    yes

Requires:       kdebase4-workspace licenses
%kde4_runtime_requires

Url:            http://rekonq.sourceforge.net

%description
rekonq is a KDE browser based on QtWebkit. Its code is based on Nokia QtDemoBrowser, just
like Arora. Anyway its implementation is going to embrace KDE technologies to have a
full-featured KDE web browser. 

Author:
--------
    Andrea Diamantini


%prep 
%setup -q -n %{name}-%{version}

%build
  %cmake_kde4 -d builddir
  %make_jobs

%install
  cd builddir
  %kde4_makeinstall
  cd ..
  MD5SUM=$(md5sum COPYING | sed 's/ .*//')
  if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then  
      ln -sf /usr/share/doc/licenses/md5/$MD5SUM COPYING
  fi
  rm -rf %{buildroot}/%_datadir/locale/sr@ijekavian
  rm -rf %{buildroot}/%_datadir/locale/sr@ijekavianlatin
  %find_lang %{name} %{name}.lang
  %suse_update_desktop_file %{name} WebBrowser
  %kde_post_install

%clean
  rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING TODO
%{_bindir}/rekonq
%_libdir/libkdeinit4_rekonq.so
%{_datadir}/applications/kde4/rekonq.desktop
%{_datadir}/icons/hicolor/*/apps/rekonq.png
%{_kde_share_dir}/apps/rekonq
%{_kde_share_dir}/config.kcfg/rekonq.kcfg

%changelog
openSUSE Build Service is sponsored by