[packages/ruby-colored] new, version 1.2
glen
glen at pld-linux.org
Thu Apr 25 21:12:18 CEST 2013
commit 153867effaec19098f1c62eb5469b89bce9b65c5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Apr 25 22:11:25 2013 +0300
new, version 1.2
based on fedora rubygem-colored package
0f8b26f3c3b5e23b124da54cb20d30c7cc2e6845
ruby-colored.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
---
diff --git a/ruby-colored.spec b/ruby-colored.spec
new file mode 100644
index 0000000..ff4f827
--- /dev/null
+++ b/ruby-colored.spec
@@ -0,0 +1,54 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
+%define gem_name colored
+Summary: Extends ruby string class in order to colorize terminal output
+Name: ruby-%{gem_name}
+Version: 1.2
+Release: 1
+License: MIT
+Group: Development/Languages
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+# Source0-md5: 1b1a0f16f7c6ab57d1a2d6de53b13c42
+URL: http://github.com/defunkt/colored
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires: ruby-minitest
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Rubygem extending the ruby string class to include methods that
+generates colored terminal output.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -n %{gem_name}-%{version}
+
+%build
+%if %{with tests}
+testrb -Ilib test/colored_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 LICENSE
+%{ruby_vendorlibdir}/colored.rb
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-colored.git/commitdiff/153867effaec19098f1c62eb5469b89bce9b65c5
More information about the pld-cvs-commit
mailing list