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

%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
Url:            http://www.kdevelop.org
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
%kde4_runtime_requires

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

%description
A KDevelop plugin which adds support to Ruby.

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

%build
  %cmake_kde4 -d build
  %make_jobs

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

  %find_lang kdevruby %{name}.lang

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%dir %{_kde4_appsdir}/kdevappwizard/
%dir %{_kde4_appsdir}/kdevappwizard/templates/

%{_kde4_appsdir}/kdevappwizard/templates/*
%{_kde4_appsdir}/kdevrubysupport/
%{_kde4_libdir}/libkdev4ruby*
%{_kde4_modulesdir}/kdevrubylanguagesupport.so
%{_kde4_servicesdir}/kdevrubysupport.desktop

%changelog