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 http://bugs.opensuse.org/
#


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

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
Url:            https://projects.kde.org/projects/kde/kdebindings/ruby/korundum
Patch0:         no-examples.diff
Patch1:         korundum-ruby19.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       ruby-qt4 = %version
%kde4_runtime_requires
%kde4_akonadi_requires

%description
Ruby bindings for libraries created by the KDE community.

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

%build
  %cmake_kde4 -d build
  %make_jobs

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

%files
%defattr(-,root,root)
%{rb_sitearch}/*.so
%{rb_sitelib}/KDE/
%{rb_sitelib}/soprano/
%{rb_sitelib}/akonadi/
%{rb_sitelib}/kio/
%{rb_sitelib}/khtml/
%{rb_sitelib}/ktexteditor/
%{rb_sitelib}/solid/
%{rb_sitelib}/nepomuk/
%{rb_sitelib}/okular/
%{_kde4_modulesdir}/krubypluginfactory.so
%{_kde4_bindir}/krubyapplication
%{_kde4_bindir}/rbkconfig_compiler4
%{_kde4_servicesdir}/plasma-applet-ruby-analogclock.desktop
%{_kde4_servicesdir}/plasma-ruby-digital-clock-default.desktop
%{_kde4_appsdir}/plasma_applet_ruby_clock/
%{_kde4_appsdir}/plasma_ruby_digital_clock/

%changelog