graphviz-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. Name: graphviz
  2. Summary: Graph Visualization Tools
  3. Summary(ja): グラフ可視化ツール
  4. Version: 2.38.0
  5. Release: 4%{?_dist_release}
  6. Group: Applications/Graphics
  7. License: EPL
  8. URL: http://www.graphviz.org/
  9. Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz
  10. # Fix typo in testsuite (upstream ticket #2441).
  11. Patch0: graphviz-2.38.0-rtest-fix.patch
  12. Patch1: graphviz-2.38.0-find-fix.patch
  13. # Not upstream patch to fix build with OCaml > 4.02.0 (upstream) and Fedora.
  14. Patch2: graphviz-2.38.0-ocaml-fix-ints.patch
  15. # Backported from upstream
  16. Patch3: graphviz-2.38.0-format-string.patch
  17. # Make vimdot to work with vi (upstream ticket #2507)
  18. Patch4: graphviz-2.38.0-vimdot-vi.patch
  19. Patch5: graphviz-2.38.0-rbconfig.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildRequires: bison
  22. BuildRequires: cairo-devel
  23. BuildRequires: expat-devel
  24. BuildRequires: flex
  25. BuildRequires: fontconfig-devel
  26. BuildRequires: freetype2-devel
  27. BuildRequires: gd-devel
  28. BuildRequires: gmp-devel
  29. BuildRequires: gtk2-devel
  30. BuildRequires: guile-devel
  31. BuildRequires: libjpeg-turbo-devel
  32. BuildRequires: libpng-devel
  33. BuildRequires: libSM-devel
  34. BuildRequires: libtool-ltdl-devel >= 2.2.6a
  35. BuildRequires: libXaw-devel
  36. BuildRequires: libXext-devel
  37. BuildRequires: librsvg2-devel
  38. BuildRequires: lua-devel
  39. BuildRequires: m4
  40. BuildRequires: perl
  41. BuildRequires: python-devel
  42. BuildRequires: ruby-devel
  43. BuildRequires: swig
  44. BuildRequires: tcl-devel >= 8.4
  45. BuildRequires: tk-devel >= 8.4
  46. BuildRequires: zlib-devel
  47. Requires: urw-fonts
  48. # only for this release
  49. # BuildConflicts: graphviz-devel
  50. Vendor: Project Vine
  51. Distribution: Vine Linux
  52. Packager: daisuke
  53. %description
  54. A collection of tools and tcl packages for the manipulation and layout
  55. of graphs (as in nodes and edges, not as in barcharts).
  56. %package devel
  57. Summary: Development tools for version %{version} of %{name}
  58. Group: Development/Libraries
  59. Requires: %{name} = %{version}
  60. %description devel
  61. The %{name}-devel package contains the header files
  62. and man3 pages necessary for developing programs
  63. using version %{version} of the %{name} libraries.
  64. %package doc
  65. Summary: PDF and HTML documents for graphviz
  66. Group: Applications/Documentation
  67. %description doc
  68. Provides some additional PDF and HTML documentation for graphviz.
  69. %package guile
  70. Group: Applications/Graphics
  71. Summary: Guile extension for graphviz
  72. Requires: %{name} = %{version}-%{release}, guile
  73. %description guile
  74. Guile extension for graphviz.
  75. %package lua
  76. Group: Applications/Graphics
  77. Summary: Lua extension for graphviz
  78. Requires: %{name} = %{version}-%{release}, lua
  79. %description lua
  80. Lua extension for graphviz.
  81. %package perl
  82. Group: Applications/Graphics
  83. Summary: Perl extension for graphviz
  84. Requires: %{name} = %{version}-%{release}
  85. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  86. %description perl
  87. Perl extension for graphviz.
  88. %package python
  89. Group: Applications/Graphics
  90. Summary: Python extension for graphviz
  91. Requires: %{name} = %{version}-%{release}
  92. Requires: python
  93. %description python
  94. Python extension for graphviz.
  95. %package ruby
  96. Group: Applications/Graphics
  97. Summary: Ruby extension for graphviz
  98. Requires: %{name} = %{version}-%{release}
  99. Requires: ruby
  100. %description ruby
  101. Ruby extension for graphviz.
  102. %package tcl
  103. Group: Applications/Graphics
  104. Summary: Tcl extension & tools for graphviz
  105. Requires: tcl >= 8.4, tk >= 8.4
  106. Requires: %{name} = %{version}
  107. %description tcl
  108. Various tcl packages (extensions) for the graphviz tools.
  109. %prep
  110. %setup -q
  111. %patch0 -p1 -b .rtest-fix
  112. %patch1 -p1 -b .find-fix
  113. %patch2 -p1
  114. %patch3 -p1 -b .format-string
  115. %patch4 -p1 -b .vimdot-vi
  116. %patch5 -p1 -b .rbconfig
  117. %build
  118. autoreconf -if
  119. # using archdir instead of sitearchdir for Vine
  120. sed -i -e "s|sitearchdir|archdir|g" config/config_ruby.rb
  121. # Rewrite config_ruby.rb to work with Ruby 2.1
  122. sed -i 's|expand(|expand(RbConfig::|' config/config_ruby.rb
  123. sed -i 's|sitearchdir|vendorarchdir|' config/config_ruby.rb
  124. # get the path to search for ruby/config.h to CPPFLAGS, so that configure can find it
  125. export CPPFLAGS=-I`ruby -e "puts File.join(RbConfig::CONFIG['includedir'], RbConfig::CONFIG['sitearch'])" || echo /dev/null`
  126. # XXX ix86 only used to have -ffast-math, let's use everywhere
  127. %{expand: %%define optflags %{optflags} -ffast-math}
  128. %configure \
  129. --with-x \
  130. --disable-static \
  131. --with-mylibgd \
  132. --with-ipsepcola \
  133. --with-pangocairo \
  134. --with-gdk-pixbuf \
  135. --without-mylibgd \
  136. --without-ming \
  137. --without-qt \
  138. --disable-sharp \
  139. --enable-guile \
  140. --disable-java \
  141. --enable-lua \
  142. --disable-ocaml \
  143. --enable-perl \
  144. --disable-php \
  145. --enable-python \
  146. --disable-r \
  147. --enable-ruby \
  148. --enable-swig \
  149. --enable-tcl
  150. make %{?_smp_mflags}
  151. %install
  152. rm -rf $RPM_BUILD_ROOT __doc
  153. make DESTDIR=$RPM_BUILD_ROOT \
  154. docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
  155. pkgconfigdir=%{_libdir}/pkgconfig \
  156. install
  157. find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
  158. chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/lefty/*
  159. cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/doc __doc
  160. rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
  161. %clean
  162. rm -rf $RPM_BUILD_ROOT
  163. # run "dot -c" to generate plugin config in %{_libdir}/%{name}/config
  164. %post
  165. /sbin/ldconfig
  166. %{_bindir}/dot -c
  167. # if there is no dot after everything else is done, then remove config
  168. %postun
  169. if [ $1 -eq 0 ]; then
  170. rm -f %{_libdir}/graphviz/config || :
  171. fi
  172. /sbin/ldconfig
  173. %files
  174. %defattr(-,root,root)
  175. %doc AUTHORS COPYING ChangeLog NEWS README
  176. %{_bindir}/*
  177. %dir %{_datadir}/%{name}
  178. %{_datadir}/%{name}/gvpr
  179. %{_datadir}/%{name}/lefty
  180. %{_mandir}/man1/*
  181. %{_mandir}/man7/*
  182. %dir %{_libdir}/%{name}
  183. %{_libdir}/*.so.*
  184. %{_libdir}/%{name}/*.so.*
  185. %exclude %{_libdir}/graphviz/*/*
  186. %files devel
  187. %defattr(-,root,root)
  188. %{_includedir}/%{name}
  189. %{_libdir}/*.so
  190. %{_libdir}/%{name}/*.so
  191. %{_libdir}/pkgconfig/*.pc
  192. %{_datadir}/%{name}/graphs
  193. %{_mandir}/man3/*.3.gz
  194. %files doc
  195. %defattr(-,root,root,-)
  196. %doc __doc/*
  197. %files guile
  198. %defattr(-,root,root,-)
  199. %{_libdir}/graphviz/guile/
  200. %{_mandir}/man3/gv.3guile*
  201. %files lua
  202. %defattr(-,root,root,-)
  203. %{_libdir}/graphviz/lua/
  204. %{_libdir}/lua*/*
  205. %{_mandir}/man3/gv.3lua*
  206. %files perl
  207. %defattr(-,root,root,-)
  208. %{_libdir}/graphviz/perl/
  209. %{perl_vendorarch}/*
  210. %{_mandir}/man3/gv.3perl*
  211. %files python
  212. %defattr(-,root,root,-)
  213. %{_libdir}/graphviz/python/
  214. %{_libdir}/python*/*
  215. %{_mandir}/man3/gv.3python*
  216. %files ruby
  217. %defattr(-,root,root,-)
  218. %{_libdir}/graphviz/ruby/
  219. %{_libdir}/*ruby*/*
  220. %{_mandir}/man3/gv.3ruby*
  221. %files tcl
  222. %defattr(-,root,root)
  223. %{_libdir}/%{name}/tcl/*
  224. %{_libdir}/tcl*/*
  225. %{_datadir}/%{name}/demo
  226. # hack to include gv.3tcl only if available
  227. # always includes tcldot.3tcl, gdtclft.3tcl
  228. %{_mandir}/man3/*.3tcl*
  229. %{_mandir}/man3/tkspline.3tk*
  230. %changelog
  231. * Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.38.0-4
  232. - rebuild with gcc-5.4.0
  233. * Sat Sep 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.38.0-3
  234. - rebuild with ruby-2.2.3
  235. * Sun Mar 15 2015 Ryoichi INAGAKI <ryo1@toki.waaseda.jp> 2.38.0-2
  236. - added Patch0-5 from Fedora
  237. - rebuilt with guile 2.0.11
  238. - changed BR: tcl-devel, tk-devel instead of tcl, tk
  239. - added lua subpackage
  240. * Sat Jun 28 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.38.0-1
  241. - update to 2.38.0
  242. * Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> 2.36.0-1
  243. - new upstream release
  244. * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.30.1-2
  245. - rebuilt with gd-2.1.0.
  246. * Sun Mar 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  247. - new upstream release
  248. * Mon Jan 7 2013 IWAI, Masaharu <iwai@alib.jp> 2.28.0-3
  249. - build with Tcl/Tk 8.5.7-1
  250. - stop running autoreconf
  251. - add Vendor and Distribution tags
  252. * Sun Nov 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.0-2
  253. - re-enable ruby binding, which is accidentally disabled in 2.28.0-1
  254. - rewrite config_ruby.rb to build with ruby-1.9.3
  255. - add search path for ruby/config.h to CPPFLAGS for configure
  256. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.0-1
  257. - new upstream release
  258. - remove Patch10 (graphviz-2.26.3_dont_regard_tiger_as_the_only_ppc.patch)
  259. - add BuildRequires: librsvg2-devel
  260. * Sun Oct 10 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.26.3-2
  261. - add Patch10 to avoid build failure on ppc
  262. * Sat Oct 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.26.3-1
  263. - new upstream release
  264. - built with rpm-4.8.1
  265. - split doc, guile, perl, python, ruby subpackage
  266. * Thu Apr 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.3-3
  267. - rebuild with libtool-2.2.6a
  268. * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 2.20.3-1
  269. - new upstream release
  270. * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.2-2
  271. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  272. * Wed Jul 16 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.20.2-1
  273. - new upstream release
  274. * Wed Feb 20 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.16.1-0vl1
  275. - new upstream release
  276. - build with expat-2.0.1
  277. - add man7
  278. * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 2.12-0vl2
  279. - rebuild with tcl/tk-8.4.16
  280. * Sun May 13 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.12-0vl1
  281. - new upstream release
  282. - add BuildPrereq: swig
  283. - delete BuildPrereq: gd-progs gd-devel
  284. - add --with-mylibgd and --disable-FEATURE to configure option
  285. - update %%files
  286. * Sun Jul 30 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.6-0vl2
  287. - added BuildPrereq: ruby-devel
  288. * Tue Oct 11 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6-0vl1
  289. - new upstream release
  290. - add BuildPrereq: libtool-ltdl-devel
  291. - move pkgconfig files to %%{_libdir}/pkgconfig
  292. - add --disable-rpath --disable-static to configure option
  293. - add %%post to every package
  294. * Mon Jan 24 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2-0vl1
  295. - new upstream release
  296. - BuildPrereq: tcl >= 8.4, tk >= 8.4
  297. - add BuildPrereq: gd-progs gd-devel flex bison pkgconfig
  298. - update %%files
  299. - remove lines about Vine2.6
  300. - change License to CPL
  301. * Sun May 16 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl1
  302. - source upgrade
  303. - remove patch0 and commented lines
  304. * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl2
  305. - build for VineSeed
  306. * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl1
  307. - source upgrade
  308. - change spec to build both VineSeed and Vine2.5/2.6
  309. - add BuildPrereq: expat-devel and Requires: libexpat
  310. - add patch0 to build against freetype2-2.1.7
  311. - stop using autogen.sh script
  312. - add BuildPrereq: tcl >= 8.3 tk >= 8.3 (VineSeed)
  313. - add graphviz-tcl package (VineSeed)
  314. * Thu Aug 7 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.9-0vl2
  315. - rebuild for new Vine
  316. * Wed Mar 05 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 1.9-0vl1
  317. - import from offical site (src.rpm)