File ruby-kde4.spec of Package ruby-kde4

#
# spec file for package ruby-kde4 (Version 4.7.2)
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           ruby-kde4
BuildRequires:  sqlite-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  phonon-devel
BuildRequires:  libsmokegen-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libsmokekde-devel
BuildRequires:  ruby-devel
BuildRequires:  ruby-qt4-devel
BuildRequires:  libjasper-devel
BuildRequires:  okular-devel
BuildRequires:  kate-devel
License:        LGPLv2.1+
Group:          Development/Libraries/KDE
Summary:        Korundum Ruby-KDE library
Version:        4.7.2
Release:        1
Source0:        korundum-%version.tar.bz2
Url:            https://projects.kde.org/projects/kde/kdebindings/ruby/korundum
Patch0:         no-examples.diff
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 -p0

%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
openSUSE Build Service is sponsored by