[rubygem-ruby-ole] Update to ruby-ole 1.2.11.7.

Vít Ondruch vondruch at fedoraproject.org
Tue Jul 15 08:04:56 UTC 2014


commit fbd89506b76be1d78ca88679d029edd3415f88ea
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Jul 15 10:05:13 2014 +0200

    Update to ruby-ole 1.2.11.7.

 .gitignore            |    1 +
 rubygem-ruby-ole.spec |   48 +++++++++++++++++++++++++++++-------------------
 sources               |    2 +-
 3 files changed, 31 insertions(+), 20 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 74044b8..940b1bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /ruby-ole-1.2.11.1.gem
 /ruby-ole-1.2.11.2.gem
+/ruby-ole-1.2.11.7.gem
diff --git a/rubygem-ruby-ole.spec b/rubygem-ruby-ole.spec
index 4f191fd..107badd 100644
--- a/rubygem-ruby-ole.spec
+++ b/rubygem-ruby-ole.spec
@@ -2,19 +2,15 @@
 
 Summary: Ruby OLE library
 Name: rubygem-%{gem_name}
-Version: 1.2.11.2
-Release: 7%{?dist}
+Version: 1.2.11.7
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://code.google.com/p/ruby-ole
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: ruby(release)
-Requires: ruby(rubygems)
 BuildRequires: rubygems-devel
 BuildRequires: rubygem(minitest)
 BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 A library for easy read/write access to OLE compound documents for Ruby.
@@ -38,24 +34,37 @@ Documentation for %{name}.
 rm -rf %{buildroot}
 mkdir -p %{buildroot}%{gem_dir}
 mkdir -p %{buildroot}/%{_bindir}
-mv .%{_bindir}/* %{buildroot}/%{_bindir}
-mv .%{gem_dir}/* %{buildroot}%{gem_dir}
+cp -a .%{_bindir}/* %{buildroot}/%{_bindir}
+cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
 
 # rpmlint cleanup
-chmod 644 %{buildroot}%{gem_libdir}/ole/storage/base.rb
 chmod 755 %{buildroot}%{gem_instdir}/test/test_meta_data.rb
 
 
-%clean
-rm -rf %{buildroot}
-
 %check
-pushd %{buildroot}%{gem_instdir}
-testrb test
+pushd .%{gem_instdir}
+# Run the tests using minitest 5.
+ruby -rminitest/autorun - << \EOF
+  module Kernel
+    alias orig_require require
+    remove_method :require
+
+    def require path
+      orig_require path unless path == 'test/unit'
+    end
+  end
+
+  module Minitest::Assertions
+    alias :assert_raise :assert_raises
+  end
+
+  Test = Minitest
+
+  Dir.glob "./test/**/test_*.rb", &method(:require)
+EOF
 popd
 
 %files
-%defattr(-, root, root, -)
 %{_bindir}/oletool
 %dir %{gem_instdir}
 %doc %{gem_instdir}/README
@@ -63,20 +72,21 @@ popd
 %doc %{gem_instdir}/ChangeLog
 %{gem_libdir}
 %{gem_instdir}/bin
-%{gem_instdir}/data
-%{gem_cache}
+%exclude %{gem_cache}
 %{gem_spec}
 
 
 %files doc
-%defattr(-, root, root, -)
 %{gem_instdir}/test
 %{gem_instdir}/Rakefile
-%{gem_docdir}
+%doc %{gem_docdir}
 %{gem_instdir}/*.gemspec
 
 
 %changelog
+* Tue Jul 15 2014 Vít Ondruch <vondruch at redhat.com> - 1.2.11.7-1
+Update to ruby-ole 1.2.11.7.
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.11.2-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 1f39bd3..a2e4451 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-257bf30f2999d9cd1fc6a75369e615f1  ruby-ole-1.2.11.2.gem
+a605557d07c4437bce24cd0839d0bf94  ruby-ole-1.2.11.7.gem


More information about the scm-commits mailing list