[rubygem-org-ruby] Update to org-mode 0.9.7 (RHBZ #1111884)

Ken Dreyer ktdreyer at fedoraproject.org
Thu Jul 10 23:05:21 UTC 2014


commit a828118d77f8febf7a82e078ed2f32e8d3a4386a
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Thu Jul 10 17:05:13 2014 -0600

    Update to org-mode 0.9.7 (RHBZ #1111884)

 .gitignore                                |    8 ++------
 rubygem-org-ruby-generate-test-tarball.sh |    2 +-
 rubygem-org-ruby.spec                     |   23 +++++++++++++++++++----
 sources                                   |    4 ++--
 4 files changed, 24 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 51fe49c..136b2f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,2 @@
-/org-ruby-0.9.1-tests.tar.xz
-/org-ruby-0.9.1.gem
-/org-ruby-0.9.3.gem
-/org-ruby-0.9.3-tests.tar.xz
-/org-ruby-0.9.6.gem
-/org-ruby-0.9.6-tests.tar.xz
+/org-ruby-0.9.7.gem
+/org-ruby-0.9.7-tests.tar.xz
diff --git a/rubygem-org-ruby-generate-test-tarball.sh b/rubygem-org-ruby-generate-test-tarball.sh
index 6257a9d..255bcc4 100755
--- a/rubygem-org-ruby-generate-test-tarball.sh
+++ b/rubygem-org-ruby-generate-test-tarball.sh
@@ -2,7 +2,7 @@
 
 set -e
 
-VERSION=0.9.6
+VERSION=0.9.7
 
 GITHUBURL=https://github.com/wallyqs/org-ruby/archive/version-${VERSION}.zip
 
diff --git a/rubygem-org-ruby.spec b/rubygem-org-ruby.spec
index cb4dc47..0beaf6c 100644
--- a/rubygem-org-ruby.spec
+++ b/rubygem-org-ruby.spec
@@ -1,8 +1,8 @@
 %global gem_name org-ruby
 
 Name: rubygem-%{gem_name}
-Version: 0.9.6
-Release: 2%{?dist}
+Version: 0.9.7
+Release: 1%{?dist}
 Summary: Ruby routines for parsing org-mode files
 Group: Development/Languages
 License: MIT
@@ -58,6 +58,18 @@ gem build %{gem_name}.gemspec
 
 %gem_install
 
+# Conditionally correct RSpec usage for RSpec version 2.
+# Fedora 21 has RSpec 2, and Fedora 22 will have RSpec 3.
+# Get the major version number of the Rspec gem
+rspec=$(ruby -r 'rspec/core' \
+  -e "puts RSpec::Core::Version::STRING.split('.')[0]")
+if [ $rspec == 2 ]; then
+  # Switch to the older Rspec function.
+  for f in $(find spec -type f); do
+    sed -i -e "s/be_truthy/be_true/g" -e "s/be_falsy/be_false/g" $f
+  done
+fi
+
 %install
 mkdir -p %{buildroot}%{gem_dir}
 cp -pa .%{gem_dir}/* \
@@ -84,7 +96,7 @@ popd
 
 %files
 %dir %{gem_instdir}
-%doc %{gem_instdir}/README.rdoc
+%doc %{gem_instdir}/README.org
 %{_bindir}/org-ruby
 %{gem_instdir}/bin
 %{gem_libdir}
@@ -93,9 +105,12 @@ popd
 
 %files doc
 %doc %{gem_docdir}
-%doc %{gem_instdir}/History.txt
+%doc %{gem_instdir}/History.org
 
 %changelog
+* Thu Jul 10 2014 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.9.7-1
+- Update to org-mode 0.9.7 (RHBZ #1111884)
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.6-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index f9839a4..1ec93f3 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-19420968672924d19272c9bbaae95fd5  org-ruby-0.9.6.gem
-f9be5bdf61bb08f5dbb3eb803647ebfb  org-ruby-0.9.6-tests.tar.xz
+6a9975372d2eba0dc0c902b53eecafb4  org-ruby-0.9.7.gem
+5cd7695aaf67271aba053a31d27972fa  org-ruby-0.9.7-tests.tar.xz


More information about the scm-commits mailing list