[rubygem-rainbow] Add new sources

Josef Stribny jstribny at fedoraproject.org
Tue Dec 18 09:44:53 UTC 2012


commit 388f262f258376a1dcf751eeb158d452c8e63b78
Author: Josef Stribny <jstribny at redhat.com>
Date:   Tue Dec 18 10:42:56 2012 +0100

    Add new sources

 .gitignore           |    1 +
 rubygem-rainbow.spec |   74 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..90b0622 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rainbow-1.1.4.gem
diff --git a/rubygem-rainbow.spec b/rubygem-rainbow.spec
new file mode 100644
index 0000000..6554be8
--- /dev/null
+++ b/rubygem-rainbow.spec
@@ -0,0 +1,74 @@
+# Generated from rainbow-1.1.4.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name rainbow
+%global rubyabi 1.9.1
+
+Summary: Ruby String class extension enabling coloring text on ANSI terminals
+Name: rubygem-%{gem_name}
+Version: 1.1.4
+Release: 2%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://ku1ik.com/
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems) 
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems-devel 
+BuildRequires: rubygem(minitest)
+BuildRequires: ruby 
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+Rainbow is an extension to the Ruby String class adding support for colorizing
+text on ANSI terminals.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+
+# Force coloring, otherwise it won't color
+CLICOLOR_FORCE=1 ruby test/*_test.rb
+
+popd
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/LICENSE
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.markdown
+%doc %{gem_instdir}/Changelog
+%{gem_instdir}/test
+
+%changelog
+* Mon Dec 17 2012 Josef Stribny <jstribny at redhat.com> - 1.1.4-2
+- Removed a patch for tests in %check, replaced by CLICOLOR_FORCE=1 instead
+
+* Wed Dec 12 2012 Josef Stribny <jstribny at redhat.com> - 1.1.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..11b8225 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c5bb469c89b151668f8e4eeb37e98cbf  rainbow-1.1.4.gem


More information about the scm-commits mailing list