[rubygem-minitest] 2.10.1

Mamoru Tasaka mtasaka at fedoraproject.org
Sat Jan 21 20:06:26 UTC 2012


commit 1a1c02f145008c80eceeb8bd7b8808618c5a5f1b
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Sun Jan 22 05:06:22 2012 +0900

    2.10.1

 .gitignore            |    1 +
 rubygem-minitest.spec |   30 +++++++++++++++++++-----------
 sources               |    2 +-
 3 files changed, 21 insertions(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index be1e54d..a8e8104 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 minitest-1.6.0.gem
+/minitest-2.10.1.gem
diff --git a/rubygem-minitest.spec b/rubygem-minitest.spec
index b8c7fa6..27b202b 100644
--- a/rubygem-minitest.spec
+++ b/rubygem-minitest.spec
@@ -1,22 +1,23 @@
 # Generated from minitest-1.4.2.gem by gem2rpm -*- rpm-spec -*-
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gemname minitest
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global	gem_name minitest
+%global gemname %{gem_name}
 
-%global rubyabi 1.8
+%global	gemdir %{gem_dir}
+%global	geminstdir %{gem_instdir}
+
+%global rubyabi 1.9.1
 
 Summary: Small and fast replacement for ruby's huge and slow test/unit
 Name: rubygem-%{gemname}
-Version: 1.6.0
-Release: 4%{?dist}
+Version: 2.10.1
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://rubyforge.org/projects/bfts
 Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: ruby(rubygems)
 Requires: ruby(abi) = %{rubyabi}
-BuildRequires: ruby(rubygems)
+BuildRequires: rubygems-devel
 BuildRequires: ruby(abi) = %{rubyabi}
 BuildArch: noarch
 Provides: rubygem(%{gemname}) = %{version}
@@ -50,7 +51,7 @@ gem install -V \
   --force --rdoc \
   %{SOURCE0}
 
-pushd .%{geminstdir}
+find . -name \*gem -exec chmod 0644 {} \;
 
 %build
 
@@ -65,12 +66,17 @@ find %{buildroot}%{geminstdir}/lib -type f | \
 find %{buildroot}%{geminstdir} -type f | \
   xargs chmod 0644
 
+rm -f %{buildroot}%{geminstdir}/{.autotest,.gemtest}
+
 %clean
 rm -rf %{buildroot}
 
 %check
 pushd .%{geminstdir}
-RUBYOPT=Ilib ruby -e "Dir.glob('test/**/test_*').each {|t| require t}"
+for f in test/test_*.rb
+do
+	ruby -Ilib:. $f
+done
 
 %files
 %defattr(-,root,root,-)
@@ -86,11 +92,13 @@ RUBYOPT=Ilib ruby -e "Dir.glob('test/**/test_*').each {|t| require t}"
 %defattr(-,root,root,-)
 %{geminstdir}/Rakefile
 %{geminstdir}/test
-%{geminstdir}/.autotest
 %{geminstdir}/design_rationale.rb
 %{gemdir}/doc/%{gemname}-%{version}
 
 %changelog
+* Sun Jan 21 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 2.10.1-1
+- 2.10.1
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index 7e96974..09bc7bc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e461f6b81f23a88c5d9305f48042fa1b  minitest-1.6.0.gem
+9b3fa04082fecb429c40b7201c4f3038  minitest-2.10.1.gem


More information about the scm-commits mailing list