[rubygem-columnize] Update to columnize 0.8.9.

Vít Ondruch vondruch at fedoraproject.org
Tue Jul 8 12:20:28 UTC 2014


commit a615c5b77d8366d9811e248380bd7ed6d1a5e1ed
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Jul 8 14:20:40 2014 +0200

    Update to columnize 0.8.9.

 .gitignore             |    1 +
 rubygem-columnize.spec |  107 +++++++++++++++++++++++++++--------------------
 sources                |    2 +-
 3 files changed, 63 insertions(+), 47 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a960494..7092c42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 columnize-0.3.1.gem
+/columnize-0.8.9.gem
diff --git a/rubygem-columnize.spec b/rubygem-columnize.spec
index 4e30c7c..63b4a77 100644
--- a/rubygem-columnize.spec
+++ b/rubygem-columnize.spec
@@ -1,81 +1,96 @@
 %global gem_name columnize
 
-Summary:        Sorts an array in column order
+Summary:        Module to format an Array as an Array of String aligned in columns
 Name:           rubygem-%{gem_name}
-Version:        0.3.1
-Release:        11%{?dist}
+Version:        0.8.9
+Release:        1%{?dist}
 Group:          Development/Languages
-License:        GPLv2
-URL:            http://rubyforge.org/projects/rocky-hacks/
-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)
-BuildRequires:	ruby(release)
+License:        Ruby or GPLv2
+URL:            https://github.com/rocky/columnize
+Source0:        https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires:  ruby(release)
 BuildRequires:  rubygems-devel
-BuildRequires:	rubygem(minitest)
+BuildRequires:  rubygem(minitest)
 BuildArch:      noarch
-Provides:       rubygem(%{gem_name}) = %{version}
 
 %description
-Sorts an array in column order
+In showing a long lists, sometimes one would prefer to see the value
+arranged aligned in columns. Some examples include listing methods
+of an object or debugger commands.
+See Examples in the rdoc documentation for examples.
 
-%prep
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
 
-%build
+%description doc
+Documentation for %{name}.
 
-%install
-rm -rf %{buildroot}
-%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
 
-# Remove backup files
-find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
-
-# Fix shebangs
-find %{buildroot}/%{gem_instdir} -type f -exec sed -r -e 's"^#!(.*)/usr/bin/env ruby"#!/usr/bin/ruby"' {} \;
+%prep
+gem unpack %{SOURCE0}
 
-# Fix anything executable that does not have a shebang
-for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
-    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
-done
+%setup -q -D -T -n  %{gem_name}-%{version}
 
-# Find files with a shebang that do not have executable permissions
-for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
-    [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
-done
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
-# Find files that have non-standard-executable-perm
-find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
+%build
+gem build %{gem_name}.gemspec
 
-# Find files that are not readable
-find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
+%gem_install
 
-# Remove these hidden files
-rm -rf %{buildroot}/%{gem_instdir}/.project
-rm -rf %{buildroot}/%{gem_instdir}/.loadpath
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
 
 %check
-pushd %{buildroot}/%{gem_instdir}
-testrb test/*.rb
+pushd .%{gem_instdir}
+ruby -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
+
+  Dir.glob "./test/test-*.rb", &method(:require)
+EOF
 popd
 
 %files
+%doc %{gem_instdir}/COPYING
 %doc %{gem_docdir}/
 %dir %{gem_instdir}
+%exclude %{gem_instdir}/.*
+%{gem_libdir}/
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
 %doc %{gem_instdir}/AUTHORS
-%doc %{gem_instdir}/COPYING
 %doc %{gem_instdir}/ChangeLog
+%{gem_instdir}/columnize.gemspec
+%{gem_instdir}/Gemfile*
+%{gem_instdir}/Makefile
 %doc %{gem_instdir}/NEWS
-%doc %{gem_instdir}/README
 %doc %{gem_instdir}/Rakefile
-%doc %{gem_instdir}/VERSION
-%{gem_libdir}/
+%doc %{gem_instdir}/README.md
+%doc %{gem_instdir}/THANKS
 %{gem_instdir}/test/
-%exclude %{gem_cache}
-%{gem_spec}
 
 
 %changelog
+* Tue Jul 08 2014 Vít Ondruch <vondruch at redhat.com> - 0.8.9-1
+- Update to columnize 0.8.9.
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.1-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 40b0c43..bc5c0b8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-be4ceeabac3b467229427a786cbfea8d  columnize-0.3.1.gem
+55efbfae87bbe117df38614a910ce5a3  columnize-0.8.9.gem


More information about the scm-commits mailing list