File rubygem-qml.spec of Package rubygem-qml

#
# spec file for package rubygem-qml
#
# Copyright (c) 2015 SUSE LINUX 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:           rubygem-qml
Version:        1.0.2
Release:        0
%define mod_name qml
%define mod_full_name %{mod_name}-%{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ruby-macros >= 5
BuildRequires:  %{rubydevel >= 1.9.3}
BuildRequires:  %{rubygem gem2rpm}
Url:            http://seanchas116.github.io/ruby-qml/
Source:         http://rubygems.org/gems/%{mod_full_name}.gem
Source1:	series
Source2:	gem2rpm.yml
Summary:        A QML / Qt Quick wrapper for Ruby
License:        MIT
Group:          Development/Languages/Ruby
# MANUAL
BuildRequires:	libqt5-qtbase-devel >= 5.4.0
BuildRequires:  libqt5-qtbase-private-headers-devel
BuildRequires:  libqt5-qtdeclarative-devel
Patch:		ruby-qml-qmake-qt5.patch
Patch1:		ruby-qml-no-rpath.patch
# /MANUAL

%description
ruby-qml provides bindings between QML and Ruby and enables you to use Qt
Quick-based GUI from Ruby.

%prep
%gem_unpack
%patch -p1
%patch1 -p1
find -type f -print0 | xargs -0 touch -r %{S:0}
%gem_build

%build

%install
%gem_install \
  --doc-files="LICENSE.txt README.md changes.md" \
  -f
%gem_cleanup

# MANUAL
find %{buildroot} -name ".*" -print -delete
find %{buildroot} -name "*.c" -print -delete
find %{buildroot} -name "*.cpp" -print -delete
find %{buildroot} -name "*.h" -print -delete
find %{buildroot} -name "*.pro" -print -delete
find %{buildroot} -name "extconf.rb" -print -delete
find %{buildroot}%{_libdir}/ruby/gems/*/gems -type d -empty -print -delete
# /MANUAL

%gem_packages

%changelog
openSUSE Build Service is sponsored by