[rubygem-mizuho] Fix native templated directory (#1072246)
tdawson
tdawson at fedoraproject.org
Wed Mar 5 21:49:33 UTC 2014
commit b99d3c963f47224c8f0867259bfafeadd84ac7dd
Author: Troy Dawson <tdawson at redhat.com>
Date: Wed Mar 5 15:49:21 2014 -0600
Fix native templated directory (#1072246)
...em-mizuho-0.9.20-fix_native_templates_dir.patch | 12 ++++++++++++
rubygem-mizuho.spec | 8 +++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/rubygem-mizuho-0.9.20-fix_native_templates_dir.patch b/rubygem-mizuho-0.9.20-fix_native_templates_dir.patch
new file mode 100644
index 0000000..0b94b99
--- /dev/null
+++ b/rubygem-mizuho-0.9.20-fix_native_templates_dir.patch
@@ -0,0 +1,12 @@
+diff -urp mizuho-0.9.20.orig/lib/mizuho.rb mizuho-0.9.20/lib/mizuho.rb
+--- mizuho-0.9.20.orig/lib/mizuho.rb 2014-03-05 15:42:40.061305747 -0600
++++ mizuho-0.9.20/lib/mizuho.rb 2014-03-05 15:43:20.579353231 -0600
+@@ -23,7 +23,7 @@ module Mizuho
+ NATIVELY_PACKAGED = true
+
+ if NATIVELY_PACKAGED
+- TEMPLATES_DIR = "/usr/share/mizuho/templates"
++ TEMPLATES_DIR = "/usr/share/gems/gems/mizuho-%s/templates" % (VERSION_STRING)
+ if File.exist?("/usr/share/mizuho/asciidoc")
+ ASCIIDOC = ["/usr/bin/python", "/usr/share/mizuho/asciidoc/asciidoc.py"]
+ else
diff --git a/rubygem-mizuho.spec b/rubygem-mizuho.spec
index ef4c36e..4969cf2 100644
--- a/rubygem-mizuho.spec
+++ b/rubygem-mizuho.spec
@@ -6,11 +6,12 @@
Summary: Mizuho documentation formatting tool
Name: rubygem-%{gem_name}
Version: 0.9.20
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: Development/Languages
License: MIT
URL: https://github.com/FooBarWidget/mizuho
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Patch1: rubygem-mizuho-0.9.20-fix_native_templates_dir.patch
Requires: asciidoc
Requires: ruby(release)
Requires: ruby(rubygems)
@@ -52,6 +53,8 @@ sed -i -e 's\ "asciidoc[^,]*,\\g' %{gem_name}.gemspec
# Fixup rpmlint failures
echo "#toc.html" >> templates/toc.html
+%patch1 -p 1
+
%build
gem build %{gem_name}.gemspec
%gem_install
@@ -98,6 +101,9 @@ popd
%changelog
+* Wed Mar 05 2014 Troy Dawson <tdawson at redhat.com> - 0.9.20-3
+- Fix native templated directory (#1072246)
+
* Wed Feb 19 2014 Troy Dawson <tdawson at redhat.com> - 0.9.20-2
- Remove bundled asciidoc
More information about the scm-commits
mailing list