[rubygem-ruby-debug-base] 0.10.5 rc1

Mamoru Tasaka mtasaka at fedoraproject.org
Wed Nov 9 12:50:05 UTC 2011


commit 0ff1ddf5d17271ee82f36b5ed2708b15e6775e9f
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Wed Nov 9 21:49:55 2011 +0900

    0.10.5 rc1

 .gitignore                   |    2 ++
 rubygem-ruby-debug-base.spec |   40 +++++++++++++++++++++++++++-------------
 sources                      |    3 ++-
 3 files changed, 31 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6d80400..759de09 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@
 /ruby-debug-base-0.10.4rc2.gem
 /ruby-debug-base-0.10.4rc3.gem
 /ruby-debug-base-0.10.4.gem
+/ruby-debug-base-0.10.5.rc1.gem
+/rubygem-ruby-debug-base-0.10.5.rc1-missingfiles.tar.gz
diff --git a/rubygem-ruby-debug-base.spec b/rubygem-ruby-debug-base.spec
index f1fea21..86cc71f 100644
--- a/rubygem-ruby-debug-base.spec
+++ b/rubygem-ruby-debug-base.spec
@@ -1,8 +1,8 @@
 %global	rubyabi	1.8
 
 %global	repoid		73082
-%global	majorver	0.10.4
-#%%global	preminorver	rc3
+%global	majorver	0.10.5
+%global	preminorver	.rc1
 
 # Upstream SCM: using SVN
 # SVN path: svn://rubyforge.org/var/svn/ruby-debug/trunk
@@ -18,22 +18,22 @@
 %global	geminstdir	%{gemdir}/gems/%{gemname}-%{majorver}%{?preminorver}
 %global	ruby_sitearch	%(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
 
-%global	mainrel	2
+%global	mainrel	1
 
 Summary:	Core component for fast Ruby debugger
 Name:		rubygem-%{gemname}
 Version:	%{majorver}
-Release:	%{?preminorver:0.}%{mainrel}%{?preminorver:.%preminorver}%{?dist}
+Release:	%{?preminorver:0.}%{mainrel}%{?preminorver:.%(echo %preminorver | sed -e 's|^\.[\.]*||')}%{?dist}
 Group:		Development/Languages
 License:	BSD
 URL:		http://rubyforge.org/projects/ruby-debug/
 %if 0%{?using_svn}
 Source0:	%{gemname}-%{majorver}%{?svnver}.tar.gz
 %else
-#Source0:	http://rubygems.org/gems/%%{gemname}-%%{version}.gem
-# rc release not hosted on rubygems.org yet, using rubyforge.org site
-Source0:	http://rubyforge.org/frs/download.php/%{repoid}/%{gemname}-%{majorver}%{?preminorver}.gem
+Source0:	http://rubygems.org/gems/%{gemname}-%{majorver}%{?preminorver}.gem
 %endif
+# Some files are missing... pulling them from ruby-debug 0.10.5rc1
+Source1:	rubygem-%{gemname}-%{majorver}%{?preminorver}-missingfiles.tar.gz
 
 Requires:	ruby(abi) = %{rubyabi}
 Requires:	rubygem(linecache)
@@ -91,19 +91,30 @@ gem install \
 	*/pkg/ruby-debug-base-%{majorver}%{?preminorver}.gem
 %endif
 
+# Install missing files
+(
+  cd .%{geminstdir}
+  gzip -dc %{SOURCE1} | tar xf -
+  cat > test/helper.rb <<EOF
+require 'test/unit'
+require 'ruby-debug-base'
+EOF
+)
+
 # rpmlint issue
+# Oh, the following breaks test/base/load.rb, fixing it also
 chmod 0644 .%{gemdir}/cache/*.gem
 find .%{geminstdir} \( -name \*.rb -or -name Rakefile \) -not -perm -0700 | \
 	xargs sed -i -e '\@^#![ \t]*%{_bindir}@d'
 
+sed -i -e "s|'gcd.rb', 4|'gcd.rb', 3|" .%{geminstdir}/test/base/load.rb
+
 # ???
 %_fixperms .
 
 %build
 
 %install
-rm -rf %{buildroot}
-
 mkdir -p %{buildroot}%{gemdir}
 cp -a .%{gemdir}/* \
 	%{buildroot}%{gemdir}/
@@ -115,12 +126,12 @@ mv %{buildroot}%{geminstdir}/lib/ruby_debug.so \
 rm -rf %{buildroot}%{geminstdir}/ext/
 rm -f %{buildroot}%{geminstdir}/lib/ruby_debug.so
 
-%clean
-rm -rf %{buildroot}
-
 %check
 pushd .%{geminstdir}
-rake test --verbose --trace
+for f in test/base/*rb
+do
+	ruby -rubygems -Ilib:ext:test $f
+done
 popd
 
 %files
@@ -140,6 +151,9 @@ popd
 %{geminstdir}/test/
 
 %changelog
+* Wed Nov  9 2011 Mamoru Tasaka <mtasaka at fedoraproject.org> - 0.10.5-0.1.rc1
+- 0.10.5 rc1
+
 * Mon Feb 14 2011 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.10.4-2
 - F-15 mass rebuild
 
diff --git a/sources b/sources
index 3976dec..cc289f1 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-e71b19d02a490f811bd3b876664c4f0e  ruby-debug-base-0.10.4.gem
+37ad2406bae09fce99ef372696402d40  ruby-debug-base-0.10.5.rc1.gem
+b5482e3571ef384cb72b2326a1f7137a  rubygem-ruby-debug-base-0.10.5.rc1-missingfiles.tar.gz


More information about the scm-commits mailing list