commit e8f964381355710041193bb1c608c07f7d5f6d5f Author: Toshaan Bharvani Date: Sun May 15 13:41:11 2022 +0200 initial package creation Signed-off-by: Toshaan Bharvani diff --git a/SOURCES/graphviz-2.42.2-coverity-scan-fixes.patch b/SOURCES/graphviz-2.42.2-coverity-scan-fixes.patch new file mode 100644 index 0000000..59a9617 --- /dev/null +++ b/SOURCES/graphviz-2.42.2-coverity-scan-fixes.patch @@ -0,0 +1,26 @@ +diff --git a/cmd/lefty/dot2l/dotlex.c b/cmd/lefty/dot2l/dotlex.c +index cf738c0..65e17e2 100644 +--- a/cmd/lefty/dot2l/dotlex.c ++++ b/cmd/lefty/dot2l/dotlex.c +@@ -252,7 +252,7 @@ static char *scan_token (char *p) { + char *q; + + q = lexbuf; +- if (p == '\0') ++ if (!p || *p == '\0') + return NULL; + while (isalnum (*p) || (*p == '_') || (!isascii (*p))) + *q++ = *p++; +diff --git a/cmd/tools/gvgen.c b/cmd/tools/gvgen.c +index c2b166d..c9a51e9 100644 +--- a/cmd/tools/gvgen.c ++++ b/cmd/tools/gvgen.c +@@ -453,6 +453,8 @@ closeOpen (void) + fprintf(opts.outfile, "}\ngraph {\n"); + } + ++extern void makeTetrix(int depth, edgefn ef); ++ + int main(int argc, char *argv[]) + { + GraphType graphType; diff --git a/SOURCES/graphviz-2.42.2-dotty-menu-fix.patch b/SOURCES/graphviz-2.42.2-dotty-menu-fix.patch new file mode 100644 index 0000000..b024996 --- /dev/null +++ b/SOURCES/graphviz-2.42.2-dotty-menu-fix.patch @@ -0,0 +1,22 @@ +diff --git a/cmd/dotty/dotty_ui.lefty b/cmd/dotty/dotty_ui.lefty +index 6fdec8f..270c0c8 100644 +--- a/cmd/dotty/dotty_ui.lefty ++++ b/cmd/dotty/dotty_ui.lefty +@@ -351,7 +351,7 @@ dotty.protovt.normal.uifuncs = [ + else + gt.insertedge (gt, data.pobj, null, data.obj, null, null, 1); + }; +- 'rightdown' = function (data) { ++ 'rightup' = function (data) { + local vt, gt, menu, i; + + vt = dotty.views[data.widget]; +@@ -456,7 +456,7 @@ dotty.protovt.birdseye.uifuncs = [ + 'middledown' = dotty.protovt.normal.uifuncs.middledown; + 'middlemove' = dotty.protovt.normal.uifuncs.middlemove; + 'middleup' = dotty.protovt.normal.uifuncs.middleup; +- 'rightdown' = dotty.protovt.normal.uifuncs.rightdown; ++ 'rightup' = dotty.protovt.normal.uifuncs.rightup; + 'keyup' = dotty.protovt.normal.uifuncs.keyup; + 'redraw' = dotty.protovt.normal.uifuncs.redraw; + 'closeview' = dotty.protovt.normal.uifuncs.closeview; diff --git a/SOURCES/graphviz-2.44.0-CVE-2020-18032.patch b/SOURCES/graphviz-2.44.0-CVE-2020-18032.patch new file mode 100644 index 0000000..b3b0ab9 --- /dev/null +++ b/SOURCES/graphviz-2.44.0-CVE-2020-18032.patch @@ -0,0 +1,40 @@ +From 784411ca3655c80da0f6025ab20634b2a6ff696b Mon Sep 17 00:00:00 2001 +From: Matthew Fernandez +Date: Sat, 25 Jul 2020 19:31:01 -0700 +Subject: [PATCH] fix: out-of-bounds write on invalid label + +When the label for a node cannot be parsed (due to it being malformed), it falls +back on the symbol name of the node itself. I.e. the default label the node +would have had if it had no label attribute at all. However, this is applied by +dynamically altering the node's label to "\N", a shortcut for the symbol name of +the node. All of this is fine, however if the hand written label itself is +shorter than the literal string "\N", not enough memory would have been +allocated to write "\N" into the label text. + +Here we account for the possibility of error during label parsing, and assume +that the label text may need to be overwritten with "\N" after the fact. Fixes +issue #1700. +--- + lib/common/shapes.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/lib/common/shapes.c b/lib/common/shapes.c +index 0a0635fc3..9dca9ba6e 100644 +--- a/lib/common/shapes.c ++++ b/lib/common/shapes.c +@@ -3546,9 +3546,10 @@ static void record_init(node_t * n) + reclblp = ND_label(n)->text; + len = strlen(reclblp); + /* For some forgotten reason, an empty label is parsed into a space, so +- * we need at least two bytes in textbuf. ++ * we need at least two bytes in textbuf, as well as accounting for the ++ * error path involving "\\N" below. + */ +- len = MAX(len, 1); ++ len = MAX(MAX(len, 1), (int)strlen("\\N")); + textbuf = N_NEW(len + 1, char); + if (!(info = parse_reclbl(n, flip, TRUE, textbuf))) { + agerr(AGERR, "bad label format %s\n", ND_label(n)->text); +-- +GitLab + diff --git a/SOURCES/graphviz-2.44.0-gvpack-neato-static.patch b/SOURCES/graphviz-2.44.0-gvpack-neato-static.patch new file mode 100644 index 0000000..7929679 --- /dev/null +++ b/SOURCES/graphviz-2.44.0-gvpack-neato-static.patch @@ -0,0 +1,15 @@ +diff --git a/cmd/tools/Makefile.am b/cmd/tools/Makefile.am +index 9c0e9ff..29687d2 100644 +--- a/cmd/tools/Makefile.am ++++ b/cmd/tools/Makefile.am +@@ -162,7 +162,9 @@ gvpack_LDADD = \ + $(top_builddir)/lib/ingraphs/libingraphs_C.la \ + $(top_builddir)/lib/cgraph/libcgraph.la \ + $(top_builddir)/lib/cdt/libcdt.la \ +- $(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout.la ++ $(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout_C.la \ ++ $(top_builddir)/lib/pathplan/libpathplan_C.la \ ++ $(EXPAT_LIBS) $(Z_LIBS) $(GTS_LIBS) $(SOCKET_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS) + + if ENABLE_STATIC + gvpack_static_SOURCES = gvpack.c diff --git a/SOURCES/graphviz-2.44.0-man-fix.patch b/SOURCES/graphviz-2.44.0-man-fix.patch new file mode 100644 index 0000000..2a9a85f --- /dev/null +++ b/SOURCES/graphviz-2.44.0-man-fix.patch @@ -0,0 +1,127 @@ +diff --git a/cmd/dot/dot.1 b/cmd/dot/dot.1 +index 986b262..e9c56f2 100644 +--- a/cmd/dot/dot.1 ++++ b/cmd/dot/dot.1 +@@ -352,7 +352,7 @@ in the layout. + layout the graph. + .PP + \fBstart=\fIval\fR. Adjusts the random initial placement of nodes +-with no specified position. If \fIval\fP is is an integer, ++with no specified position. If \fIval\fP is an integer, + it is used as the seed for the random number generator. + If \fIval\fP is not an integer, a random system\(hygenerated integer, + such as the process ID or current time, is used as the seed. +@@ -635,6 +635,22 @@ As usual, edge layout is guided by the \fBsplines\fR attribute. + .PP + \fB\-y\fR invert y coordinate in output. + .PP ++\fB\-o\fIfile\fR write output to \fIfile\fP. ++.PP ++\fB\-x\fP reduce graph. ++.PP ++\fB\-Lg\fP don't use grid. ++.PP ++\fB\-LO\fP use old attractive force. ++.PP ++\fB\-Ln\fIi\fR set number of iterations to \fIi\fP. ++.PP ++\fB\-LU\fIi\fR set unscaled factor to \fIi\fP. ++.PP ++\fB\-LC\fIv\fR set overlap expansion factor to \fIv\fP. ++.PP ++\fB\-LT\fR[*]\fIv\fR set temperature (temperature factor) to \fIv\fP. ++.PP + \fB\-V\fP (version) prints version information and exits. + .PP + \fB\-?\fP prints the usage and exits. +diff --git a/cmd/dot/osage.1 b/cmd/dot/osage.1 +index 0efbf90..5eded8b 100644 +--- a/cmd/dot/osage.1 ++++ b/cmd/dot/osage.1 +@@ -404,6 +404,22 @@ If \fB\-l\fP is given by itself, the standard library is omitted. + .PP + \fB\-O\fP automatically generate output filenames based on the input filename and the \-T format. + .PP ++\fB\-o\fIfile\fR write output to \fIfile\fP. ++.PP ++\fB\-x\fP reduce graph. ++.PP ++\fB\-Lg\fP don't use grid. ++.PP ++\fB\-LO\fP use old attractive force. ++.PP ++\fB\-Ln\fIi\fR set number of iterations to \fIi\fP. ++.PP ++\fB\-LU\fIi\fR set unscaled factor to \fIi\fP. ++.PP ++\fB\-LC\fIv\fR set overlap expansion factor to \fIv\fP. ++.PP ++\fB\-LT\fR[*]\fIv\fR set temperature (temperature factor) to \fIv\fP. ++.PP + \fB\-v\fP (verbose) prints various information useful for debugging. + .PP + \fB\-V\fP (version) prints version information and exits. +diff --git a/cmd/dot/patchwork.1 b/cmd/dot/patchwork.1 +index 7fe68fb..852f516 100644 +--- a/cmd/dot/patchwork.1 ++++ b/cmd/dot/patchwork.1 +@@ -398,6 +398,22 @@ If \fB\-l\fP is given by itself, the standard library is omitted. + .PP + \fB\-O\fP automatically generate output filenames based on the input filename and the \-T format. + .PP ++\fB\-o\fIfile\fR write output to \fIfile\fP. ++.PP ++\fB\-x\fP reduce graph. ++.PP ++\fB\-Lg\fP don't use grid. ++.PP ++\fB\-LO\fP use old attractive force. ++.PP ++\fB\-Ln\fIi\fR set number of iterations to \fIi\fP. ++.PP ++\fB\-LU\fIi\fR set unscaled factor to \fIi\fP. ++.PP ++\fB\-LC\fIv\fR set overlap expansion factor to \fIv\fP. ++.PP ++\fB\-LT\fR[*]\fIv\fR set temperature (temperature factor) to \fIv\fP. ++.PP + \fB\-v\fP (verbose) prints various information useful for debugging. + .PP + \fB\-V\fP (version) prints version information and exits. +diff --git a/cmd/gvmap/cluster.1 b/cmd/gvmap/cluster.1 +index 15b0332..188dcd6 100644 +--- a/cmd/gvmap/cluster.1 ++++ b/cmd/gvmap/cluster.1 +@@ -51,6 +51,9 @@ Specifies that output should go into the file \fIoutfile\fP. By default, + .TP + .BI \-v + Verbose mode. ++.TP ++.BI \-? ++Prints the usage and exits. + .SH EXAMPLES + .PP + Applying +diff --git a/cmd/tools/unflatten.1 b/cmd/tools/unflatten.1 +index 7857cf0..089496f 100644 +--- a/cmd/tools/unflatten.1 ++++ b/cmd/tools/unflatten.1 +@@ -3,7 +3,7 @@ + unflatten \- adjust directed graphs to improve layout aspect ratio + .SH SYNOPSIS + .B unflatten +-[\fB\-f\fR] ++[\fB\-f?\fR] + [\fB\-l\fIlen\fR] + [\fB\-c\fIlen\fR + ] [ +@@ -41,6 +41,9 @@ Form disconnected nodes into chains of up to \fIlen\fP nodes. + .BI \-o " outfile" + causes the output to be written to the specified file; by default, + output is written to \fBstdout\fP. ++.TP ++.BI \-? ++Prints the usage and exits. + .SH OPERANDS + The following operand is supported: + .TP 8 diff --git a/SPECS/graphviz.spec b/SPECS/graphviz.spec new file mode 100644 index 0000000..a83b4cb --- /dev/null +++ b/SPECS/graphviz.spec @@ -0,0 +1,1397 @@ +%if 0%{?rhel} >= 8 +%bcond_with php +%bcond_with guile +%else +%bcond_without php +%bcond_without guile +%endif +%bcond_with python2 + +# Necessary conditionals +%ifarch %{mono_arches} +%global SHARP 1 +%else +%global SHARP 0 +%endif + +%global OCAML 1 + +%global DEVIL 1 +%global ARRRR 1 + +# Build with QT applications (currently only gvedit) +# Disabled until the package gets better structuring, see bug #447133 +%global QTAPPS 0 + +%global GTS 1 +%global LASI 1 + +# Not in Fedora yet. +%global MING 0 + +%if 0%{?rhel} +%global SHARP 0 +%global ARRRR 0 +%global DEVIL 0 +%global GTS 0 +%global LASI 0 +%endif + +%if %{with php} +%global PHP 1 +%else +%global PHP 0 +%endif + +%if %{with guile} +%global GUILE 1 +%else +%global GUILE 0 +%endif + +# Plugins version +%global pluginsver 6 + +%global php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4) + +%if "%{php_version}" < "5.6" +%global ini_name %{name}.ini +%else +%global ini_name 40-%{name}.ini +%endif + +# Fix for the 387 extended precision (rhbz#772637) +%ifarch i386 i686 +%global FFSTORE -ffloat-store +%endif + +Name: graphviz +Summary: Graph Visualization Tools +Version: 2.44.0 +Release: 25%{?dist} +License: EPL-1.0 +URL: http://www.graphviz.org/ +Source0: https://gitlab.com/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 +# rhbz#1505230 +Patch0: graphviz-2.42.2-dotty-menu-fix.patch +Patch1: graphviz-2.42.2-coverity-scan-fixes.patch +# rhbz#1612692, https://gitlab.com/graphviz/graphviz/-/merge_requests/1367 +Patch2: graphviz-2.44.0-man-fix.patch +Patch3: graphviz-2.44.0-CVE-2020-18032.patch +Patch4: graphviz-2.44.0-gvpack-neato-static.patch +BuildRequires: gcc-g++ +BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2 +BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig, sed +BuildRequires: fontconfig-devel, libtool-ltdl-devel, ruby-devel, ruby +%if %{GUILE} +BuildRequires: guile-devel +%endif +%if %{with python2} +BuildRequires: python2-devel +%endif +BuildRequires: python3-devel, libXaw-devel, libSM-devel, libXext-devel, java-devel +BuildRequires: cairo-devel >= 1.1.10, pango-devel, gmp-devel, lua-devel, gtk2-devel +BuildRequires: gd-devel, perl-devel, swig >= 1.3.33, automake, autoconf, libtool, qpdf +# Temporary workaound for perl(Carp) not pulled +BuildRequires: perl-Carp +%if %{PHP} +BuildRequires: php-devel +%endif +%if %{SHARP} +BuildRequires: mono-core +%endif +%if %{DEVIL} +BuildRequires: DevIL-devel +%endif +%if %{ARRRR} +BuildRequires: R-devel +%endif +%if %{OCAML} +BuildRequires: ocaml +%endif +%if %{QTAPPS} +BuildRequires: qt-devel +%endif +%if %{GTS} +BuildRequires: gts-devel +%endif +%if %{LASI} +BuildRequires: lasi-devel +%endif +BuildRequires: urw-base35-fonts, perl-ExtUtils-Embed, perl-generators, librsvg2-devel +# for ps2pdf +BuildRequires: ghostscript +BuildRequires: libgs-devel +BuildRequires: make +# ISO8859-1 fonts are required by lefty +Requires: urw-base35-fonts, xorg-x11-fonts-ISO8859-1-100dpi +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description +A collection of tools for the manipulation and layout of graphs (as in nodes +and edges, not as in barcharts). + +%package devel +Summary: Development package for graphviz +Requires: %{name} = %{version}-%{release}, pkgconfig +Requires: %{name}-gd = %{version}-%{release} + +%description devel +A collection of tools for the manipulation and layout of graphs (as in nodes +and edges, not as in barcharts). This package contains development files for +graphviz. + +%if %{DEVIL} +%package devil +Summary: Graphviz plugin for renderers based on DevIL +Requires: %{name} = %{version}-%{release} + +%description 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.) +%endif + +%package doc +Summary: PDF and HTML documents for graphviz + +%description doc +Provides some additional PDF and HTML documentation for graphviz. + +%package gd +Summary: Graphviz plugin for renderers based on gd +Requires: %{name} = %{version}-%{release} +Requires(post): %{_bindir}/dot /sbin/ldconfig +Requires(postun): %{_bindir}/dot /sbin/ldconfig + +%description gd +Graphviz plugin for renderers based 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.) + +%package graphs +Summary: Demo graphs for graphviz + +%description graphs +Some demo graphs for graphviz. + +%if %{GUILE} +%package guile +Summary: Guile extension for graphviz +Requires: %{name} = %{version}-%{release}, guile + +%description guile +Guile extension for graphviz. +%endif + +%package java +Summary: Java extension for graphviz +Requires: %{name} = %{version}-%{release} + +%description java +Java extension for graphviz. + +%package lua +Summary: Lua extension for graphviz +Requires: %{name} = %{version}-%{release}, lua + +%description lua +Lua extension for graphviz. + +%if %{MING} +%package ming +Summary: Graphviz plugin for flash renderer based on ming +Requires: %{name} = %{version}-%{release} + +%description ming +Graphviz plugin for -Tswf (flash) renderer based on ming. +%endif + +%if %{OCAML} +%package ocaml +Summary: Ocaml extension for graphviz +Requires: %{name} = %{version}-%{release}, ocaml + +%description ocaml +Ocaml extension for graphviz. +%endif + +%package perl +Summary: Perl extension for graphviz +Requires: %{name} = %{version}-%{release} +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description perl +Perl extension for graphviz. + +%if %{PHP} +%package php +Summary: PHP extension for graphviz +Requires: %{name} = %{version}-%{release} +Requires: php(zend-abi) = %{?php_zend_api}%{?!php_zend_api:UNDEFINED} +Requires: php(api) = %{?php_core_api}%{?!php_core_api:UNDEFINED} + +%description php +PHP extension for graphviz. +%endif + +%if %{with python2} +%package python2 +Summary: Python extension for graphviz +Requires: %{name} = %{version}-%{release} +# Manually add provides that would be generated automatically if .egg-info was present +Provides: python2dist(gv) = %{version} +Provides: python%{python2_version}dist(gv) = %{version} +# Remove before F30 +Provides: %{name}-python = %{version}-%{release} +Provides: %{name}-python%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python < 2.40.1-25 +Obsoletes: python2-%{name} < 2.40.1-25 + +%description python2 +Python extension for graphviz. +%endif + +%package python3 +Summary: Python 3 extension for graphviz +Requires: %{name} = %{version}-%{release} +# Manually add provides that would be generated automatically if .egg-info was present +Provides: python3dist(gv) = %{version} +Provides: python%{python3_version}dist(gv) = %{version} + +%description python3 +Python 3 extension for graphviz. + +%if %{ARRRR} +%package R +Summary: R extension for graphviz +Requires: %{name} = %{version}-%{release}, R-core + +%description R +R extension for graphviz. +%endif + +%package ruby +Summary: Ruby extension for graphviz +Requires: %{name} = %{version}-%{release}, ruby + +%description ruby +Ruby extension for graphviz. + +%if %{SHARP} +%package sharp +Summary: C# extension for graphviz +Requires: %{name} = %{version}-%{release}, mono-core + +%description sharp +C# extension for graphviz. +%endif + +%package tcl +Summary: Tcl extension & tools for graphviz +Requires: %{name} = %{version}-%{release}, tcl >= 8.3, tk + +%description tcl +Various tcl packages (extensions) for the graphviz tools. + +%prep +%setup -q +%patch0 -p1 -b .dotty-menu-fix +%patch1 -p1 -b .coverity-scan-fixes +%patch2 -p1 -b .man-fix +%patch3 -p1 -b .CVE-2020-18032 +%patch4 -p1 -b .gvpack-neato-static + +# Attempt to fix rpmlint warnings about executable sources +find -type f -regex '.*\.\(c\|h\)$' -exec chmod a-x {} ';' + +%build +./autogen.sh +# Hack in the java includes we need +sed -i '/JavaVM.framework/!s/JAVA_INCLUDES=/JAVA_INCLUDES=\"_MY_JAVA_INCLUDES_\"/g' configure +sed -i 's|_MY_JAVA_INCLUDES_|-I%{java_home}/include/ -I%{java_home}/include/linux/|g' configure +# Rewrite config_ruby.rb to work with Ruby 2.2 +sed -i 's|expand(|expand(RbConfig::|' config/config_ruby.rb +sed -i 's|sitearchdir|vendorarchdir|' config/config_ruby.rb + +# get the path to search for ruby/config.h to CPPFLAGS, so that configure can find it +export CPPFLAGS=-I`ruby -e "puts File.join(RbConfig::CONFIG['includedir'], RbConfig::CONFIG['sitearch'])" || echo /dev/null` +%configure --with-x --disable-static --disable-dependency-tracking \ + --without-mylibgd --with-ipsepcola --with-pangocairo \ + --with-gdk-pixbuf --with-visio --disable-silent-rules \ +%if ! %{LASI} + --without-lasi \ +%endif +%if ! %{GTS} + --without-gts \ +%endif +%if ! %{SHARP} + --disable-sharp \ +%endif +%if ! %{OCAML} + --disable-ocaml \ +%endif +%if ! %{MING} + --without-ming \ +%endif +%if ! %{ARRRR} + --disable-r \ +%endif +%if ! %{DEVIL} + --without-devil \ +%endif +%if ! %{QTAPPS} + --without-qt \ +%endif +%if %{GUILE} + --enable-guile=yes +%else + --enable-guile=no +%endif + +# drop rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-strict-overflow %{?FFSTORE}" \ + CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-strict-overflow %{?FFSTORE}" + +%install +make DESTDIR=%{buildroot} \ + docdir=%{buildroot}%{_docdir}/%{name} \ + pkgconfigdir=%{_libdir}/pkgconfig \ + install +find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' +chmod -x %{buildroot}%{_datadir}/%{name}/lefty/* + +# Move docs to the right place +mkdir -p %{buildroot}%{_docdir}/%{name} +mv %{buildroot}%{_datadir}/%{name}/doc/* %{buildroot}%{_docdir}/%{name} + +# Install README +install -m0644 README %{buildroot}%{_docdir}/%{name} + +%if %{PHP} +# PHP configuration file +%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d +%{__cat} << __EOF__ > %{buildroot}%{_sysconfdir}/php.d/%{ini_name} +; 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 {} ';' + +# Move demos to doc +mv %{buildroot}%{_datadir}/%{name}/demo %{buildroot}%{_docdir}/%{name}/ + +# Rename python demos to prevent byte compilation +find %{buildroot}%{_docdir}/%{name}/demo -type f -name "*.py" -exec mv {} {}.demo ';' + +# Remove dot_builtins, on demand loading should be sufficient +rm -f %{buildroot}%{_bindir}/dot_builtins + +# Remove metadata from generated PDFs +pushd %{buildroot}%{_docdir}/%{name}/pdf +for f in prune lneato.1 lefty.1 gvgen.1 gc.1 dotty.1 dot.1 cluster.1 +do + if [ -f $f.pdf ] + then +# ugly, but there is probably no better solution + qpdf --empty --static-id --pages $f.pdf -- $f.pdf.$$ + mv -f $f.pdf.$$ $f.pdf + fi +done +popd + +%if %{with python2} +install -pD tclpkg/gv/.libs/libgv_python2.so %{buildroot}%{python2_sitearch}/_gv.so +install -p tclpkg/gv/gv.py %{buildroot}%{python2_sitearch}/gv.py +%endif + +# python 3 +install -pD tclpkg/gv/.libs/libgv_python3.so %{buildroot}%{python3_sitearch}/_gv.so +install -p tclpkg/gv/gv.py %{buildroot}%{python3_sitearch}/gv.py + +# Ghost plugins config +touch %{buildroot}%{_libdir}/graphviz/config%{pluginsver} + +# Fix lua file placement for flatpak +if [ "%{_prefix}" != "/usr" ]; then + cp -ru %{buildroot}/usr/* %{buildroot}%{_prefix}/ + rm -rf %{buildroot}/usr/* +fi + +%check +%if %{PHP} +# Minimal load test of php extension +LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ +php --no-php-ini \ + --define extension_dir=%{buildroot}%{_libdir}/graphviz/php/ \ + --define extension=libgv_php.so \ + --modules | grep gv +%endif + +# upstream test suite +# testsuite seems broken, disabling it for now +# cd rtest +# make rtest + +%post +%{?ldconfig} +%{_bindir}/dot -c 2>/dev/null || : + +%ldconfig_postun + +%if %{DEVIL} +# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* +%post devil +%{_bindir}/dot -c 2>/dev/null || : +%{?ldconfig} + +%postun devil +%{_bindir}/dot -c 2>/dev/null || : +%{?ldconfig} +%endif + +# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* +%post gd +%{_bindir}/dot -c 2>/dev/null || : +%{?ldconfig} + +%postun gd +%{_bindir}/dot -c 2>/dev/null || : +%{?ldconfig} + +%if %{MING} +# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* +%post ming +%{_bindir}/dot -c 2>/dev/null || : +%{?ldconfig} + +%postun ming +%{_bindir}/dot -c 2>/dev/null || : +%{?ldconfig} +%endif + +%files +%doc %{_docdir}/%{name} +%{_bindir}/* +%dir %{_libdir}/graphviz +%{_libdir}/*.so.* +%{_libdir}/graphviz/*.so.* +%{_mandir}/man1/*.1* +%{_mandir}/man7/*.7* +%dir %{_datadir}/graphviz +%exclude %{_docdir}/%{name}/html +%exclude %{_docdir}/%{name}/pdf +%exclude %{_docdir}/%{name}/demo +%{_datadir}/graphviz/lefty +%{_datadir}/graphviz/gvpr +%ghost %{_libdir}/graphviz/config%{pluginsver} + +%if %{QTAPPS} +%{_datadir}/graphviz/gvedit +%endif + +%exclude %{_libdir}/graphviz/*/* +%exclude %{_libdir}/graphviz/libgvplugin_gd.* +%if %{DEVIL} +%exclude %{_libdir}/graphviz/libgvplugin_devil.* +%endif +%if %{MING} +%exclude %{_libdir}/graphviz/libgvplugin_ming.* +%exclude %{_libdir}/graphviz/*fdb +%endif + +%files devel +%{_includedir}/graphviz +%{_libdir}/*.so +%{_libdir}/graphviz/*.so +%{_libdir}/pkgconfig/*.pc +%{_mandir}/man3/*.3.* + +%if %{DEVIL} +%files devil +%{_libdir}/graphviz/libgvplugin_devil.so.* +%endif + +%files doc +%doc %{_docdir}/%{name}/html +%doc %{_docdir}/%{name}/pdf +%doc %{_docdir}/%{name}/demo + +%files gd +%{_libdir}/graphviz/libgvplugin_gd.so.* + +%files graphs +%dir %{_datadir}/graphviz +%{_datadir}/graphviz/graphs + +%if %{GUILE} +%files guile +%{_libdir}/graphviz/guile/ +%{_mandir}/man3/gv.3guile* +%endif + +%files java +%{_libdir}/graphviz/java/ +%{_mandir}/man3/gv.3java* + +%files lua +%{_libdir}/graphviz/lua/ +%{_libdir}/lua*/* +%{_mandir}/man3/gv.3lua* + +%if %{MING} +%files ming +%{_libdir}/graphviz/libgvplugin_ming.so.* +%{_libdir}/graphviz/*fdb +%endif + +%if %{OCAML} +%files ocaml +%{_libdir}/graphviz/ocaml/ +%{_mandir}/man3/gv.3ocaml* +%endif + +%files perl +%{_libdir}/graphviz/perl/ +%{_libdir}/perl*/* +%{_mandir}/man3/gv.3perl* + +%if %{PHP} +%files php +%config(noreplace) %{_sysconfdir}/php.d/%{ini_name} +%{_libdir}/graphviz/php/ +%{php_extdir}/gv.so +%{_datadir}/php*/* +%{_mandir}/man3/gv.3php* +%endif + +%if %{with python2} +%files python2 +%{python2_sitearch}/* +%{_mandir}/man3/gv.3python* +%endif + +%files python3 +%{python3_sitearch}/* +%{_mandir}/man3/gv.3python* + +%if %{ARRRR} +%files R +%{_libdir}/graphviz/R/ +%{_mandir}/man3/gv.3r.* +%endif + +%files ruby +%{_libdir}/graphviz/ruby/ +%{_libdir}/*ruby*/* +%{_mandir}/man3/gv.3ruby* + +%if %{SHARP} +%files sharp +%{_libdir}/graphviz/sharp/ +%{_mandir}/man3/gv.3sharp* +%endif + +%files tcl +%{_libdir}/graphviz/tcl/ +%{_libdir}/tcl*/* +# hack to include gv.3tcl only if available +# always includes tcldot.3tcl, gdtclft.3tcl +%{_mandir}/man3/*.3tcl* + +%changelog +* Thu Jan 20 2022 Jaroslav Škarvada - 2.44.0-25 +- Fixed gvpack to run + Resolves: rhbz#2029565 + +* Mon Aug 09 2021 Mohan Boddu - 2.44.0-24 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Thu Jun 3 2021 Jaroslav Škarvada - 2.44.0-23 +- Fixed buffer overflow in lib/common/shapes.c + Resolves: CVE-2020-18032 + +* Mon May 24 2021 Jaroslav Škarvada - 2.44.0-22 +- Release bump to workaround OSCI problems + Related: rhbz#1955686 + +* Mon May 24 2021 Jaroslav Škarvada - 2.44.0-21 +- Also dropped tmsize10.clo file from the tarball (repacked tarball) + Related: rhbz#1955686 + +* Wed May 12 2021 Jaroslav Škarvada - 2.44.0-20 +- Dropped unneeded tmsize10.clo file + Resolves: rhbz#1955686 + +* Fri May 7 2021 Jaroslav Škarvada - 2.44.0-19 +- Conditionalized guile support + Resolves: rhbz#1953974 +- Updated RHEL macros + Resolves: rhbz#1957653 + +* Thu Apr 15 2021 Mohan Boddu - 2.44.0-18 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 2.44.0-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Jan 07 2021 Mamoru TASAKA - 2.44.0-16 +- F-34: rebuild against ruby 3.0 + +* Wed Nov 25 2020 Miro Hrončok - 2.44.0-15 +- Disable Python 2 in ELN + +* Tue Sep 01 2020 Richard W.M. Jones - 2.44.0-14 +- OCaml 4.11.1 rebuild + +* Fri Aug 21 2020 Richard W.M. Jones - 2.44.0-13 +- OCaml 4.11.0 rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 2.44.0-12 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.44.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Jiri Vanek - 2.44.0-10 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Thu Jun 25 2020 Jitka Plesnikova - 2.44.0-9 +- Perl 5.32 rebuild + +* Tue May 26 2020 Miro Hrončok - 2.44.0-8 +- Rebuilt for Python 3.9 + +* Wed May 20 2020 Jaroslav Škarvada - 2.44.0-7 +- Also fixed man page typo + +* Wed May 20 2020 Jaroslav Škarvada - 2.44.0-6 +- Fixed man pages according to man page scan + +* Mon May 04 2020 Richard W.M. Jones - 2.44.0-5 +- OCaml 4.11.0+dev2-2020-04-22 rebuild + +* Tue Apr 21 2020 Richard W.M. Jones - 2.44.0-4 +- OCaml 4.11.0 pre-release attempt 2 + +* Fri Apr 17 2020 Richard W.M. Jones - 2.44.0-3 +- OCaml 4.11.0 pre-release + +* Wed Apr 8 2020 Jaroslav Škarvada - 2.44.0-2 +- Fixed multiple packaging of manual pages + +* Wed Apr 8 2020 Jaroslav Škarvada - 2.44.0-1 +- New version + Resolves: rhbz#1822101 + +* Mon Apr 6 2020 Jaroslav Škarvada - 2.42.4-1 +- New version + Resolves: rhbz#1821045 +- Switched to bz2 archives +- Dropped ocaml-allow-const-cast patch (upstreamed) + +* Thu Apr 02 2020 Richard W.M. Jones - 2.42.2-10 +- Update all OCaml dependencies for RPM 4.16. + +* Wed Feb 26 2020 Richard W.M. Jones - 2.42.2-9 +- OCaml 4.10.0 final. + +* Wed Jan 29 2020 Fedora Release Engineering - 2.42.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Jan 19 2020 Mamoru TASAKA - 2.42.2-7 +- F-32: rebuild against ruby27 + +* Sat Jan 18 2020 Richard W.M. Jones - 2.42.2-6 +- Bump release and rebuild. + +* Sat Jan 18 2020 Richard W.M. Jones - 2.42.2-5 +- OCaml 4.10.0+beta1 rebuild. + +* Fri Dec 06 2019 Richard W.M. Jones - 2.42.2-4 +- OCaml 4.09.0 (final) rebuild. + +* Thu Oct 31 2019 Miro Hrončok - 2.42.2-3 +- Remove Python 2 package on Fedora 32+ + +* Fri Oct 04 2019 Remi Collet - 2.42.2-2 +- rebuild for https://fedoraproject.org/wiki/Changes/php74 + +* Wed Oct 2 2019 Jaroslav Škarvada - 2.42.2-1 +- New version + Resolves: rhbz#1753061 +- Dropped visio, python3, CVE-2018-10196, CVE-2019-11023, and + swig4-updated-language-options patches (all upstreamed) +- Simplified python bindings build process + +* Wed Oct 02 2019 Orion Poplawski - 2.40.1-58 +- Rebuild for lasi 1.1.3 soname bump + +* Mon Aug 19 2019 Miro Hrončok - 2.40.1-57 +- Rebuilt for Python 3.8 + +* Fri Aug 16 2019 Richard W.M. Jones - 2.40.1-56 +- OCaml 4.08.1 (final) rebuild. + +* Fri Aug 09 2019 Gwyn Ciesla - 2.40.1-55 +- Glob remaining man pages. + +* Wed Jul 31 2019 Richard W.M. Jones - 2.40.1-54 +- OCaml 4.08.1 (rc2) rebuild. + +* Thu Jul 25 2019 Fedora Release Engineering - 2.40.1-53 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 27 2019 Richard W.M. Jones - 2.40.1-52 +- OCaml 4.08.0 (final) rebuild. + +* Tue Jun 04 2019 Jitka Plesnikova - 2.40.1-51 +- Perl 5.30 re-rebuild updated packages + +* Mon Jun 3 2019 Jaroslav Škarvada - 2.40.1-50 +- Fixed FTBFS with python-3.8 + +* Sat Jun 01 2019 Jitka Plesnikova - 2.40.1-49 +- Perl 5.30 rebuild + +* Tue May 7 2019 Jaroslav Škarvada - 2.40.1-48 +- Fixed FTBFS caused by swig-4.0.0 + Resolves: rhbz#1707435 + +* Mon Apr 29 2019 Richard W.M. Jones - 2.40.1-47 +- OCaml 4.08.0 (beta 3) rebuild. + +* Wed Apr 24 2019 Jaroslav Škarvada - 2.40.1-46 +- Updated CVE-2019-11023 patch + Related: CVE-2019-11023 + +* Wed Apr 24 2019 Jaroslav Škarvada - 2.40.1-45 +- Fixed null pointer dereference in function agroot() + Resolves: CVE-2019-11023 + +* Fri Feb 01 2019 Fedora Release Engineering - 2.40.1-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jan 21 2019 Vít Ondruch - 2.40.1-43 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6 + +* Mon Jan 14 2019 Björn Esser - 2.40.1-42 +- Rebuilt for libcrypt.so.2 (#1666033) + +* Fri Dec 7 2018 Jaroslav Škarvada - 2.40.1-41 +- Fixed some issues found by coverity scan + +* Thu Oct 18 2018 Jaroslav Škarvada - 2.40.1-40 +- Clarified license tag + +* Mon Oct 15 2018 Jaroslav Škarvada - 2.40.1-39 +- Dropped rpath + +* Thu Oct 11 2018 Remi Collet - 2.40.1-38 +- Rebuild for https://fedoraproject.org/wiki/Changes/php73 + +* Wed Sep 26 2018 Kevin Fenzi - 2.40.1-37 +- Don't fail on post scriptlet failures. + +* Wed Jul 18 2018 Jaroslav Škarvada - 2.40.1-36 +- Fixed ghostscript requirements + +* Wed Jul 18 2018 Jaroslav Škarvada - 2.40.1-35 +- Conditionalized php support + +* Tue Jul 17 2018 Jaroslav Škarvada - 2.40.1-34 +- Fixed menu in dotty + Resolves: rhbz#1505230 + +* Fri Jul 13 2018 Fedora Release Engineering - 2.40.1-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jul 12 2018 Jaroslav Škarvada - 2.40.1-32 +- Updated source URL + +* Wed Jul 11 2018 Richard W.M. Jones - 2.40.1-31 +- OCaml 4.07.0 (final) rebuild. + +* Tue Jul 03 2018 Petr Pisar - 2.40.1-30 +- Perl 5.28 rebuild + +* Fri Jun 29 2018 Jitka Plesnikova - 2.40.1-29 +- Perl 5.28 rebuild + +* Tue Jun 19 2018 Richard W.M. Jones - 2.40.1-28 +- OCaml 4.07.0-rc1 rebuild. + +* Tue Jun 19 2018 Miro Hrončok - 2.40.1-27 +- Rebuilt for Python 3.7 + +* Thu May 17 2018 Jaroslav Škarvada - 2.40.1-26 +- Fixed CVE-2018-10196 + +* Thu May 3 2018 Jaroslav Škarvada - 2.40.1-25 +- Made python2 package optional + +* Wed May 2 2018 Jaroslav Škarvada - 2.40.1-24 +- Added support for python3 + +* Thu Apr 26 2018 Richard W.M. Jones - 2.40.1-23 +- OCaml 4.07.0-beta2 rebuild. + +* Sat Apr 14 2018 Zbigniew Jędrzejewski-Szmek - 2.40.1-22 +- Rename python2 subpackage to graphviz-python2, because + there is intent to package python-graphviz, which is a separate project + from graphviz. + +* Thu Mar 8 2018 Jaroslav Škarvada - 2.40.1-21 +- Dropped libgnomeui-devel requirement, libgnomeui support has been + dropped long time ago in upstream + +* Wed Feb 07 2018 Fedora Release Engineering - 2.40.1-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Feb 1 2018 Jaroslav Škarvada - 2.40.1-19 +- Rebuilt with urw-base35-fonts + +* Sat Jan 20 2018 Björn Esser - 2.40.1-18 +- Rebuilt for switch to libxcrypt + +* Tue Jan 16 2018 Iryna Shcherbina - 2.40.1-17 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Mon Jan 15 2018 Jaroslav Škarvada - 2.40.1-16 +- Switched to libgs-devel + Resolves: rhbz#1534666 +- Made the build verbose (without silent rules) + +* Fri Jan 05 2018 Mamoru TASAKA - 2.40.1-15 +- F-28: rebuild for ruby25 + +* Wed Nov 08 2017 Richard W.M. Jones - 2.40.1-14 +- OCaml 4.06.0 rebuild. + +* Wed Oct 04 2017 Remi Collet - 2.40.1-13 +- rebuild for https://fedoraproject.org/wiki/Changes/php72 + +* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek - 2.40.1-12 +- Add Provides for the old name without %%_isa + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.40.1-11 +- Python 2 binary package renamed to python2-graphviz + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Mon Aug 07 2017 Richard W.M. Jones - 2.40.1-10 +- OCaml 4.05.0 rebuild. + +* Wed Aug 02 2017 Fedora Release Engineering - 2.40.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.40.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 26 2017 Richard W.M. Jones - 2.40.1-7 +- OCaml 4.04.2 rebuild. + +* Sun Jun 04 2017 Jitka Plesnikova - 2.40.1-6 +- Perl 5.26 rebuild + +* Fri May 12 2017 Richard W.M. Jones - 2.40.1-5 +- OCaml 4.04.1 rebuild. + +* Fri Feb 10 2017 Fedora Release Engineering - 2.40.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Jan 16 2017 Jaroslav Škarvada - 2.40.1-3 +- Re-enabled PHP support + +* Thu Jan 12 2017 Mamoru TASAKA - 2.40.1-2 +- F-26: rebuild for ruby24 + +* Mon Jan 2 2017 Jaroslav Škarvada - 2.40.1-1 +- New version + Resolves: rhbz#1406954 +- Dropped rtest-fix, find-fix, ocaml-fix-ints, format-string, + vimdot-vi, rbconfig, gs-9.18-fix patches (all upstreamed) +- Defuzzified visio patch + +* Sat Nov 05 2016 Richard W.M. Jones - 2.38.0-40 +- Rebuild for OCaml 4.04.0. + +* Fri Oct 14 2016 Jaroslav Škarvada - 2.38.0-39 +- Fixed build with ghostscript-9.18+ + Resolves: rhbz#1384016 + +* Tue Jul 19 2016 Fedora Release Engineering - 2.38.0-38 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Fri Jul 15 2016 Jaroslav Škarvada - 2.38.0-37 +- Conditionalized php support and disabled it due to rhbz#1356985 + +* Fri Jul 15 2016 Jaroslav Škarvada - 2.38.0-36 +- Rebuilt for php + +* Tue May 17 2016 Jitka Plesnikova - 2.38.0-35 +- Perl 5.24 rebuild + +* Fri Feb 26 2016 Than Ngo - 2.38.0-34 +- rebuilt + +* Wed Feb 03 2016 Fedora Release Engineering - 2.38.0-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Jan 12 2016 Vít Ondruch - 2.38.0-32 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3 + +* Tue Dec 1 2015 Tom Callaway - 2.38.0-31 +- rebuild for libvpx 1.5.0 + +* Tue Jul 28 2015 Richard W.M. Jones - 2.38.0-30 +- OCaml 4.02.3 rebuild. + +* Wed Jun 24 2015 Richard W.M. Jones - 2.38.0-29 +- ocaml-4.02.2 final rebuild. + +* Wed Jun 17 2015 Richard W.M. Jones - 2.38.0-28 +- ocaml-4.02.2 rebuild. + +* Wed Jun 17 2015 Fedora Release Engineering - 2.38.0-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Jun 15 2015 Jaroslav Škarvada - 2.38.0-26 +- Fixed built with visio (by visio patch) +- Enabled visio support + Resolves: rhbz#1231896 + +* Sat Jun 06 2015 Jitka Plesnikova - 2.38.0-25 +- Perl 5.22 rebuild + +* Fri May 29 2015 Peter Robinson 2.38.0-24 +- Fix mono directive orders + +* Mon May 18 2015 Peter Robinson 2.38.0-23 +- Rebuild (mono4) + +* Sat May 02 2015 Kalev Lember - 2.38.0-22 +- Rebuilt for GCC 5 C++11 ABI change + +* Mon Apr 6 2015 Tom Callaway - 2.38.0-21 +- rebuild for libvpx 1.4.0 + +* Tue Feb 17 2015 Richard W.M. Jones - 2.38.0-20 +- ocaml-4.02.1 rebuild. + +* Sat Jan 17 2015 Mamoru TASAKA - 2.38.0-19 +- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 +- Fix obsolete Config:: usage + +* Fri Jan 16 2015 Jaroslav Škarvada - 2.38.0-18 +- Make vimdot to work with vi, dropped explicit vim-ehnanced requirement + Resolves: rhbz#1182764 + +* Tue Nov 25 2014 Jaroslav Škarvada - 2.38.0-17 +- Fixed format string vulnerability + Resolves: rhbz#1167868 + +* Tue Nov 11 2014 Jaroslav Škarvada - 2.38.0-16 +- Added ISO8859-1 fonts as requirement + Resolves: rhbz#1058323 +- Fixed spurious whitespaces + +* Wed Sep 03 2014 Jitka Plesnikova - 2.38.0-15 +- Perl 5.20 rebuild + +* Sat Aug 30 2014 Richard W.M. Jones - 2.38.0-14 +- ocaml-4.02.0 final rebuild. +- Add patch to fix build with OCaml > 4.02.0 and Fedora 22. + +* Thu Aug 28 2014 Jitka Plesnikova - 2.38.0-12 +- Perl 5.20 rebuild + +* Sat Aug 23 2014 Richard W.M. Jones - 2.38.0-11 +- ocaml-4.02.0+rc1 rebuild. + +* Sat Aug 16 2014 Fedora Release Engineering - 2.38.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jul 14 2014 Jaroslav Škarvada - 2.38.0-9 +- Rebuilt for new ocaml + +* Thu Jun 19 2014 Remi Collet - 2.38.0-8 +- rebuild for https://fedoraproject.org/wiki/Changes/Php56 +- add numerical prefix to extension configuration file +- cleanup filter (no more needed in F20+) + +* Sat Jun 07 2014 Fedora Release Engineering - 2.38.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Jun 3 2014 Peter Robinson 2.38.0-6 +- Re-enable R bindings on aarch64, we now have it + +* Wed May 28 2014 Jaroslav Škarvada - 2.38.0-5 +- Fixed crash by adding additional check to findVertical/Horizontal functions + (by find-fix patch provided by Mattias Ellert ) + Resolves: rhbz#1095419 + +* Tue May 20 2014 Jaroslav Škarvada - 2.38.0-4 +- Rebuilt for tcl/tk8.6 + +* Thu Apr 24 2014 Vít Ondruch - 2.38.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1 + +* Tue Apr 15 2014 Richard W.M. Jones - 2.38.0-2 +- Remove ocaml_arches macro (RHBZ#1087794). + +* Mon Apr 14 2014 Jaroslav Škarvada - 2.38.0-1 +- New version + Resolves: rhbz#1052160 +- Dropped testsuite-sigsegv-fix, rtest-errout-fix, lefty-getaddrinfo, + CVE-2014-0978-CVE-2014-1235, CVE-2014-1236, ppc64le-support + patches (all upstreamed) +- Added rtest-fix patch (sent upstream) +- Disabled test suite (for now) + +* Wed Mar 19 2014 Jaroslav Škarvada - 2.34.0-9 +- Added ppc64le support + Resolves: rhbz#1078464 + +* Thu Jan 9 2014 Jaroslav Škarvada - 2.34.0-8 +- Prevent possible buffer overflow in yyerror() + Resolves: CVE-2014-1235 +- Fix possible buffer overflow problem in chkNum of scanner + Resolves: CVE-2014-1236 + +* Tue Jan 7 2014 Jaroslav Škarvada - 2.34.0-7 +- Fixed overflow in yyerror + Resolves: CVE-2014-0978 + +* Sat Dec 28 2013 Peter Robinson 2.34.0-6 +- Disable R bindings on aarch64 for the moment + +* Thu Dec 19 2013 Peter Robinson 2.34.0-5 +- No mono on aarch64 + +* Thu Oct 31 2013 Jaroslav Škarvada - 2.34.0-4 +- Removed metadata from generated PDFs + Related: rhbz#881173 + +* Thu Oct 31 2013 Jaroslav Škarvada - 2.34.0-3 +- Fixed multilib conflicts + Rewrote lefty IO lib to use getaddrinfo instead of gethostbyname + (by lefty-getaddrinfo patch) + Resolves: rhbz#881173 + +* Mon Sep 16 2013 Jaroslav Škarvada - 2.34.0-2 +- Added explicit dependency on vim (required by vimdot) + +* Mon Sep 16 2013 Jaroslav Škarvada - 2.34.0-1 +- New version + Resolves: rhbz#1005957 +- Dropped perl-fix patch (upstreamed) + +* Sat Sep 14 2013 Richard W.M. Jones - 2.32.0-2 +- Rebuild for OCaml 4.01.0. + +* Mon Aug 19 2013 Jaroslav Škarvada - 2.32.0-1 +- New version + Resolves: rhbz#991752 +- Dropped guile2-fix, cgraph, lua-52, smyrna-doc-opt, gv2gml-options-fix, + lefty-help, prune-help, man-fix patches (all upstreamed) + +* Tue Aug 6 2013 Jaroslav Škarvada - 2.30.1-14 +- Used unversioned doc directory + Resolves: rhbz#993803 + +* Mon Aug 5 2013 Jaroslav Škarvada - 2.30.1-13 +- Fixed FTBFS related to perl config + Resolves: rhbz#991915 + +* Sat Aug 03 2013 Fedora Release Engineering - 2.30.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 2.30.1-11 +- Perl 5.18 rebuild + +* Fri Jul 12 2013 Jaroslav Škarvada - 2.30.1-10 +- Various man and built-in help fixes + +* Tue Jun 25 2013 Jaroslav Škarvada - 2.30.1-9 +- Fixed handling of the libdir/graphviz directory + +* Tue Jun 11 2013 Remi Collet - 2.30.1-8 +- rebuild for new GD 2.1.0 + +* Wed May 15 2013 Tom Callaway - 2.30.1-7 +- rebuild for lua 5.2 + +* Tue Apr 23 2013 Tom Callaway - 2.30.1-6 +- patch libgvc.pc.in to refer to -lcgraph (-lgraph is dead and gone) + +* Thu Apr 11 2013 Tom Callaway - 2.30.1-5 +- rebuild for R3 (may not be needed, but better safe than sorry) + +* Mon Mar 25 2013 Jaroslav Škarvada - 2.30.1-4 +- Added support for aarch64 + Resolves: rhbz#925487 + +* Fri Mar 22 2013 Remi Collet - 2.30.1-3 +- rebuild for http://fedoraproject.org/wiki/Features/Php55 +- add explicit BuildRequires: perl-Carp (workaround) + +* Thu Mar 14 2013 Vít Ondruch - 2.30.1-2 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Fri Feb 15 2013 Jaroslav Škarvada - 2.30.1-1 +- New version + Resolves: rhbz#911520 + Resolves: rhbz#704529 + +* Thu Jan 24 2013 Jaroslav Škarvada - 2.30.0-3 +- Used ocaml_arches macros to enable ocaml on supported arches + +* Fri Jan 18 2013 Adam Tkac - 2.30.0-2 +- rebuild due to "jpeg8-ABI" feature drop + +* Mon Jan 14 2013 Jaroslav Škarvada - 2.30.0-1 +- New version + Resolves: rhbz#895027 +- Dropped guile-detect, ocaml4 patches (not needed) +- Fixed bogus date in changelog (guessing) + +* Wed Jan 9 2013 Jaroslav Škarvada - 2.28.0-26 +- Rebuilt with -fno-strict-overflow to workaround the overflow problem + (upstream ticket: http://www.graphviz.org/mantisbt/view.php?id=2244) +- The dot_builtins was removed rather then excluded to fix the dangling + symlinks problem in debuginfo + +* Fri Dec 21 2012 Adam Tkac - 2.28.0-25 +- rebuild against new libjpeg + +* Wed Oct 17 2012 Jaroslav Škarvada - 2.28.0-24 +- Rebuilt for new ocaml + +* Fri Aug 17 2012 Jaroslav Škarvada - 2.28.0-23 +- Silenced 'dot -c' errors/warnings in post/postun +- Do not remove dot config in plugins post/postun + +* Fri Aug 17 2012 Jaroslav Škarvada - 2.28.0-22 +- dot_builtins no longer installed (lowers implicit deps) +- Fixed post/postuns for plugins +- Removed -ffast-math, added -ffloat-store (on i386) to fix arithmetic on i386 + +* Thu Jul 19 2012 Fedora Release Engineering - 2.28.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Jun 10 2012 Petr Pisar - 2.28.0-20 +- Perl 5.16 rebuild + +* Sat Jun 9 2012 Richard W.M. Jones - 2.28.0-19 +- Rebuild for OCaml 4.00.0. +- Enable OCaml on arm and ppc64, since there are working native compilers + for both. + +* Wed May 23 2012 Jaroslav Škarvada - 2.28.0-18 +- Improved docs handling code in spec to be backward compatible with older RPM + +* Tue May 22 2012 Jaroslav Škarvada - 2.28.0-17 +- All docs are now installed into /usr/share/doc/graphviz-%%{version} +- Demos packaged as docs not to automatically bring in unnecessary deps + +* Tue Feb 28 2012 Fedora Release Engineering - 2.28.0-16 +- Rebuilt for c++ ABI breakage + +* Thu Feb 16 2012 Peter Robinson - 2.28.0-15 +- fix CPPFLAGS export so it doesn't cause issues on ARM + +* Mon Feb 06 2012 Vít Ondruch - 2.28.0-14 +- Rebuilt for Ruby 1.9.3. + +* Wed Jan 18 2012 Remi Collet - 2.28.0-13 +- build against php 5.4.0 +- add filter to fix private-shared-object-provides +- add %%check for php extension + +* Sun Jan 08 2012 Richard W.M. Jones - 2.28.0-12 +- Rebuild for OCaml 3.12.1. + +* Thu Dec 8 2011 Jaroslav Škarvada - 2.28.0-11 +- Added conditionals for ARRRR, DEVIL, QTAPPS (gvedit), GTS, LASI +- Fixed conditionals for SHARP, OCAML +- Built with gts, ghostscript, rsvg and lasi + Resolves: rhbz#760926 +- Disabled gvedit + Resolves: rhbz#751807 +- Fixed rpmlint warnings about executable sources + +* Wed Nov 9 2011 Tom Callaway - 2.28.0-10 +- rebuild for R 2.14.0 + +* Thu Jul 21 2011 Petr Sabata - 2.28.0-9 +- Perl mass rebuild + +* Wed Jul 20 2011 Petr Sabata - 2.28.0-8 +- Perl mass rebuild + +* Thu Jul 07 2011 Jaroslav Škarvada - 2.28.0-7 +- Added gd as devel requirement + +* Fri Jun 17 2011 Marcela Mašláňová - 2.28.0-6 +- Perl mass rebuild + +* Fri Jun 10 2011 Marcela Mašláňová - 2.28.0-5 +- Perl 5.14 mass rebuild + +* Thu May 19 2011 Jaroslav Škarvada - 2.28.0-4 +- Fixed detection of guile 2.x + Resolves: rhbz#704529 + +* Fri May 13 2011 Jaroslav Škarvada - 2.28.0-3 +- Corrected license tag, the graphviz license is now EPL + +* Fri May 13 2011 Jaroslav Škarvada - 2.28.0-2 +- Recompiled with -fno-strict-aliasing in CXXFLAGS + +* Tue May 10 2011 Jaroslav Škarvada - 2.28.0-1 +- New version 2.28.0 +- Added perl-ExtUtils-Embed to BuildRequires, it is now required +- Fixed build failure due to change in php_zend_api macro type +- Removed sparc64, gtk-progname, doc-index-fix, ppc-darwinhack + patches (all were upstreamed) + +* Thu Mar 03 2011 Oliver Falk - 2.26.3-5 +- Disable mono and ocaml on alpha + +* Tue Feb 22 2011 Jaroslav Škarvada - 2.26.3-4 +- Added urw-fonts to requires (#677114) + +* Wed Feb 09 2011 Fedora Release Engineering - 2.26.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jan 21 2011 Karsten Hopp 2.26.3-2 +- fix hack for powerpc-darwin8 in configure + +* Thu Jan 06 2011 Jaroslav Škarvada - 2.26.3-1 +- New version (#580017) +- Fixed gtk plugin program-name (#640671, gtk-progname patch) +- Fixed broken links in doc index (#642536, doc-index-fix patch) +- Fixed SIGSEGVs on testsuite (#645703, testsuite-sigsegv-fix patch) +- Testsuite now do diff check also in case of err output (#645703, + rtest-errout-fix patch) +- Testsuite enabled on all arches (#645703) +- Added urw-fonts to BuildRequires +- Compiled with -fno-strict-aliasing +- Fixed rpmlint warnings on spec file +- Removed unused patches + +* Wed Jul 21 2010 David Malcolm - 2.26.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Jun 01 2010 Marcela Maslanova - 2.26.0-3 +- Mass rebuild with perl-5.12.0 + +* Mon Jan 04 2010 Patrick "Jima" Laughton 2.26.0-2 +- Rebuild for updated ocaml +- Happy new year, Fedora! + +* Fri Dec 18 2009 Patrick "Jima" Laughton 2.26.0-1 +- Updated to latest release +- Removed patches that have been applied upstream +- Fixed man page paths (mann -> man3) +- Disabled mono and ocaml for ARM (Jitesh Shah, BZ#532047) +- Disabled regression tests on sparc64 as well as ppc/ppc64 (Dennis Gilmore) + +* Fri Jul 24 2009 Fedora Release Engineering - 2.20.3-5.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Jul 13 2009 Remi Collet 2.20.3-4.1 +- fix mistake in make rtest fix + +* Mon Jul 13 2009 Remi Collet 2.20.3-4 +- rebuild for new PHP 5.3.0 ABI (20090626) +- add PHP ABI check +- use php_extdir (and don't own it) +- add php configuration file (/etc/php.d/graphviz.ini) + +* Mon Mar 2 2009 Tom "spot" Callaway 2.20.3-3 +- this spec makes baby animals cry... massively clean it up +- hack in java includes to build against openjdk +- add ruby as a BuildRequires (configure checks for /usr/bin/ruby) + +* Wed Feb 25 2009 John Ellson 2.20.3-2.2 +- fixes for swig changes + +* Tue Feb 24 2009 Fedora Release Engineering - 2.20.3-1.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 11 2009 Karsten Hopp 2.20.3-.2 +- make it build on s390, s390x (#469044) + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 2.20.3-1.1 +- Rebuild for Python 2.6 + +* Mon Nov 24 2008 Tom "spot" Callaway 2.20.3-1 +- update to 2.20.3 + +* Sat Nov 22 2008 Rex Dieter 2.16.1-0.7 +- respin (libtool) + +* Mon Jul 7 2008 Tom "spot" Callaway 2.16.1-0.6 +- fix conditional comparison + +* Tue Mar 18 2008 Tom "spot" Callaway 2.16.1-0.5 +- add Requires for versioned perl (libperl.so) + +* Tue Mar 04 2008 Patrick "Jima" Laughton 2.16.1-0.4 +- Disable R support + +* Mon Mar 03 2008 Patrick "Jima" Laughton 2.16.1-0.2 +- New upstream release (fixes BZ#433205, BZ#427376) +- Merged spec changes in from upstream +- Added patch from BZ#432683 + +* Tue Feb 12 2008 Patrick "Jima" Laughton 2.16-3.3 +- Added upstream-provided patch for building under GCC 4.3 (thanks John!) + +* Thu Jan 3 2008 Patrick "Jima" Laughton 2.16-3.2 +- Re-added tcl/tk 8.5 patch +- Tweaked ming stuff + +* Thu Jan 3 2008 Alex Lancaster - 2.16-3.1 +- Rebuild against new Tcl 8.5 + +* Wed Dec 12 2007 Patrick "Jima" Laughton 2.16-2 +- What the heck? Can't BR stuff that hasn't even gotten reviewed yet. + +* Wed Nov 28 2007 Patrick "Jima" Laughton 2.16-1 +- New upstream release +- Remove arith.h patch + +* Tue Sep 04 2007 Patrick "Jima" Laughton 2.14.1-3 +- Patch to resurrect arith.h + +* Thu Aug 23 2007 Patrick "Jima" Laughton 2.14.1-2 +- Added perl-devel to BR for F7+ + +* Wed Aug 15 2007 John Ellson +- release 2.14.1 - see ChangeLog for details +* Thu Aug 2 2007 John Ellson +- release 2.14 - see ChangeLog for details +* Fri Mar 16 2007 Stephen North +- remove xorg-X11-devel from rhel >= 5 +* Mon Dec 11 2006 John Ellson +- fix graphviz-lua description (Fedora BZ#218191) +* Tue Sep 13 2005 John Ellson +- split out language bindings into their own rpms so that + main rpm doesn't depend on (e.g.) ocaml + +* Sat Aug 13 2005 John Ellson +- imported various fixes from the Fedora-Extras .spec by Oliver Falk + +* Wed Jul 20 2005 John Ellson +- release 2.4