From 0e3c8ca2d0b2c4497b54bb3f962388937d88a034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Tue, 17 Jul 2018 11:56:10 +0200 Subject: [PATCH] Fixed menu in dotty Resolves: rhbz#1505230 --- graphviz-2.40.1-dotty-menu-fix.patch | 22 ++++++++++++++++++++++ graphviz.spec | 9 ++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 graphviz-2.40.1-dotty-menu-fix.patch diff --git a/graphviz-2.40.1-dotty-menu-fix.patch b/graphviz-2.40.1-dotty-menu-fix.patch new file mode 100644 index 0000000..8c5f34a --- /dev/null +++ b/graphviz-2.40.1-dotty-menu-fix.patch @@ -0,0 +1,22 @@ +diff --git a/cmd/dotty/dotty_ui.lefty b/cmd/dotty/dotty_ui.lefty +index a8c9116..a708c61 100644 +--- a/cmd/dotty/dotty_ui.lefty ++++ b/cmd/dotty/dotty_ui.lefty +@@ -342,7 +342,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]; +@@ -447,7 +447,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/graphviz.spec b/graphviz.spec index 8486444..b21f151 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -55,7 +55,7 @@ Name: graphviz Summary: Graph Visualization Tools Version: 2.40.1 -Release: 33%{?dist} +Release: 34%{?dist} License: EPL URL: http://www.graphviz.org/ # A bit hacking needed due to: https://gitlab.com/graphviz/graphviz/issues/1371 @@ -64,6 +64,8 @@ Patch0: graphviz-2.40.1-visio.patch Patch1: graphviz-2.40.1-python3.patch # https://gitlab.com/graphviz/graphviz/issues/1367 Patch2: graphviz-2.40.1-CVE-2018-10196.patch +# rhbz#1505230 +Patch3: graphviz-2.40.1-dotty-menu-fix.patch BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2 BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig BuildRequires: fontconfig-devel, libtool-ltdl-devel, ruby-devel, ruby, guile-devel @@ -280,6 +282,7 @@ Various tcl packages (extensions) for the graphviz tools. %patch0 -p1 -b .visio %patch1 -p1 -b .python3 %patch2 -p1 -b .CVE-2018-10196 +%patch3 -p1 -b .dotty-menu-fix # Attempt to fix rpmlint warnings about executable sources find -type f -regex '.*\.\(c\|h\)$' -exec chmod a-x {} ';' @@ -595,6 +598,10 @@ php --no-php-ini \ %{_mandir}/man3/*.3tcl* %changelog +* 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