File kdevelop4-plugin-ruby.spec of Package kdevelop4-plugin-ruby

# spec file for package kdevelop4-plugin-ruby
# Copyright (c) 2013 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

%define rname kdev-ruby
%define rversion 1.6.60

Name:           kdevelop4-plugin-ruby
Version:        %{rversion}+20141111
Release:        0
Summary:        Ruby plugin for Kdevelop
License:        GPL-2.0+
Group:          Development/Tools/IDE
Source0:        %{rname}-%{rversion}.tar.xz
Source1:        %{name}-lang.tar.xz
BuildRequires:  bison
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  libkdevplatform4-devel >= 1.7.0
Recommends:     %{name}-lang
Requires:       kdevelop4 >= 4.7

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A KDevelop plugin which adds support to Ruby.

%setup -q -a 1 -n %{rname}-%{rversion}
cat >> CMakeLists.txt << EOF
add_subdirectory( po )

  %cmake_kde4 -d build

  %kde4_makeinstall -C build
  %fdupes -s %{buildroot}%{_datadir}/locale

  %find_lang kdevruby %{name}.lang

%files lang -f %{name}.lang

%dir %{_kde4_appsdir}/kdevappwizard/
%dir %{_kde4_appsdir}/kdevappwizard/templates/