[rubygem-gem2rpm/el5] Update to gem2rpm 0.10.1.
Vít Ondruch
vondruch at fedoraproject.org
Mon May 5 13:52:47 UTC 2014
commit f58f289d9876299691f7b6afaef47df017928117
Author: Vít Ondruch <vondruch at redhat.com>
Date: Mon May 5 13:19:14 2014 +0200
Update to gem2rpm 0.10.1.
.gitignore | 2 ++
rubygem-gem2rpm.spec | 25 ++++++++++++++++---------
sources | 4 ++--
3 files changed, 20 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 37ffa06..f64e084 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,5 @@ gem2rpm-0.6.0.gem
/gem2rpm-0.9.1.gem
/gem2rpm-0.9.2-tests.tgz
/gem2rpm-0.9.2.gem
+/gem2rpm-0.10.1-tests.tgz
+/gem2rpm-0.10.1.gem
diff --git a/rubygem-gem2rpm.spec b/rubygem-gem2rpm.spec
index 4d2c93f..f12fb96 100644
--- a/rubygem-gem2rpm.spec
+++ b/rubygem-gem2rpm.spec
@@ -8,15 +8,15 @@
Summary: Generate rpm specfiles from gems
Name: rubygem-%{gemname}
-Version: 0.9.2
+Version: 0.10.1
Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL: https://github.com/lutter/gem2rpm/
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
-# git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.9.2
-# tar czvf gem2rpm-0.9.2-tests.tgz test/
+# git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.10.1
+# tar czvf gem2rpm-0.10.1-tests.tgz test/
Source1: %{gemname}-%{version}-tests.tgz
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems)
@@ -24,6 +24,7 @@ Requires: ruby
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(rubygems)
BuildRequires: ruby
+BuildRequires: rubygem(minitest)
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
@@ -54,10 +55,6 @@ gem install --local --install-dir .%{gemdir} \
%install
rm -rf %{buildroot}
-# The UTF-8 access mode is not supported by Ruby 1.8.5 in EPEL5.
-# https://github.com/lutter/gem2rpm/issues/23
-sed -i 's/, "r:UTF-8"//' .%{geminstdir}/lib/gem2rpm/distro.rb
-
mkdir -p %{buildroot}%{gemdir}
cp -a .%{gemdir}/* \
%{buildroot}%{gemdir}/
@@ -74,10 +71,17 @@ pushd .%{geminstdir}
tar xzvf %{SOURCE1}
# Disable this test, since it needs online access (see the comment on line 22).
-sed -i "23,25 d" test/test_gem2rpm.rb
+sed -i "/test_find_download_url_for_source_address/,/ end/ s/^/#/" test/test_gem2rpm.rb
+
+ruby -Itest - << \EOF
+ require 'rubygems'
+ require 'minitest/unit'
+ module Minitest; end;
-testrb test/
+ Minitest::Test = MiniTest::Unit::TestCase
+ Dir.glob "./test/**/test_*.rb", &method(:require)
+EOF
popd
%files
@@ -96,6 +100,9 @@ popd
%doc %{geminstdir}/AUTHORS
%changelog
+* Mon May 05 2014 Vít Ondruch <vondruch at redhat.com> - 0.10.1-1
+- Update to gem2rpm 0.10.1.
+
* Tue Apr 23 2013 Vít Ondruch <vondruch at redhat.com> - 0.9.2-1
- Update to gem2rpm 0.9.2.
diff --git a/sources b/sources
index 2059003..43132ed 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-e5a178f7cf4aff215cfe232d8808d2e4 gem2rpm-0.9.2-tests.tgz
-6988e28332369a79067d45b8c61f2851 gem2rpm-0.9.2.gem
+7efa72436d776242f047c658acfcf3bc gem2rpm-0.10.1-tests.tgz
+79141142a432303e0d611f75dfd20591 gem2rpm-0.10.1.gem
More information about the scm-commits
mailing list