123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958 |
- # redhat/graphviz.spec.fedora. Generated from graphviz.spec.fedora.in by configure.
- #-- Global graphviz rpm and src.rpm tags-------------------------------------
- Name: graphviz
- Summary: Graph Visualization Tools
- Version: 12.2.1
- Release: 1%{?dist}
- Group: Applications/Multimedia
- License: EPL
- URL: https://graphviz.org/
- Source0: https://gitlab.com/graphviz/graphviz/-/archive/12.2.1/graphviz-12.2.1.tar.gz
- # Necessary conditionals
- %ifarch %{mono_arches}
- %global SHARP 1
- %else
- %global SHARP 0
- %endif
- # Assuming Fedora
- %global LICENSE 1
- %global ANN 1
- %global ARRRR 1
- %global DEEEE 0
- %global DEVIL 1
- %global GOLANG 1
- %global GTS 1
- %global GTK 1
- %global JAVASCRIPT 0
- %global LASI 1
- %global PHP 1
- %global WEBP 1
- # Overrides for RHEL
- %if 0%{?rhel}
- %global LICENSE 0
- %global ARRRR 0
- %global DEEEE 0
- %global DEVIL 0
- %global GOLANG 0
- %global GTS 0
- %global GTK 0
- %global JAVASCRIPT 0
- %global LASI 0
- %global SHARP 0
- %global WEBP 0
- %endif
- # Overrides for Rocky
- %if 0%{?rhel}
- %global ANN 0
- %endif
- # Plugins version
- %global pluginsver 6
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
- BuildRequires: java-devel
- BuildRequires: zlib-devel expat-devel bison m4 flex swig gcc-c++
- BuildRequires: libX11-devel gtk2-devel freeglut-devel
- BuildRequires: freetype-devel fontconfig-devel cairo-devel pango-devel
- BuildRequires: gmp-devel gd gd-devel librsvg2-devel
- BuildRequires: ghostscript ghostscript-devel poppler-glib-devel libtool-ltdl libtool-ltdl-devel
- BuildRequires: qt5-qtbase-devel
- BuildRequires: ruby ruby-devel lua-devel
- BuildRequires: perl-devel perl-libs perl-ExtUtils-Embed tcl tcl-devel tk tk-devel
- BuildRequires: python3 python3-devel
- %if %{ANN}
- BuildRequires: ann-devel
- %endif
- %if %{ARRRR}
- BuildRequires: R-devel
- %endif
- %if %{DEEEE}
- BuildRequires: ldc-druntime-devel
- %endif
- %if %{DEVIL}
- BuildRequires: DevIL-devel
- %endif
- %if %{GOLANG}
- BuildRequires: golang gcc-go swig >= 3.0.2
- %endif
- %if %{GTK}
- BuildRequires: libglade2-devel gtkglext-devel
- %endif
- %if %{GTS}
- BuildRequires: gts-devel
- %endif
- %if 0%{?fedora} > 0 || 0%{?rhel} >= 9
- BuildRequires: guile30-devel
- %else
- BuildRequires: guile-devel
- %endif
- %if %{LASI}
- BuildRequires: lasi-devel
- %endif
- %if %{PHP}
- BuildRequires: php-devel
- %endif
- %if %{SHARP}
- BuildRequires: mono-core
- %endif
- %if %{WEBP}
- BuildRequires: libwebp-devel
- %endif
- %if %{PHP}
- # What a meal PHP makes of versioning !!!
- %define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
- %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
- %global ini_name 40-%{name}.ini
- # Fix private-shared-object-provides
- # RPM 4.8
- %{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$}
- %{?filter_setup}
- # RPM 4.9
- %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{php_extdir}/.*\\.so$
- %endif
- # Fix for the i386 extended precision (rhbz#772637)
- %ifarch i386 i686
- %global FFSTORE -ffloat-store
- %endif
- #-- main graphviz rpm ------------------------------------------------
- Requires: %{name}-nox = %{version}-%{release}
- Requires: %{name}-x = %{version}-%{release}
- %description
- A collection of tools for the manipulation and layout
- of graphs (as in nodes and edges, not as in bar-charts).
- %files
- %defattr(-,root,root,-)
- %if %{LICENSE}
- %license COPYING
- %endif
- %doc COPYING AUTHORS CHANGELOG.md NEWS README
- #-- graphviz-nox rpm --------------------------------------------------
- %package nox
- Group: Applications/Multimedia
- Summary: Graphviz commands with no X11 dependencies
- Requires: urw-fonts
- Requires: %{name}-libs = %{version}-%{release}
- Requires: %{name}-plugins-core = %{version}-%{release}
- Provides: %{name}-nox = %{version}-%{release}
- %description nox
- Graphviz plugins and commands that do not depend on x11.
- When used alone, this is intended for minimalist web-server apps
- with no X11 on the server.
- # completely remove any old configs before any fresh install of dot.
- # don't remove any externally provided plugins. "doc -c" should refind them
- %pre nox
- rm -rf %{_libdir}/graphviz/config* || :
- # run "dot -c" to generate plugin config in {_libdir}/graphviz/config%{pluginsver}
- %post nox
- LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c
- %files nox
- %defattr(-,root,root,-)
- %if %{LICENSE}
- %license COPYING
- %endif
- %doc COPYING AUTHORS CHANGELOG.md NEWS README
- %{_bindir}/dot_builtins
- %{_bindir}/dot_sandbox
- %{_bindir}/acyclic
- %{_bindir}/bcomps
- %{_bindir}/ccomps
- %{_bindir}/circo
- %{_bindir}/cluster
- %{_bindir}/dijkstra
- %{_bindir}/dot
- %{_bindir}/dot2gxl
- %{_bindir}/fdp
- %{_bindir}/gc
- %{_bindir}/gml2gv
- %{_bindir}/graphml2gv
- %{_bindir}/gv2gml
- %{_bindir}/gv2gxl
- %{_bindir}/gvcolor
- %{_bindir}/gvgen
- %{_bindir}/gvmap
- %{_bindir}/gvmap.sh
- %{_bindir}/gvpack
- %{_bindir}/gvpr
- %{_bindir}/gxl2dot
- %{_bindir}/gxl2gv
- %if %{ANN}
- %{_bindir}/mingle
- %endif
- %{_bindir}/edgepaint
- %{_bindir}/mm2gv
- %{_bindir}/neato
- %{_bindir}/nop
- %{_bindir}/osage
- %{_bindir}/patchwork
- %{_bindir}/prune
- %{_bindir}/sccmap
- %{_bindir}/sfdp
- %{_bindir}/tred
- %{_bindir}/twopi
- %{_bindir}/unflatten
- %{_mandir}/man1/acyclic.1*
- %{_mandir}/man1/bcomps.1*
- %{_mandir}/man1/ccomps.1*
- %{_mandir}/man1/circo.1*
- %{_mandir}/man1/cluster.1*
- %{_mandir}/man1/dijkstra.1*
- %{_mandir}/man1/dot.1*
- %{_mandir}/man1/dot_sandbox.1*
- %{_mandir}/man1/dot2gxl.1*
- %{_mandir}/man1/fdp.1*
- %{_mandir}/man1/gc.1*
- %{_mandir}/man1/gml2gv.1*
- %{_mandir}/man1/graphml2gv.1*
- %{_mandir}/man1/gv2gml.1*
- %{_mandir}/man1/gv2gxl.1*
- %{_mandir}/man1/gvcolor.1*
- %{_mandir}/man1/gvgen.1*
- %{_mandir}/man1/gvmap.1*
- %{_mandir}/man1/gvmap.sh.1*
- %{_mandir}/man1/gvpack.1*
- %{_mandir}/man1/gvpr.1*
- %{_mandir}/man1/gxl2dot.1*
- %{_mandir}/man1/gxl2gv.1*
- %if %{ANN}
- %{_mandir}/man1/mingle.1*
- %endif
- %{_mandir}/man1/edgepaint.1*
- %{_mandir}/man1/mm2gv.1*
- %{_mandir}/man1/neato.1*
- %{_mandir}/man1/nop.1*
- %{_mandir}/man1/osage.1*
- %{_mandir}/man1/patchwork.1*
- %{_mandir}/man1/prune.1*
- %{_mandir}/man1/sccmap.1*
- %{_mandir}/man1/sfdp.1*
- %{_mandir}/man1/tred.1*
- %{_mandir}/man1/twopi.1*
- %{_mandir}/man1/unflatten.1*
- %{_mandir}/man7/graphviz.7*
- %dir %{_datadir}/graphviz
- %{_datadir}/graphviz/gvpr/*
- #-- graphviz-libs rpm --------------------------------------------------
- %package libs
- Group: Applications/Multimedia
- Summary: Graphviz base libs
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- %description libs
- Graphviz core libs
- %post libs
- /sbin/ldconfig
- %postun libs
- /sbin/ldconfig
- %files libs
- %defattr(-,root,root,-)
- %{_libdir}/libcdt.so.*
- %{_libdir}/libcgraph.so.*
- %{_libdir}/libgvc.so.*
- %{_libdir}/libgvpr.so.*
- %{_libdir}/libpathplan.so.*
- %{_libdir}/libxdot.so.4*
- %exclude %{_libdir}/graphviz/*
- #-- graphviz-plugins-core rpm --------------------------------------------------
- %package plugins-core
- Group: Applications/Multimedia
- Summary: Graphviz plugins - core layout engines and text renderers
- Requires: %{name}-nox = %{version}-%{release}
- %description plugins-core
- Graphviz plugins - core layout engines and text renderers
- # run "dot -c" to generate plugin config in {_libdir}/graphviz/config%{pluginsver}
- # this one is conditional because of rpm dependency ordering
- # on a fresh install this package is installed before dot is avaiable from graphviz-nox
- # no matter since dot -c is also run from the graphviz-nox install
- %post plugins-core
- [ -x %{_bindir}/dot ] && LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c || :
- # if there is no dot after everything else is done, then remove config
- %postun plugins-core
- if [ $1 -eq 0 ]; then
- rm -f %{_libdir}/graphviz/config6 || :
- fi
- %files plugins-core
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz
- %{_libdir}/graphviz/libgvplugin_core.so.*
- %{_libdir}/graphviz/libgvplugin_dot_layout.so.*
- %{_libdir}/graphviz/libgvplugin_neato_layout.so.*
- #-- graphviz-x rpm --------------------------------------------------
- %package x
- Group: Applications/Multimedia
- Summary: Graphviz commands with X11 dependencies
- Requires: %{name}-nox = %{version}-%{release}
- Requires: %{name}-plugins-x = %{version}-%{release}
- %description x
- Graphviz commands with X11 dependencies
- %files x
- %defattr(-,root,root,-)
- %if %{LICENSE}
- %license COPYING
- %endif
- %doc COPYING AUTHORS CHANGELOG.md NEWS README
- %{_bindir}/vimdot
- %{_mandir}/man1/vimdot.1*
- %if %{GTK}
- %{_bindir}/smyrna
- %{_datadir}/graphviz/smyrna
- %{_mandir}/man1/smyrna.1*
- %endif
- #-- graphviz-plugins-x rpm --------------------------------------------------
- %package plugins-x
- Group: Applications/Multimedia
- Summary: Graphviz plugins with X11 dependencies
- Requires: %{name} = %{version}-%{release}
- %description plugins-x
- Graphviz plugins that depend on x11 - most installations will want this.
- # run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
- %post plugins-x
- LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c
- %postun plugins-x
- [ -x %{_bindir}/dot ] && LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c || :
- %files plugins-x
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz
- %{_libdir}/graphviz/libgvplugin_xlib.so.*
- %{_libdir}/graphviz/libgvplugin_pango.so.*
- %{_libdir}/graphviz/libgvplugin_rsvg.so.*
- %{_libdir}/graphviz/libgvplugin_gdk.so.*
- %{_libdir}/graphviz/libgvplugin_gs.so.*
- %{_libdir}/graphviz/libgvplugin_poppler.so.*
- %if %{LASI}
- %{_libdir}/graphviz/libgvplugin_lasi.so.*
- %endif
- #-- graphviz-gd rpm --------------------------------------------------
- %package gd
- Group: Applications/Multimedia
- Summary: Graphviz binaries that depend on libgd
- Requires: %{name} = %{version}-%{release}
- # this next Requires is not strictly neccessary for diffimg,
- # but users will probably expect the plugins to get pulled in
- Requires: %{name}-plugins-gd = %{version}-%{release}
- %description gd
- Graphviz binaries that depend on gd. (Unless you absolutely have
- to use GIF, you are recommended to use the PNG format instead because
- of the better quality anti-aliased lines provided by the cairo+pango
- based renderer.)
- %files gd
- %defattr(-,root,root,-)
- %{_bindir}/diffimg
- %{_mandir}/man1/diffimg.1*
- #-- graphviz-plugins-gd rpm --------------------------------------------------
- %package plugins-gd
- Group: Applications/Multimedia
- Summary: Graphviz plugin for gd renderers
- Requires: %{name} = %{version}-%{release}
- %description plugins-gd
- Graphviz plugin for image rendering using libgd. (Unless you absolutely have
- to use GIF, you are recommended to use the PNG format instead because
- of the better quality anti-aliased lines provided by the cairo+pango
- based renderer.)
- # run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
- %post plugins-gd
- LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c
- %postun plugins-gd
- [ -x %{_bindir}/dot ] && LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c || :
- %files plugins-gd
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz
- %{_libdir}/graphviz/libgvplugin_gd.so.*
- #-- graphviz-plugins-vt rpm --------------------------------------------------
- %package plugins-vt
- Group: Applications/Multimedia
- Summary: Graphviz plugin for vt format
- Requires: %{name}-x = %{version}-%{release}
- Obsoletes: %{name}-vt <= 2.41
- Provides: %{name}-vt = %{version}-%{release}
- %description plugins-vt
- Graphviz plugin for vt terminal rendering.
- # run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
- %post plugins-vt
- LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c
- %postun plugins-vt
- [ -x %{_bindir}/dot ] && LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c || :
- %files plugins-vt
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz
- %{_libdir}/graphviz/libgvplugin_vt.so.*
- #-- graphviz-plugins-webp rpm --------------------------------------------------
- %if %{WEBP}
- %package plugins-webp
- Group: Applications/Multimedia
- Summary: Graphviz plugin for webp format images, using libwebp
- Requires: %{name}-x = %{version}-%{release}
- Obsoletes: %{name}-webp <= 2.41
- Provides: %{name}-webp = %{version}-%{release}
- %description plugins-webp
- Graphviz plugin for webp image rendering.
- # run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
- %post plugins-webp
- LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c
- %postun plugins-webp
- [ -x %{_bindir}/dot ] && LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c || :
- %files plugins-webp
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz
- %{_libdir}/graphviz/libgvplugin_webp.so.*
- %endif
- #-- graphviz-plugins-devil rpm --------------------------------------------------
- %if %{DEVIL}
- %package plugins-devil
- Group: Applications/Multimedia
- Summary: Graphviz plugin for renderers based on DevIL
- Requires: %{name}-x = %{version}-%{release}
- Obsoletes: %{name}-devil <= 2.41
- Provides: %{name}-devil = %{version}-%{release}
- %description plugins-devil
- Graphviz plugin for renderers based on DevIL. (Unless you absolutely have
- to use BMP, TIF, or TGA, you are recommended to use the PNG format instead
- supported directly by the cairo+pango based renderer in the base graphviz rpm.)
- # run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
- %post plugins-devil
- LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c
- %postun plugins-devil
- [ -x %{_bindir}/dot ] && LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c || :
- %files plugins-devil
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz
- %{_libdir}/graphviz/libgvplugin_devil.so.*
- %endif
- #-- graphviz-qt rpm --------------------------------------------------
- %package qt
- Group: Applications/Multimedia
- Summary: Graphviz applications using _QT
- Requires: %{name}-x = %{version}-%{release}
- %description qt
- Graphviz applications using _QT - currently just gvedit
- %files qt
- %defattr(-,root,root,-)
- %{_bindir}/gvedit
- %{_datadir}/graphviz/gvedit
- %{_mandir}/man1/gvedit.1*
- #-- graphviz-lang-sharp rpm --------------------------------------------
- %if %{SHARP}
- %package lang-sharp
- Group: Applications/Multimedia
- Summary: C# extension for graphviz
- Requires: %{name} = %{version}-%{release}, mono-core
- Obsoletes: %{name}-sharp <= 2.41
- Provides: %{name}-sharp = %{version}-%{release}
- %description lang-sharp
- C# extension for graphviz.
- %files lang-sharp
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz/sharp
- %{_libdir}/graphviz/sharp/*
- %{_mandir}/man3/*.3sharp.*
- %endif
- #-- graphviz-lang-d rpm ---------------------------------------------
- %if 0%{?DEEEE}
- %package lang-d
- Group: Applications/Multimedia
- Summary: D extension for graphviz
- Requires: %{name} = %{version}-%{release}, D
- Obsoletes: %{name}-d <= 2.41
- Provides: %{name}-d = %{version}-%{release}
- %description lang-d
- D extension for graphviz.
- %files lang-d
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz/d
- %{_libdir}/graphviz/d/*
- %{_mandir}/man3/*.3d.*
- %endif
- #-- graphviz-lang-go rpm --------------------------------------------
- %if %{GOLANG}
- %package lang-go
- Group: Applications/Multimedia
- Summary: GO extension for graphviz
- Requires: %{name} = %{version}-%{release}, golang
- Obsoletes: %{name}-go <= 2.41
- Provides: %{name}-go = %{version}-%{release}
- %description lang-go
- Guile extension for graphviz.
- %files lang-go
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz/go
- %{_libdir}/graphviz/go/*
- %{_mandir}/man3/*.3go.*
- %endif
- #-- graphviz-lang-guile rpm --------------------------------------------
- %package lang-guile
- Group: Applications/Multimedia
- Summary: Guile extension for graphviz
- %if 0%{?fedora} > 0 || 0%{?rhel} >= 9
- Requires: %{name} = %{version}-%{release}, guile30
- %else
- Requires: %{name} = %{version}-%{release}, guile
- %endif
- Obsoletes: %{name}-guile <= 2.41
- Provides: %{name}-guile = %{version}-%{release}
- %description lang-guile
- Guile extension for graphviz.
- %files lang-guile
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz/guile
- %{_libdir}/graphviz/guile/*
- %{_mandir}/man3/*.3guile.*
- #-- graphviz-lang-java rpm ---------------------------------------------
- %package lang-java
- Group: Applications/Multimedia
- Summary: Java extension for graphviz
- Requires: %{name} = %{version}-%{release}, java
- Obsoletes: %{name}-java <= 2.41
- Provides: %{name}-java = %{version}-%{release}
- %description lang-java
- Java extension for graphviz.
- %files lang-java
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz/java
- %{_libdir}/graphviz/java/*
- %{_mandir}/man3/*.3java.*
- #-- graphviz-lang-javascript rpm ---------------------------------------------
- %if 0%{?JAVASCRIPT}
- %package lang-javascript
- Group: Applications/Multimedia
- Summary: Javascript extension for graphviz
- Requires: %{name} = %{version}-%{release}, javascript
- Obsoletes: %{name}-javascript <= 2.41
- Provides: %{name}-javascript = %{version}-%{release}
- %description lang-javascript
- Javascript extension for graphviz.
- %files lang-javascript
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz/javascript
- %{_libdir}/graphviz/javascript/*
- %{_mandir}/man3/*.3javascript.*
- %endif
- #-- graphviz-lang-lua rpm ----------------------------------------------
- %package lang-lua
- Group: Applications/Multimedia
- Summary: Lua extension for graphviz
- Requires: %{name} = %{version}-%{release}, lua
- Obsoletes: %{name}-lua <= 2.41
- Provides: %{name}-lua = %{version}-%{release}
- %description lang-lua
- Lua extension for graphviz.
- %files lang-lua
- %defattr(-,root,root,-)
- %{_libdir}/lua*/*
- %{_datadir}/graphviz/demo/*.lua*
- %{_mandir}/man3/*.3lua.*
- %exclude %{_libdir}/graphviz/lua/*.so
- #-- graphviz-lang-perl rpm ---------------------------------------------
- %package lang-perl
- Group: Applications/Multimedia
- Summary: Perl extension for graphviz
- Requires: %{name} = %{version}-%{release}, perl
- Obsoletes: %{name}-perl <= 2.41
- Provides: %{name}-perl = %{version}-%{release}
- %description lang-perl
- Perl extension for graphviz.
- %files lang-perl
- %defattr(-,root,root,-)
- %{_libdir}/perl*/*
- %{_datadir}/graphviz/demo/*.pl*
- %{_mandir}/man3/*.3perl.*
- %exclude %{_libdir}/graphviz/perl/*.so
- %exclude %{_libdir}/graphviz/perl/*.pm
- %if %{PHP}
- #-- graphviz-lang-php rpm ----------------------------------------------
- %package lang-php
- Group: Applications/Multimedia
- Summary: PHP extension for graphviz
- Requires: %{name} = %{version}-%{release}, /usr/bin/php
- Obsoletes: %{name}-php <= 2.41
- Provides: %{name}-php = %{version}-%{release}
- %description lang-php
- PHP extension for graphviz.
- %files lang-php
- %defattr(-,root,root,-)
- %config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
- %{php_extdir}/gv.so
- %if 0%{?rhel}
- %{_datadir}/php*/*
- %endif
- %{_datadir}/graphviz/demo/*.php*
- %{_mandir}/man3/*.3php.*
- %exclude %{_libdir}/graphviz/php/*.so
- %if 0%{?rhel}
- %exclude %{_libdir}/graphviz/php/*.php
- %endif
- %endif
- #-- graphviz-lang-python3 rpm -------------------------------------------
- %package lang-python3
- Group: Applications/Multimedia
- Summary: Python extension for graphviz
- Requires: %{name} = %{version}-%{release}, python3
- Conflicts: %{name}-python <= 2.41
- Conflicts: %{name}-lang-python <= 2.41
- %description lang-python3
- Python extension for graphviz.
- %files lang-python3
- %defattr(-,root,root,-)
- %{_libdir}/python3*/*
- %{_datadir}/graphviz/demo/*.py*
- %{_mandir}/man3/gv.3python.*
- %exclude %{_libdir}/graphviz/python3/*.so
- %exclude %{_libdir}/graphviz/python3/*.py*
- #-- graphviz-lang-R rpm ---------------------------------------------
- %if %{ARRRR}
- %package lang-R
- Group: Applications/Multimedia
- Summary: R extension for graphviz
- Requires: %{name} = %{version}-%{release}, R
- Obsoletes: %{name}-R <= 2.41
- Provides: %{name}-R = %{version}-%{release}
- %description lang-R
- R extension for graphviz.
- %files lang-R
- %defattr(-,root,root,-)
- %dir %{_libdir}/graphviz/R
- %{_libdir}/graphviz/R/*
- %{_mandir}/man3/*.3r.*
- %endif
- #-- graphviz-lang-ruby rpm ---------------------------------------------
- %package lang-ruby
- Group: Applications/Multimedia
- Summary: Ruby extension for graphviz
- Requires: %{name} = %{version}-%{release}, ruby
- Obsoletes: %{name}-ruby <= 2.41
- Provides: %{name}-ruby = %{version}-%{release}
- %description lang-ruby
- Ruby extension for graphviz.
- %files lang-ruby
- %defattr(-,root,root,-)
- %{_libdir}/*ruby*/*
- %{_datadir}/graphviz/demo/*.rb*
- %{_mandir}/man3/*.3ruby.*
- %exclude %{_libdir}/graphviz/ruby/*.so
- #-- graphviz-lang-tcl rpm ----------------------------------------------
- %package lang-tcl
- Group: Applications/Multimedia
- Summary: Tcl extension & tools for graphviz
- Requires: %{name} = %{version}-%{release}, tcl >= 8.3
- Obsoletes: %{name}-tcl <= 2.41
- Provides: %{name}-tcl = %{version}-%{release}
- %description lang-tcl
- Various tcl packages (extensions) for the graphviz tools.
- %files lang-tcl
- %defattr(-,root,root,-)
- %{_libdir}/tcl*/*
- %{_datadir}/graphviz/demo/*.tcl*
- %{_datadir}/graphviz/demo/*_data
- %{_datadir}/graphviz/demo/entities.html
- %{_mandir}/man3/*.3tcl.*
- %exclude %{_libdir}/graphviz/tcl/*
- #-- graphviz-devel rpm --------------------------------------------
- %package devel
- Group: Development/Libraries
- Summary: Development package for graphviz
- Requires: %{name}-libs = %{version}-%{release}, pkgconfig
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- %description devel
- A collection of tools for the manipulation and layout
- of graphs (as in nodes and edges, not as in bar-charts).
- This package contains development files for graphviz-libs.
- %post devel
- /sbin/ldconfig
- %postun devel
- /sbin/ldconfig
- %files devel
- %defattr(-,root,root,-)
- %{_includedir}/graphviz
- %{_libdir}/libcdt.so
- %{_mandir}/man3/cdt.3.*
- %{_libdir}/pkgconfig/libcdt.pc
- %{_libdir}/libcgraph.so
- %{_mandir}/man3/cgraph.3.*
- %{_libdir}/pkgconfig/libcgraph.pc
- %{_libdir}/libgvc.so
- %{_mandir}/man3/gvc.3.*
- %{_libdir}/pkgconfig/libgvc.pc
- %{_libdir}/libgvpr.so
- %{_mandir}/man3/gvpr.3.*
- %{_libdir}/pkgconfig/libgvpr.pc
- %{_libdir}/libpathplan.so
- %{_mandir}/man3/pathplan.3.*
- %{_libdir}/pkgconfig/libpathplan.pc
- %{_libdir}/libxdot.so
- %{_mandir}/man3/xdot.3.*
- %{_libdir}/pkgconfig/libxdot.pc
- %{_mandir}/man3/expr.3.*
- %{_mandir}/man3/pack.3.*
- %exclude %{_libdir}/graphviz/libgvplugin*
- %exclude %{_libdir}/graphviz/*.so
- #-- graphviz-graphs rpm -------------------------------------------
- %package graphs
- Group: Applications/Multimedia
- Summary: Demo graphs for graphviz
- BuildArch: noarch
- %description graphs
- Some demo graphs for graphviz.
- %files graphs
- %defattr(-,root,root,-)
- %dir %{_datadir}/graphviz
- %{_datadir}/graphviz/graphs
- %if %{GTK}
- %{_datadir}/graphviz/examples
- %endif
- #-- graphviz-doc rpm ----------------------------------------------
- %package doc
- Group: Documentation
- Summary: PDF and HTML documents for graphviz
- BuildArch: noarch
- %description doc
- Provides some additional PDF and HTML documentation for graphviz.
- %files doc
- %defattr(-,root,root,-)
- %doc __doc/*
- #-- building --------------------------------------------------
- %prep
- %setup -q
- for p in %{patches}; do
- patch -p1 < ${p} || exit 1
- done
- %build
- CFLAGS="$RPM_OPT_FLAGS" \
- ./configure \
- --prefix=%{_prefix} \
- --bindir=%{_bindir} \
- --libdir=%{_libdir} \
- --includedir=%{_includedir} \
- --datadir=%{_datadir} \
- --mandir=%{_mandir} \
- --pdfdir='$(docdir)/pdf' \
- --htmldir='$(docdir)/html' \
- --disable-static \
- --disable-dependency-tracking \
- --enable-sharp \
- --enable-guile \
- --enable-java \
- --disable-d \
- --disable-javascript \
- --enable-lua \
- --enable-perl \
- --enable-php \
- --enable-ruby \
- --enable-tcl \
- --with-gdk \
- --with-ghostscript \
- --with-ipsepcola \
- %if ! %{ANN}
- --without-ann \
- %endif
- %if ! %{GOLANG}
- --disable-go \
- %endif
- %if ! %{JAVASCRIPT}
- --disable-javascript \
- %endif
- %if ! %{LASI}
- --without-lasi \
- %endif
- %if ! %{PHP}
- --disable-php \
- %endif
- %if ! %{GTS}
- --without-gts \
- %endif
- %if ! %{SHARP}
- --disable-sharp \
- %endif
- %if ! %{ARRRR}
- --disable-r \
- %endif
- %if ! %{DEEEE}
- --disable-d \
- %endif
- %if ! %{WEBP}
- --without-webp \
- %endif
- %if ! %{DEVIL}
- --without-devil \
- %endif
- %if ! %{GTK}
- --without-gtk \
- --without-gtkgl \
- --without-gtkglext \
- --without-smyrna \
- %endif
- --with-qt \
- --with-pangocairo \
- --with-poppler \
- --with-rsvg \
- --with-ortho \
- --with-sfdp \
- --with-x
- make %{?_smp_mflags}
- %install
- rm -rf %{buildroot} __doc
- make DESTDIR=%{buildroot} install
- find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
- cp -a %{buildroot}%{_docdir}/%{name} __doc
- rm -rf %{buildroot}%{_docdir}/%{name}
- %if %{PHP}
- # PHP configuration file
- %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
- %{__cat} << __EOF__ > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini
- ; Enable %{name} extension module
- extension=gv.so
- __EOF__
- %endif
- # Remove executable modes from demos
- find %{buildroot}%{_datadir}/%{name}/demo -type f -exec chmod a-x {} ';'
- # Rename python demos to prevent byte compilation
- find %{buildroot}%{_datadir}/%{name}/demo -type f -name "*.py" -exec mv {} {}.demo ';'
- # Ghost plugins config
- touch %{buildroot}%{_libdir}/graphviz/config%{pluginsver}
- %check
- %ifnarch ppc64 ppc
- # regression test, segfaults on ppc/ppc64, possible endian issues?
- #cd rtest
- #make rtest
- %endif
- %clean
- # optional regression test using the products in the build tree
- # FIXME - rtest not working reliably in rpm build environment - JCE
- %if 0%{?rtest}
- #cd rtest
- #make rtest
- %endif
- # clean up temporary installation
- rm -rf %{buildroot}
- #-- changelog --------------------------------------------------
- %changelog
- * Fri Dec 6 2024 <> 12.2.1
- - see git log
- (This automatically-replaced single-entry is used for frequent
- updates in the unstable development series of releases.
- A properly constructed changelog entry is a requirement
- for stable releases.)
|