graphviz-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. Name: graphviz
  2. Summary: Graph Visualization Tools
  3. Version: 2.28.0
  4. Release: 1%{?_dist_release}
  5. Group: Applications/Graphics
  6. License: CPL
  7. URL: http://www.graphviz.org/
  8. Source: http://www.graphviz.org/pub/%{name}/stable/SOURCES/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: bison
  11. BuildRequires: cairo-devel
  12. BuildRequires: expat-devel
  13. BuildRequires: flex
  14. BuildRequires: fontconfig-devel
  15. BuildRequires: freetype2-devel
  16. BuildRequires: gd-devel
  17. BuildRequires: gtk2-devel
  18. BuildRequires: guile-devel
  19. BuildRequires: libjpeg-turbo-devel
  20. BuildRequires: libpng-devel
  21. BuildRequires: libSM-devel
  22. BuildRequires: libtool-ltdl-devel >= 2.2.6a
  23. BuildRequires: libXaw-devel
  24. BuildRequires: libXext-devel
  25. BuildRequires: librsvg2-devel
  26. BuildRequires: m4
  27. BuildRequires: perl
  28. BuildRequires: python-devel
  29. BuildRequires: ruby-devel
  30. BuildRequires: swig
  31. BuildRequires: tcl >= 8.4
  32. BuildRequires: tk >= 8.4
  33. BuildRequires: zlib-devel
  34. Requires: urw-fonts
  35. # only for this release
  36. BuildConflicts: graphviz-devel
  37. %description
  38. A collection of tools and tcl packages for the manipulation and layout
  39. of graphs (as in nodes and edges, not as in barcharts).
  40. %package devel
  41. Group: Development/Libraries
  42. Summary: Development tools for version %{version} of %{name}
  43. Requires: %{name} = %{version}
  44. %description devel
  45. The %{name}-devel package contains the header files
  46. and man3 pages necessary for developing programs
  47. using version %{version} of the %{name} libraries.
  48. %package doc
  49. Summary: PDF and HTML documents for graphviz
  50. Group: Applications/Documentation
  51. %description doc
  52. Provides some additional PDF and HTML documentation for graphviz.
  53. %package guile
  54. Group: Applications/Graphics
  55. Summary: Guile extension for graphviz
  56. Requires: %{name} = %{version}-%{release}, guile
  57. %description guile
  58. Guile extension for graphviz.
  59. %package perl
  60. Group: Applications/Graphics
  61. Summary: Perl extension for graphviz
  62. Requires: %{name} = %{version}-%{release}
  63. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  64. %description perl
  65. Perl extension for graphviz.
  66. %package python
  67. Group: Applications/Graphics
  68. Summary: Python extension for graphviz
  69. Requires: %{name} = %{version}-%{release}
  70. Requires: python
  71. %description python
  72. Python extension for graphviz.
  73. %package ruby
  74. Group: Applications/Multimedia
  75. Summary: Ruby extension for graphviz
  76. Requires: %{name} = %{version}-%{release}
  77. Requires: ruby
  78. %description ruby
  79. Ruby extension for graphviz.
  80. %package tcl
  81. Group: Applications/Graphics
  82. Summary: Tcl extension & tools for graphviz
  83. Requires: tcl >= 8.4, tk >= 8.4
  84. Requires: %{name} = %{version}
  85. %description tcl
  86. Various tcl packages (extensions) for the graphviz tools.
  87. %prep
  88. %setup -q
  89. # using archdir instead of sitearchdir for Vine
  90. sed -i -e "s|sitearchdir|archdir|g" config/config_ruby.rb
  91. autoreconf -f -i
  92. %build
  93. # XXX ix86 only used to have -ffast-math, let's use everywhere
  94. %{expand: %%define optflags %{optflags} -ffast-math}
  95. %configure \
  96. --with-x \
  97. --disable-static \
  98. --with-mylibgd \
  99. --with-ipsepcola \
  100. --with-pangocairo \
  101. --with-gdk-pixbuf \
  102. --without-mylibgd \
  103. --without-ming \
  104. --disable-sharp \
  105. --enable-guile \
  106. --enable-io \
  107. --disable-java \
  108. --disable-lua \
  109. --disable-ocaml \
  110. --enable-perl \
  111. --disable-php \
  112. --enable-python \
  113. --disable-r \
  114. --enable-ruby \
  115. --enable-tcl
  116. make %{?_smp_mflags}
  117. %install
  118. rm -rf $RPM_BUILD_ROOT __doc
  119. make DESTDIR=$RPM_BUILD_ROOT \
  120. docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
  121. pkgconfigdir=%{_libdir}/pkgconfig \
  122. install
  123. find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
  124. chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/lefty/*
  125. cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/doc __doc
  126. rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
  127. %clean
  128. rm -rf $RPM_BUILD_ROOT
  129. # run "dot -c" to generate plugin config in %{_libdir}/%{name}/config
  130. %post
  131. /sbin/ldconfig
  132. %{_bindir}/dot -c
  133. # if there is no dot after everything else is done, then remove config
  134. %postun
  135. if [ $1 -eq 0 ]; then
  136. rm -f %{_libdir}/graphviz/config || :
  137. fi
  138. /sbin/ldconfig
  139. %files
  140. %defattr(-,root,root)
  141. %doc AUTHORS COPYING ChangeLog NEWS README
  142. %{_bindir}/*
  143. %dir %{_datadir}/%{name}
  144. %{_datadir}/%{name}/lefty
  145. %{_mandir}/man1/*
  146. %{_mandir}/man7/*
  147. %dir %{_libdir}/%{name}
  148. %{_libdir}/*.so.*
  149. %{_libdir}/%{name}/*.so.*
  150. %exclude %{_libdir}/graphviz/*/*
  151. %files devel
  152. %defattr(-,root,root)
  153. %{_includedir}/%{name}
  154. %{_libdir}/*.so
  155. %{_libdir}/%{name}/*.so
  156. %{_libdir}/pkgconfig/*.pc
  157. %{_datadir}/%{name}/graphs
  158. %{_mandir}/man3/*.3.gz
  159. %files doc
  160. %defattr(-,root,root,-)
  161. %doc __doc/*
  162. %files guile
  163. %defattr(-,root,root,-)
  164. %{_libdir}/graphviz/guile/
  165. %{_mandir}/man3/gv.3guile*
  166. %files perl
  167. %defattr(-,root,root,-)
  168. %{_libdir}/graphviz/perl/
  169. %{perl_vendorarch}/*
  170. %{_mandir}/man3/gv.3perl*
  171. %files python
  172. %defattr(-,root,root,-)
  173. %{_libdir}/graphviz/python/
  174. %{_libdir}/python*/*
  175. %{_mandir}/man3/gv.3python*
  176. %files ruby
  177. %defattr(-,root,root,-)
  178. %{_libdir}/graphviz/ruby/
  179. #%{rarchdir}/*
  180. %files tcl
  181. %defattr(-,root,root)
  182. %{_libdir}/%{name}/tcl/*
  183. %{_libdir}/tcl*/*
  184. %{_datadir}/%{name}/demo
  185. # hack to include gv.3tcl only if available
  186. # always includes tcldot.3tcl, gdtclft.3tcl
  187. %{_mandir}/man3/*.3tcl*
  188. %{_mandir}/man3/tkspline.3tk*
  189. %changelog
  190. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.0-1
  191. - new upstream release
  192. - remove Patch10 (graphviz-2.26.3_dont_regard_tiger_as_the_only_ppc.patch)
  193. - add BuildRequires: librsvg2-devel
  194. * Sun Oct 10 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.26.3-2
  195. - add Patch10 to avoid build failure on ppc
  196. * Sat Oct 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.26.3-1
  197. - new upstream release
  198. - built with rpm-4.8.1
  199. - split doc, guile, perl, python, ruby subpackage
  200. * Thu Apr 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.3-3
  201. - rebuild with libtool-2.2.6a
  202. * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 2.20.3-1
  203. - new upstream release
  204. * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.2-2
  205. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  206. * Wed Jul 16 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.20.2-1
  207. - new upstream release
  208. * Wed Feb 20 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.16.1-0vl1
  209. - new upstream release
  210. - build with expat-2.0.1
  211. - add man7
  212. * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 2.12-0vl2
  213. - rebuild with tcl/tk-8.4.16
  214. * Sun May 13 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.12-0vl1
  215. - new upstream release
  216. - add BuildPrereq: swig
  217. - delete BuildPrereq: gd-progs gd-devel
  218. - add --with-mylibgd and --disable-FEATURE to configure option
  219. - update %%files
  220. * Sun Jul 30 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.6-0vl2
  221. - added BuildPrereq: ruby-devel
  222. * Tue Oct 11 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6-0vl1
  223. - new upstream release
  224. - add BuildPrereq: libtool-ltdl-devel
  225. - move pkgconfig files to %%{_libdir}/pkgconfig
  226. - add --disable-rpath --disable-static to configure option
  227. - add %%post to every package
  228. * Mon Jan 24 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2-0vl1
  229. - new upstream release
  230. - BuildPrereq: tcl >= 8.4, tk >= 8.4
  231. - add BuildPrereq: gd-progs gd-devel flex bison pkgconfig
  232. - update %%files
  233. - remove lines about Vine2.6
  234. - change License to CPL
  235. * Sun May 16 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl1
  236. - source upgrade
  237. - remove patch0 and commented lines
  238. * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl2
  239. - build for VineSeed
  240. * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl1
  241. - source upgrade
  242. - change spec to build both VineSeed and Vine2.5/2.6
  243. - add BuildPrereq: expat-devel and Requires: libexpat
  244. - add patch0 to build against freetype2-2.1.7
  245. - stop using autogen.sh script
  246. - add BuildPrereq: tcl >= 8.3 tk >= 8.3 (VineSeed)
  247. - add graphviz-tcl package (VineSeed)
  248. * Thu Aug 7 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.9-0vl2
  249. - rebuild for new Vine
  250. * Wed Mar 05 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 1.9-0vl1
  251. - import from offical site (src.rpm)