[rubygem-gio2] rebuild against f17-ruby

Mamoru Tasaka mtasaka at fedoraproject.org
Mon Jan 30 15:03:14 UTC 2012


commit 23f1beef9f456383ff82ce258580c41eba30aa3b
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Tue Jan 31 00:03:08 2012 +0900

    rebuild against f17-ruby

 rubygem-gio2.spec |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/rubygem-gio2.spec b/rubygem-gio2.spec
index cc66d82..84fd746 100644
--- a/rubygem-gio2.spec
+++ b/rubygem-gio2.spec
@@ -1,4 +1,4 @@
-%if 0%{?fedora} >= 18
+%if 0%{?fedora} >= 17
 %global	rubyabi	1.9.1
 %global	header_dir	%{ruby_vendorarchdir}
 %global	ruby19	1
@@ -11,21 +11,15 @@
 %global	ruby19	0
 %endif
 
-%global	gem_name	gdk_pixbuf2
-
 %global	glibminver	1.1.0
 %global	obsoleteevr	0.90.7-1.999
-%global	ruby_sitelib	%(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%global	ruby_sitearch	%(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
 
-%global	gem_dir		%(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
 %global	gem_name	gio2
-%global	gem_instdir	%{gem_dir}/gems/%{gem_name}-%{version}
 
 Summary:	Ruby binding of gio-2.0.x
 Name:		rubygem-%{gem_name}
 Version:	1.1.2
-Release:	1%{?dist}
+Release:	2%{?dist}
 Group:		Development/Languages
 # from README
 License:	LGPLv2
@@ -38,6 +32,7 @@ BuildRequires:	rubygem-glib2-devel >= %{glibminver}
 BuildRequires:	ruby-devel
 # For Patch0:
 BuildRequires:	rubygem(rake-compiler)
+BuildRequires:	rubygem(test-unit)
 Requires:	ruby(abi) = %{rubyabi}
 Requires:	rubygems
 Requires:	rubygem(glib2) >= %{glibminver}
@@ -224,8 +219,12 @@ ruby -rubygems -Ilib test/load-test.rb
 
 %{gem_instdir}/lib/%{gem_name}.rb
 %{gem_instdir}/lib/%{gem_name}/deprecated.rb
+%if 0%{ruby19}
+%{gem_extdir}/lib/%{gem_name}.so
+%else
 # %%ruby_sitearch/ruby-gnome2 is owned by rubygem-glib2
 %{ruby_sitearch}/ruby-gnome2/%{gem_name}.so
+%endif
 
 %{gem_cache}
 %{gem_spec}
@@ -248,7 +247,7 @@ ruby -rubygems -Ilib test/load-test.rb
 %{gem_instdir}/test/
 
 %changelog
-* Mon Jan 30 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 1.1.2-1
+* Mon Jan 30 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 1.1.2-2
 - 1.1.2
 
 * Sun Jan 15 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 1.1.1-1


More information about the scm-commits mailing list