LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File rubygem-taskjuggler.spec of Package rubygem-taskjuggler (Project devel:languages:ruby:extensions)

# spec file for package rubygem-taskjuggler
# Copyright (c) 2012 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:           rubygem-taskjuggler
Version:        3.3.0
Release:        0
%define mod_name taskjuggler
%define mod_full_name %{mod_name}-%{version}

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# not needed?
#BuildRequires:  ruby-macros >= 1
Requires:       ruby >= 1.8.7
Provides:       taskjuggler = %{version}-%{release}
BuildRequires:  ruby-devel >= 1.8.7
Url:            http://www.taskjuggler.org
Source:         %{mod_full_name}.gem
Summary:        A Project Management Software
License:        GPL-2.0
Group:          Development/Languages/Ruby

TaskJuggler is a modern and powerful, Free and Open Source Software project
management tool. Its new approach to project planing and tracking is more
flexible and superior to the commonly used Gantt chart editing tools.
TaskJuggler is project management software for serious project managers. It
covers the complete spectrum of project management tasks from the first idea
to the completion of the project. It assists you during project scoping,
resource assignment, cost and revenue planing, risk and communication

%package doc
Summary:        RDoc documentation for %{mod_name}
Group:          Development/Languages/Ruby
Requires:       %{name} = %{version}

%description doc
Documentation generated at gem installation time.
Usually in RDoc and RI formats.

%package testsuite
Summary:        Test suite for %{mod_name}
Group:          Development/Languages/Ruby
Requires:       %{name} = %{version}

%description testsuite
Test::Unit or RSpec files, useful for developers.

#if you need patches, apply them here and replace the # with a % sign in the surrounding lines


%gem_install -f
## vim
# don't turn on folding automatically
sed -i '/foldmethod/d' %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/data/tjp.vim
install -d -m 0755 %{buildroot}%{_datadir}/vim/site/{syntax,ftdetect}
ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/data/tjp.vim %{buildroot}%{_datadir}/vim/site/syntax
cat > %{buildroot}%{_datadir}/vim/site/ftdetect/tjp_filetype.vim <<EOF
au BufNewFile,BufRead *.tjp,*.tji  set ft=tjp

%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
# vim

%files doc
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/

%files testsuite