[rubygem-highline/f21] Update to HighLine 1.6.21.
Vít Ondruch
vondruch at fedoraproject.org
Wed Jul 9 15:20:54 UTC 2014
commit 85b2afc11f0b6ceb292441e0e31e1ec4b5422dfc
Author: Vít Ondruch <vondruch at redhat.com>
Date: Wed Jul 9 17:18:47 2014 +0200
Update to HighLine 1.6.21.
.gitignore | 1 +
rubygem-highline.spec | 35 ++++---
rubygem-highline.spec.template | 193 ----------------------------------------
sources | 2 +-
4 files changed, 22 insertions(+), 209 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 03226a8..970ce7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
highline-1.5.1.tgz
/highline-1.5.2.tgz
/highline-1.6.11.gem
+/highline-1.6.21.gem
diff --git a/rubygem-highline.spec b/rubygem-highline.spec
index 297a5b7..2f2a869 100644
--- a/rubygem-highline.spec
+++ b/rubygem-highline.spec
@@ -3,22 +3,17 @@
Summary: HighLine is a high-level command-line IO library
Name: rubygem-%{gem_name}
-Version: 1.6.11
-Release: 7%{?dist}
+Version: 1.6.21
+Release: 1%{?dist}
Group: Development/Languages
-License: GPLv2+ or Ruby
-URL: http://highline.rubyforge.org
+License: GPLv2 or Ruby or BSD
+URL: https://github.com/JEG2/highline
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Source1: rubygem-%{gem_name}.spec.template
-Requires: ruby(release)
-Requires: ruby(rubygems)
-Requires: ruby
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
-BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(test-unit)
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
A high-level IO library that provides validation, type conversion, and more
@@ -49,17 +44,25 @@ cp -a .%{gem_dir}/* \
# Fix the shebang.
find %{buildroot}%{gem_instdir}/{examples,lib,test}/ -type f -name '*.rb' -exec \
sed -i -e 's|/usr/local/bin/ruby|/usr/bin/ruby|' '{}' \;
-# Remove cvs files.
+
+# Remove hidden files.
find %{buildroot}%{gem_instdir}/ -type f -iname '.*' -exec rm -f '{}' \;
%check
-pushd %{buildroot}%{gem_instdir}
-ruby -S testrb -Ilib test/*
+pushd .%{gem_instdir}
+# Test fails without real terminal.
+sed -i '/^ def test_terminal_size$/,/^ end$/ s/^/#/' test/tc_highline.rb
+
+# Set locales, since the test suite does some unjustified assumptions about
+# encoding.
+# https://github.com/JEG2/highline/issues/108
+LANG=en_US.utf8 ruby -Ilib:test test/ts_all.rb
popd
%files
%dir %{gem_instdir}
+%exclude %{gem_instdir}/setup.rb
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
@@ -67,7 +70,7 @@ popd
%files doc
%doc %{gem_docdir}
-%doc %{gem_instdir}/README
+%doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/TODO
%doc %{gem_instdir}/CHANGELOG
%doc %{gem_instdir}/LICENSE
@@ -75,12 +78,14 @@ popd
%{gem_instdir}/Rakefile
%{gem_instdir}/examples
%{gem_instdir}/%{gem_name}.gemspec
-%{gem_instdir}/setup.rb
%{gem_instdir}/site
%{gem_instdir}/test
%exclude %{gem_instdir}/INSTALL
%changelog
+* Wed Jul 09 2014 Vít Ondruch <vondruch at redhat.com> - 1.6.21-1
+- Update to HighLine 1.6.21.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.11-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index d2c8f56..1bb5050 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-878416e4943c73f7429845765fe4195d highline-1.6.11.gem
+fc79952fb9d12957d828da76b94e4ecb highline-1.6.21.gem
More information about the scm-commits
mailing list