File ruby-qt4.spec of Package ruby-qt4
#
# spec file for package ruby-qt4
#
# 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/
#
Name: ruby-qt4
Version: 4.7.2
Release: 1
License: LGPLv2.1+
Summary: QtRuby kdebindings library
Url: https://projects.kde.org/projects/kde/kdebindings/ruby/qtruby
Group: Development/Languages/Ruby
Source0: qtruby-%{version}.tar.bz2
BuildRequires: cmake
BuildRequires: kde4-filesystem
BuildRequires: libQtWebKit-devel
BuildRequires: libqimageblitz-devel
BuildRequires: libqscintilla-devel
BuildRequires: libsmokegen-devel
BuildRequires: libsmokeqt-devel
BuildRequires: phonon-devel
BuildRequires: qwt-devel
BuildRequires: ruby-devel
BuildRequires: sqlite-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Ruby bindings for the Qt4 libraries from the kdebindings project.
%prep
%setup -q -n qtruby-%{version}
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
# add missing executable bits on scripts
chmod +x %{buildroot}%{rb_sitelib}/qwt/qwt.rb
chmod +x %{buildroot}%{rb_sitelib}/qtdeclarative/qtdeclarative.rb
chmod +x %{buildroot}%{rb_sitelib}/phonon/phonon.rb
chmod +x %{buildroot}%{rb_sitelib}/qscintilla/qscintilla.rb
chmod +x %{buildroot}%{rb_sitelib}/qtuitools/qtuitools.rb
chmod +x %{buildroot}%{rb_sitelib}/qtwebkit/qtwebkit.rb
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kde4_bindir}/rbqtapi
%{_kde4_bindir}/rbrcc
%{_kde4_bindir}/rbuic4
%{_kde4_libdir}/libqtruby4shared.so.*
%{rb_sitelib}/*.rb
%{rb_sitelib}/Qt/
%{rb_sitelib}/phonon/
%{rb_sitelib}/qtdeclarative/
%{rb_sitelib}/qtscript/
%{rb_sitelib}/qttest/
%{rb_sitelib}/qtuitools/
%{rb_sitelib}/qtwebkit/
%{rb_sitelib}/qscintilla/
%{rb_sitelib}/qwt/
%{rb_sitearch}/*.so
%package devel
License: LGPLv2.1+
Summary: Development libraries for Ruby-Qt4
Group: Development/Languages/Ruby
Requires: %{name} = %{version}
%description devel
This package contains development files for the Ruby bindings for the Qt4 libraries.
%files devel
%defattr(-,root,root)
%{_kde4_libdir}/libqtruby4shared.so
%{_includedir}/qtruby/
%{_datadir}/qtruby4/
%changelog