[rubygem-polyglot] Rebuilt for Ruby 1.9.3.

Vít Ondruch vondruch at fedoraproject.org
Thu Jan 19 15:32:11 UTC 2012


commit 76acaec60bf9550dfee3243114914e720581300d
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Jan 19 16:32:03 2012 +0100

    Rebuilt for Ruby 1.9.3.

 rubygem-polyglot.spec |   50 +++++++++++++++++++++++++-----------------------
 1 files changed, 26 insertions(+), 24 deletions(-)
---
diff --git a/rubygem-polyglot.spec b/rubygem-polyglot.spec
index ea599ad..88ae5df 100644
--- a/rubygem-polyglot.spec
+++ b/rubygem-polyglot.spec
@@ -1,17 +1,15 @@
-%global gemname polyglot
+%global gem_name polyglot
 
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
-%global rubyabi 1.8
+%global rubyabi 1.9.1
 
 Summary:        Allow hooking of language loaders for specified extensions into require
-Name:           rubygem-%{gemname}
+Name:           rubygem-%{gem_name}
 Version:        0.3.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Group:          Development/Languages
 License:        MIT
 URL:            http://polyglot.rubyforge.org
-Source0:        http://rubygems.org/gems/%{gemname}-%{version}.gem
+Source0:        http://rubygems.org/gems/%{gem_name}-%{version}.gem
 %if 0%{?rhel} <= 5
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 %endif
@@ -19,10 +17,11 @@ Requires:       ruby(abi) = %{rubyabi}
 Requires:       ruby(rubygems)
 Requires:       ruby
 BuildRequires:  ruby(abi) = %{rubyabi}
-BuildRequires:  ruby(rubygems)
+BuildRequires: rubygems-devel
 BuildRequires:  ruby
+BuildRequires:  rubygem(minitest)
 BuildArch:      noarch
-Provides:       rubygem(%{gemname}) = %{version}
+Provides:       rubygem(%{gem_name}) = %{version}
 
 %description
 This Ruby GEM allows custom language loaders for specified file extensions
@@ -47,32 +46,35 @@ Documentation for %{name}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{gemdir}
-gem install --local --install-dir $RPM_BUILD_ROOT%{gemdir} \
+mkdir -p $RPM_BUILD_ROOT%{gem_dir}
+gem install --local --install-dir $RPM_BUILD_ROOT%{gem_dir} \
         --force --rdoc %{SOURCE0}
 
 %check
-pushd %{buildroot}%{geminstdir}
-testrb test
+pushd %{buildroot}%{gem_instdir}
+testrb -I. test
 popd
 
 %files
-%dir %{geminstdir}
-%{geminstdir}/lib
-%doc %{geminstdir}/License.txt
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%{gem_libdir}
+%doc %{gem_instdir}/License.txt
+%{gem_cache}
+%{gem_spec}
 
 %files doc
-%doc %{gemdir}/doc/%{gemname}-%{version}
-%doc %{geminstdir}/History.txt
-%doc %{geminstdir}/Manifest.txt
-%doc %{geminstdir}/README.txt
-%{geminstdir}/Rakefile
-%{geminstdir}/test
+%doc %{gem_docdir}
+%doc %{gem_instdir}/History.txt
+%doc %{gem_instdir}/Manifest.txt
+%doc %{gem_instdir}/README.txt
+%{gem_instdir}/Rakefile
+%{gem_instdir}/test
 
 
 %changelog
+* Thu Jan 19 2012 Vít Ondruch <vondruch at redhat.com> - 0.3.1-3
+- Rebuilt for Ruby 1.9.3.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list