Browse Source

graphviz:
- re-enable ruby binding, which is accidentally disabled in 2.28.0-1
- rewrite config_ruby.rb to build with ruby-1.9.3
- add search path for ruby/config.h to CPPFLAGS for configure

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7120 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 11 years ago
parent
commit
f1c3847c5f
1 changed files with 13 additions and 2 deletions
  1. 13 2
      g/graphviz/graphviz-vl.spec

+ 13 - 2
g/graphviz/graphviz-vl.spec

@@ -1,7 +1,7 @@
 Name:           graphviz
 Summary:        Graph Visualization Tools
 Version:        2.28.0
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 Group:          Applications/Graphics
 License:        CPL
 URL:            http://www.graphviz.org/
@@ -114,6 +114,11 @@ sed -i -e "s|sitearchdir|archdir|g" config/config_ruby.rb
 autoreconf -f -i
 
 %build
+# Rewrite config_ruby.rb to work with Ruby 1.9
+sed -i 's|expand(|expand(Config::|' config/config_ruby.rb
+sed -i 's|sitearchdir|vendorarchdir|' config/config_ruby.rb
+export CPPFLAGS=-I`ruby -e "puts File.join(RbConfig::CONFIG['includedir'], RbConfig::CONFIG['sitearch'])" || echo /dev/null`
+
 # XXX ix86 only used to have -ffast-math, let's use everywhere
 %{expand: %%define optflags %{optflags} -ffast-math}
 
@@ -215,7 +220,8 @@ fi
 %files ruby
 %defattr(-,root,root,-)
 %{_libdir}/graphviz/ruby/
-#%{rarchdir}/*
+%{_libdir}/*ruby*/*
+%{_mandir}/man3/gv.3ruby*
 
 %files tcl
 %defattr(-,root,root)
@@ -229,6 +235,11 @@ fi
 
 
 %changelog
+* Sun Nov 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.0-2
+- re-enable ruby binding, which is accidentally disabled in 2.28.0-1
+  - rewrite config_ruby.rb to build with ruby-1.9.3
+  - add search path for ruby/config.h to CPPFLAGS for configure
+
 * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.0-1
 - new upstream release
 - remove Patch10 (graphviz-2.26.3_dont_regard_tiger_as_the_only_ppc.patch)