[rubygem-taskjuggler/f21] Update to TaskJuggler 3.5.0.
Vít Ondruch
vondruch at fedoraproject.org
Wed Jul 30 16:03:50 UTC 2014
commit 4c601656e381accf015398345388f52129887434
Author: Vít Ondruch <vondruch at redhat.com>
Date: Wed Jul 30 18:03:07 2014 +0200
Update to TaskJuggler 3.5.0.
.gitignore | 1 +
rubygem-taskjuggler.spec | 51 ++++++++++++++++++++++++++++++++++-----------
sources | 2 +-
3 files changed, 40 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8508aff..b42b775 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/taskjuggler-3.3.0.gem
/taskjuggler-3.4.0.gem
+/taskjuggler-3.5.0.gem
diff --git a/rubygem-taskjuggler.spec b/rubygem-taskjuggler.spec
index 96e6db4..b65e532 100644
--- a/rubygem-taskjuggler.spec
+++ b/rubygem-taskjuggler.spec
@@ -3,17 +3,12 @@
Summary: A Project Management Software
Name: rubygem-%{gem_name}
-Version: 3.4.0
-Release: 5%{?dist}
+Version: 3.5.0
+Release: 1%{?dist}
Group: Development/Languages
License: GPLv2
URL: http://www.taskjuggler.org
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(release)
-Requires: ruby(rubygems)
-Requires: rubygem(mail) >= 2.4.3
-Requires: rubygem(term-ansicolor) >= 1.0.7
-Requires: rubygem-rspec >= 2.5.0
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(mail) >= 2.4.3
@@ -21,7 +16,6 @@ BuildRequires: rubygem-minitest
BuildRequires: rubygem-rspec
BuildRequires: rubygem(term-ansicolor) >= 1.0.7
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
TaskJuggler is a modern and powerful, Free and Open Source Software project
@@ -60,10 +54,32 @@ gem build %{gem_name}.gemspec
%gem_install
%check
-#FIXME Export-Reports and Syntax tests are failing for some reason
-testrb -Ilib -x test_Export-Reports.rb -x test_Syntax.rb ./test
-#FIXME rspec fails on rspec -Ilib spec
-rspec -Ilib ./spec/*.rb
+pushd .%{gem_instdir}
+# The test cases does not work reliably.
+mv ./test/test_BatchProcessor.rb{,.disable}
+
+# Run the tests using minitest 5.
+LANG=en_US.utf8 ruby -Ilib -rminitest/autorun - << \EOF
+ module Kernel
+ alias orig_require require
+ remove_method :require
+
+ def require path
+ orig_require path unless path == 'test/unit'
+ end
+ end
+
+ module Minitest::Assertions
+ alias :assert_raise :assert_raises
+ end
+
+ Test = Minitest
+
+ Dir.glob "./test/test_*.rb", &method(:require)
+EOF
+
+rspec -Ilib spec
+popd
%install
mkdir -p %{buildroot}%{gem_dir}
@@ -74,6 +90,10 @@ mkdir -p %{buildroot}%{_bindir}
cp -pa ./%{_bindir}/* \
%{buildroot}%{_bindir}/
+# Remove shebangs.
+find %{buildroot}%{gem_instdir}/{lib,test,spec} -type f | \
+ xargs -n 1 sed -i -e '/^#!\/usr\/bin\/env ruby/d'
+
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.gemtest
@@ -89,6 +109,8 @@ cp -pa ./%{_bindir}/* \
%{_bindir}/tj3webd
%{gem_instdir}/bin
%doc %{gem_instdir}/COPYING
+# TODO: Includes VIM syntax highlighter, might be worth of extracting into
+# subpackage?
%{gem_instdir}/data
%{gem_libdir}
%exclude %{gem_cache}
@@ -108,6 +130,9 @@ cp -pa ./%{_bindir}/* \
%changelog
+* Tue Jul 29 2014 Vít Ondruch <vondruch at redhat.com> - 3.5.0-1
+- Update to TaskJuggler 3.5.0.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
@@ -123,7 +148,7 @@ cp -pa ./%{_bindir}/* \
* Fri Dec 21 2012 Tomas Dabasinskas <tomas at redhat.com> - 3.4.0-1
- Updating to 3.4.0
-* Tue Oct 25 2012 Tomas Dabasinskas <tomas at redhat.com> - 3.3.0-3
+* Thu Oct 25 2012 Tomas Dabasinskas <tomas at redhat.com> - 3.3.0-3
- Updating the spec based on Russell's <rharrison at fedoraproject.org>
rubygem-taskjuggler-3.3.0-3.fc19.spec
- Disabled Export-Reports and Syntax tests. Tests pass when called
diff --git a/sources b/sources
index 6557c54..d207926 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f5e9875ef80871eb39b2caccab01c5cb taskjuggler-3.4.0.gem
+25a3d66a4ad0beb78927418ae70c76bf taskjuggler-3.5.0.gem
More information about the scm-commits
mailing list