[rubygem-term-ansicolor] Fix FTBFS in Rawhide (rhbz#1107255).
Vít Ondruch
vondruch at fedoraproject.org
Mon Jul 7 13:29:06 UTC 2014
commit f7277b2f951553aee793bf659f04c138ed1729f1
Author: Vít Ondruch <vondruch at redhat.com>
Date: Mon Jul 7 15:29:15 2014 +0200
Fix FTBFS in Rawhide (rhbz#1107255).
rubygem-term-ansicolor.spec | 42 +++++++++++++++++++++++++++++++-----------
1 files changed, 31 insertions(+), 11 deletions(-)
---
diff --git a/rubygem-term-ansicolor.spec b/rubygem-term-ansicolor.spec
index 0395cc0..f0303b3 100644
--- a/rubygem-term-ansicolor.spec
+++ b/rubygem-term-ansicolor.spec
@@ -3,20 +3,14 @@
Summary: Ruby library that colors strings using ANSI escape sequences
Name: rubygem-%{gem_name}
Version: 1.3.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: Development/Languages
License: GPLv2
-URL: http://term-ansicolor.rubyforge.org
-Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: ruby(release)
-Requires: ruby(rubygems)
-Requires: rubygem(tins) => 1.0
-Requires: rubygem(tins) < 2
+URL: http://flori.github.com/term-ansicolor
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: rubygems-devel
-BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(minitest) > 5
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
This library uses ANSI escape sequences to control the attributes of terminal
@@ -57,10 +51,33 @@ rm -f %{buildroot}%{gem_instdir}/bin/cdiff
# https://github.com/flori/term-ansicolor/pull/19
chmod a-x %{buildroot}%{gem_instdir}/{CHANGES,VERSION,Rakefile,./examples/example.rb,README.rdoc,COPYING}
+# Remove empty hidden file.
+rm %{buildroot}%{gem_libdir}/term/ansicolor/.keep
+
%check
pushd %{buildroot}%{gem_instdir}
-testrb -Ilib tests/*
+# To run the tests using minitest 5
+ruby -Ilib:tests -rminitest/autorun - << \EOF
+ module Kernel
+ alias orig_require require
+ remove_method :require
+
+ def require path
+ orig_require path unless path == 'test/unit'
+ end
+
+ end
+
+ Test = Minitest
+
+ module Minitest::Assertions
+ alias :assert_raise :assert_raises
+ alias :assert_not_equal :refute_equal
+ end
+
+ Dir.glob "./tests/**/*_test.rb", &method(:require)
+EOF
popd
%files
@@ -86,6 +103,9 @@ popd
%changelog
+* Mon Jul 07 2014 Vít Ondruch <vondruch at redhat.com> - 1.3.0-3
+- Fix FTBFS in Rawhide (rhbz#1107255).
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list