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

%description
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
management.

%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.

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

%build

%install
%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
EOF

%files
%defattr(-,root,root,-)
%{_bindir}/tj3
%{_bindir}/tj3client
%{_bindir}/tj3d
%{_bindir}/tj3man
%{_bindir}/tj3ss_receiver
%{_bindir}/tj3ss_sender
%{_bindir}/tj3ts_receiver
%{_bindir}/tj3ts_sender
%{_bindir}/tj3ts_summary
%{_bindir}/tj3webd
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
# vim
%{_datadir}/vim

%files doc
%defattr(-,root,root,-)
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/

%files testsuite
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec

%changelog