graphviz-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. %define _unpackaged_files_terminate_build 1
  2. Summary: Graph Visualization Tools
  3. Summary(ja): グラフ可視化ツール
  4. Name: graphviz
  5. Version: 2.47.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: https://www.graphviz.org/
  13. Source0: https://gitlab.com/graphviz/graphviz/-/archive/%{version}/%{name}-%{version}.tar.bz2
  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. %debug_package
  113. %prep
  114. %setup -q -n graphviz-%{version}
  115. # Attempt to fix rpmlint warnings about executable sources
  116. find -type f -regex '.*\.\(c\|h\)$' -exec chmod a-x {} ';'
  117. %build
  118. ./autogen.sh
  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. --enable-python3 \
  147. --disable-r \
  148. --enable-ruby \
  149. --enable-swig \
  150. --enable-tcl \
  151. --with-visio
  152. make %{?_smp_mflags}
  153. %install
  154. rm -rf $RPM_BUILD_ROOT __doc
  155. make DESTDIR=$RPM_BUILD_ROOT \
  156. docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
  157. pkgconfigdir=%{_libdir}/pkgconfig \
  158. install
  159. find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
  160. chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/lefty/*
  161. cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/doc __doc
  162. rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
  163. rm -rf %{buildroot}%{_libdir}/graphviz/python2
  164. %clean
  165. rm -rf $RPM_BUILD_ROOT
  166. # run "dot -c" to generate plugin config in %{_libdir}/%{name}/config
  167. %post
  168. /sbin/ldconfig
  169. %{_bindir}/dot -c
  170. # if there is no dot after everything else is done, then remove config
  171. %postun
  172. if [ $1 -eq 0 ]; then
  173. rm -f %{_libdir}/graphviz/config || :
  174. fi
  175. /sbin/ldconfig
  176. %files
  177. %defattr(-,root,root)
  178. %license COPYING
  179. %doc AUTHORS ChangeLog NEWS README
  180. %{_bindir}/*
  181. %dir %{_datadir}/%{name}
  182. %{_datadir}/%{name}/gvpr
  183. %{_datadir}/%{name}/lefty
  184. %{_mandir}/man1/*
  185. %{_mandir}/man7/*
  186. %dir %{_libdir}/%{name}
  187. %{_libdir}/*.so.*
  188. %{_libdir}/%{name}/*.so.*
  189. %exclude %{_libdir}/graphviz/*/*
  190. %files devel
  191. %defattr(-,root,root)
  192. %{_includedir}/%{name}
  193. %{_libdir}/*.so
  194. %{_libdir}/%{name}/*.so
  195. %{_libdir}/pkgconfig/*.pc
  196. %{_datadir}/%{name}/graphs
  197. %{_mandir}/man3/*.3.gz
  198. %files doc
  199. %defattr(-,root,root,-)
  200. %doc __doc/*
  201. %files guile
  202. %defattr(-,root,root,-)
  203. %{_libdir}/graphviz/guile/
  204. %{_mandir}/man3/gv.3guile*
  205. %files lua
  206. %defattr(-,root,root,-)
  207. %{_libdir}/graphviz/lua/
  208. %{_libdir}/lua*/*
  209. %{_mandir}/man3/gv.3lua*
  210. %files perl
  211. %defattr(-,root,root,-)
  212. %{_libdir}/graphviz/perl/
  213. %{perl_vendorarch}/*
  214. %{_mandir}/man3/gv.3perl*
  215. %files python
  216. %defattr(-,root,root,-)
  217. %{_libdir}/graphviz/python/
  218. %{_libdir}/python2*/*
  219. %files python3
  220. %defattr(-,root,root,-)
  221. %{_libdir}/graphviz/python3/
  222. %{_libdir}/python3*/*
  223. %{_mandir}/man3/gv.3python*
  224. %files ruby
  225. %defattr(-,root,root,-)
  226. %{_libdir}/graphviz/ruby/
  227. %{_libdir}/*ruby*/*
  228. %{_mandir}/man3/gv.3ruby*
  229. %files tcl
  230. %defattr(-,root,root)
  231. %{_libdir}/%{name}/tcl/*
  232. %{_libdir}/tcl*/*
  233. %{_datadir}/%{name}/demo
  234. # hack to include gv.3tcl only if available
  235. # always includes tcldot.3tcl, gdtclft.3tcl
  236. %{_mandir}/man3/*.3tcl*
  237. %changelog
  238. * Wed May 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.47.1-1
  239. - new upstream release.
  240. * Mon Aug 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.44.1-1
  241. - new upstream release.
  242. * Mon Mar 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.42.2-1
  243. - built with ruby-2.6.5.
  244. - added python3 support.
  245. - dropped Patch0.
  246. - imported Patch0-2 from rawhide.
  247. * Tue Sep 10 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.40.1-2
  248. - rebuilt with guile-2.2.
  249. * Sat Jan 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.40.1-1
  250. - updated to 2.40.1.
  251. - dropped all patches.
  252. - imported Patch0 from rawhide.
  253. * Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.38.0-4
  254. - rebuild with gcc-5.4.0
  255. * Sat Sep 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.38.0-3
  256. - rebuild with ruby-2.2.3
  257. * Sun Mar 15 2015 Ryoichi INAGAKI <ryo1@toki.waaseda.jp> 2.38.0-2
  258. - added Patch0-5 from Fedora
  259. - rebuilt with guile 2.0.11
  260. - changed BR: tcl-devel, tk-devel instead of tcl, tk
  261. - added lua subpackage
  262. * Sat Jun 28 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.38.0-1
  263. - update to 2.38.0
  264. * Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> 2.36.0-1
  265. - new upstream release
  266. * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.30.1-2
  267. - rebuilt with gd-2.1.0.
  268. * Sun Mar 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  269. - new upstream release
  270. * Mon Jan 7 2013 IWAI, Masaharu <iwai@alib.jp> 2.28.0-3
  271. - build with Tcl/Tk 8.5.7-1
  272. - stop running autoreconf
  273. - add Vendor and Distribution tags
  274. * Sun Nov 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.0-2
  275. - re-enable ruby binding, which is accidentally disabled in 2.28.0-1
  276. - rewrite config_ruby.rb to build with ruby-1.9.3
  277. - add search path for ruby/config.h to CPPFLAGS for configure
  278. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.0-1
  279. - new upstream release
  280. - remove Patch10 (graphviz-2.26.3_dont_regard_tiger_as_the_only_ppc.patch)
  281. - add BuildRequires: librsvg2-devel
  282. * Sun Oct 10 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.26.3-2
  283. - add Patch10 to avoid build failure on ppc
  284. * Sat Oct 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.26.3-1
  285. - new upstream release
  286. - built with rpm-4.8.1
  287. - split doc, guile, perl, python, ruby subpackage
  288. * Thu Apr 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.3-3
  289. - rebuild with libtool-2.2.6a
  290. * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 2.20.3-1
  291. - new upstream release
  292. * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.2-2
  293. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  294. * Wed Jul 16 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.20.2-1
  295. - new upstream release
  296. * Wed Feb 20 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.16.1-0vl1
  297. - new upstream release
  298. - build with expat-2.0.1
  299. - add man7
  300. * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 2.12-0vl2
  301. - rebuild with tcl/tk-8.4.16
  302. * Sun May 13 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.12-0vl1
  303. - new upstream release
  304. - add BuildPrereq: swig
  305. - delete BuildPrereq: gd-progs gd-devel
  306. - add --with-mylibgd and --disable-FEATURE to configure option
  307. - update %%files
  308. * Sun Jul 30 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.6-0vl2
  309. - added BuildPrereq: ruby-devel
  310. * Tue Oct 11 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6-0vl1
  311. - new upstream release
  312. - add BuildPrereq: libtool-ltdl-devel
  313. - move pkgconfig files to %%{_libdir}/pkgconfig
  314. - add --disable-rpath --disable-static to configure option
  315. - add %%post to every package
  316. * Mon Jan 24 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2-0vl1
  317. - new upstream release
  318. - BuildPrereq: tcl >= 8.4, tk >= 8.4
  319. - add BuildPrereq: gd-progs gd-devel flex bison pkgconfig
  320. - update %%files
  321. - remove lines about Vine2.6
  322. - change License to CPL
  323. * Sun May 16 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl1
  324. - source upgrade
  325. - remove patch0 and commented lines
  326. * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl2
  327. - build for VineSeed
  328. * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl1
  329. - source upgrade
  330. - change spec to build both VineSeed and Vine2.5/2.6
  331. - add BuildPrereq: expat-devel and Requires: libexpat
  332. - add patch0 to build against freetype2-2.1.7
  333. - stop using autogen.sh script
  334. - add BuildPrereq: tcl >= 8.3 tk >= 8.3 (VineSeed)
  335. - add graphviz-tcl package (VineSeed)
  336. * Thu Aug 7 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.9-0vl2
  337. - rebuild for new Vine
  338. * Wed Mar 05 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 1.9-0vl1
  339. - import from offical site (src.rpm)