[packages/ruby-rainbow] up to 2.0.0
glen
glen at pld-linux.org
Mon Feb 17 08:35:34 CET 2014
commit 7c22e558758c12d7be13cc4e8e64b99ea4ed0ed7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Feb 17 09:35:28 2014 +0200
up to 2.0.0
ruby-rainbow.spec | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/ruby-rainbow.spec b/ruby-rainbow.spec
index ed7d758..bbd3bcd 100644
--- a/ruby-rainbow.spec
+++ b/ruby-rainbow.spec
@@ -1,20 +1,25 @@
#
# Conditional build:
-%bcond_without tests # build without tests
+%bcond_with tests # build without tests
%define pkgname rainbow
Summary: Ruby String class extension enabling coloring text on ANSI terminals
Name: ruby-%{pkgname}
-Version: 1.1.4
+Version: 2.0.0
Release: 1
License: MIT
Group: Development/Languages
Source0: http://rubygems.org/gems/%{pkgname}-%{version}.gem
-# Source0-md5: c5bb469c89b151668f8e4eeb37e98cbf
-URL: http://ku1ik.com/
+# Source0-md5: 5e2a70432911f5049472d1273c1521c7
+URL: https://github.com/sickill/rainbow
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
-BuildRequires: rubygem(minitest)
+%if %{with tests}
+BuildRequires: ruby-bundler < 2
+BuildRequires: ruby-bundler >= 1.3
+BuildRequires: ruby-rake
+BuildRequires: ruby-rspec
+%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -30,8 +35,7 @@ colorizing text on ANSI terminals.
%__gem_helper spec
%if %{with tests}
-# Force coloring, otherwise it won't color
-CLICOLOR_FORCE=1 ruby test/*_test.rb
+rspec
%endif
%install
@@ -45,8 +49,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.markdown Changelog LICENSE
+%doc README.markdown Changelog.md LICENSE
%{ruby_vendorlibdir}/rainbow.rb
-%{ruby_vendorlibdir}/ansi_color.rb
-%{ruby_vendorlibdir}/ansi_rgb.rb
+%{ruby_vendorlibdir}/rainbow
%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rainbow.git/commitdiff/7c22e558758c12d7be13cc4e8e64b99ea4ed0ed7
More information about the pld-cvs-commit
mailing list