graphviz-vl.spec 11 KB

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