diff --git a/lib/epubmaker/epubv3.rb b/lib/epubmaker/epubv3.rb
index <HASH>..<HASH> 100644
--- a/lib/epubmaker/epubv3.rb
+++ b/lib/epubmaker/epubv3.rb
@@ -155,7 +155,11 @@ EOT
       end
 
       s = ""
-      s << %Q[  <spine>\n]
+      if @producer.params["direction"]
+        s << %Q[  <spine page-progression-direction="#{@producer.params["direction"]}">\n]
+      else
+        s << %Q[  <spine>\n]
+      end
       s << %Q[    <itemref idref="#{@producer.params["bookname"]}" linear="#{cover_linear}"/>\n]
       s << %Q[    <itemref idref="#{@producer.params["bookname"]}-toc.#{@producer.params["htmlext"]}" />\n] if @producer.params["toc"]
EPUBMaker: support new param "direction" in config.yml to define page-progression-direction in EPUB3