[packages/ruby-rainbow] new, version 1.1.4
glen
glen at pld-linux.org
Mon Feb 17 08:27:51 CET 2014
commit 6735b08661e166d4b8d92090ea847bab983bf51d
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Feb 17 09:27:32 2014 +0200
new, version 1.1.4
ruby-rainbow.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
---
diff --git a/ruby-rainbow.spec b/ruby-rainbow.spec
new file mode 100644
index 0000000..b526898
--- /dev/null
+++ b/ruby-rainbow.spec
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_without 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
+Release: 1
+License: MIT
+Group: Development/Languages
+Source0: http://rubygems.org/gems/%{pkgname}-%{version}.gem
+# Source0-md5: c5bb469c89b151668f8e4eeb37e98cbf
+URL: http://ku1ik.com/
+BuildRequires: ruby
+BuildRequires: rubygem(minitest)
+Requires: ruby(release)
+Requires: ruby(rubygems)
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Rainbow is an extension to the Ruby String class adding support for
+colorizing text on ANSI terminals.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+%if %{with tests}
+# Force coloring, otherwise it won't color
+CLICOLOR_FORCE=1 ruby test/*_test.rb
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.markdown Changelog LICENSE
+%{ruby_vendorlibdir}/rainbow.rb
+%{ruby_vendorlibdir}/ansi_color.rb
+%{ruby_vendorlibdir}/ansi_rgb.rb
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rainbow.git/commitdiff/6735b08661e166d4b8d92090ea847bab983bf51d
More information about the pld-cvs-commit
mailing list