File ruby-kde4.spec of Package ruby-kde4

# spec file for package ruby-kde4
# Copyright (c) 2012 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

%if 0%{?suse_version} >= 1220
%define rb_sitelib                        %rb19_sitelibdir
%define rb_sitearch                       %rb19_sitearchdir

Name:           ruby-kde4
BuildRequires:  kate-devel
BuildRequires:  libjasper-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libsmokegen-devel
BuildRequires:  libsmokekde-devel
BuildRequires:  okular-devel
BuildRequires:  phonon-devel
BuildRequires:  ruby-devel
BuildRequires:  ruby-qt4-devel
BuildRequires:  sqlite-devel
BuildRequires:  xz
Summary:        Korundum Ruby-KDE library
License:        LGPL-2.1+
Group:          Development/Libraries/KDE
Version:        4.8.4
Release:        0
Source0:        korundum-%{version}.tar.xz
Patch0:         no-examples.diff
Patch1:         korundum-ruby19.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       ruby-qt4 = %version

Ruby bindings for libraries created by the KDE community.

%setup -q -n korundum-%{version}
%if 0%{?suse_version} >= 1220
%patch1 -p1

  %cmake_kde4 -d build

  cd build
  chmod a+x %{buildroot}%{rb_sitelib}/kio/kio.rb
  chmod a+x %{buildroot}%{rb_sitelib}/khtml/khtml.rb