[rubygem-rdoc] Update to RDoc 4.0.1.

Vít Ondruch vondruch at fedoraproject.org
Fri Mar 29 13:42:40 UTC 2013


commit 0c1fc87df65a2a02be430bd64810867d516196b3
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Mar 29 14:42:31 2013 +0100

    Update to RDoc 4.0.1.

 .gitignore        |    1 +
 rubygem-rdoc.spec |   22 ++++++++++++++++++----
 sources           |    2 +-
 3 files changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 841739f..9403b4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /rdoc-3.12.gem
 /rdoc-3.12.1.gem
 /rdoc-4.0.0.gem
+/rdoc-4.0.1.gem
diff --git a/rubygem-rdoc.spec b/rubygem-rdoc.spec
index e91f48b..c6e2bc3 100644
--- a/rubygem-rdoc.spec
+++ b/rubygem-rdoc.spec
@@ -4,8 +4,8 @@
 
 Summary: RDoc produces HTML and command-line documentation for Ruby projects
 Name: rubygem-%{gem_name}
-Version: 4.0.0
-Release: 100%{?dist}
+Version: 4.0.1
+Release: 1%{?dist}
 Group: Development/Languages
 License: GPLv2 and Ruby and MIT
 URL: http://docs.seattlerb.org/rdoc/
@@ -19,7 +19,7 @@ BuildRequires: rubygems-devel
 BuildRequires: rubygem(minitest)
 BuildRequires: rubygem(json) => 1.4
 BuildRequires: rubygem(json) < 2
-# Execute Rake intagration test cases.
+# Execute Rake integration test cases.
 BuildRequires: rubygem(rake)
 BuildRequires: ruby(irb)
 BuildArch: noarch
@@ -62,7 +62,18 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 
 %check
 pushd .%{gem_instdir}
-testrb -Ilib test
+# There is neccessary to disable system gems to avoid conflicts with system
+# RDoc and specify several paths for test dependencies manually. Let's evaluate
+# them by this nice Ruby snippet.
+RUBYOPT=-I`ruby <<EOF
+  specs = %w{rake minitest json psych}.map {|g| Gem::Specification.find_by_name(g)}
+  specs.map! do |s|
+    paths = [s.gem_dir]
+    paths << s.ext_dir unless s.extensions.empty?
+    paths.map {|p| File.join p, s.require_paths.first}
+  end
+  puts specs.join(':')
+EOF`:lib GEM_PATH= testrb test
 popd
 
 %files
@@ -91,6 +102,9 @@ popd
 
 
 %changelog
+* Fri Mar 29 2013 Vít Ondruch <vondruch at redhat.com> - 4.0.1-1
+- Update to RDoc 4.0.1.
+
 * Tue Mar 26 2013 Josef Stribny <jstribny at redhat.com> - 4.0.0-100
 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
 - Update to RDoc 4.0.0
diff --git a/sources b/sources
index c28d8f3..2675995 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bd5157c036a2f036d36fa48e580ee143  rdoc-4.0.0.gem
+bf1b53ae65f19e956c31023c8648b8b8  rdoc-4.0.1.gem


More information about the scm-commits mailing list