mirror of
https://abf.rosa.ru/djam/graphviz.git
synced 2025-02-23 15:52:55 +00:00
Up to 2.42.2, switch to py3
This commit is contained in:
parent
a7deb9712f
commit
6da24fe12b
4 changed files with 24 additions and 33 deletions
4
.abf.yml
4
.abf.yml
|
@ -1,4 +1,2 @@
|
|||
removed_sources:
|
||||
graphviz-2.38.0.tar.gz: 053c771278909160916ca5464a0a98ebf034c6ef
|
||||
sources:
|
||||
graphviz-2.40.1.tar.gz: 8a44d19bcdb50df1bd8e649de472ebf868468888
|
||||
graphviz-2.42.2.tar.gz: f3efd959a03a6b2ebb9129fd29bc530f05c0f808
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
diff --git a/lib/dotgen/conc.c b/lib/dotgen/conc.c
|
||||
--- a/lib/dotgen/conc.c
|
||||
+++ b/lib/dotgen/conc.c
|
||||
@@ -159,7 +159,11 @@ static void rebuild_vlists(graph_t * g)
|
||||
|
||||
for (r = GD_minrank(g); r <= GD_maxrank(g); r++) {
|
||||
lead = GD_rankleader(g)[r];
|
||||
- if (GD_rank(dot_root(g))[r].v[ND_order(lead)] != lead) {
|
||||
+ if (lead == NULL) {
|
||||
+ agerr(AGERR, "rebuiltd_vlists: lead is null for rank %d\n", r);
|
||||
+ longjmp(jbuf, 1);
|
||||
+ }
|
||||
+ else if (GD_rank(dot_root(g))[r].v[ND_order(lead)] != lead) {
|
||||
agerr(AGERR, "rebuiltd_vlists: rank lead %s not in order %d of rank %d\n",
|
||||
agnameof(lead), ND_order(lead), r);
|
||||
longjmp(jbuf, 1);
|
|
@ -20,14 +20,16 @@
|
|||
fi
|
||||
LDFLAGS=$save_LDFLAGS
|
||||
CPPFLAGS=$save_CPPFLAGS
|
||||
--- ./tclpkg/tcldot/Makefile.am.orig 2017-10-08 11:55:28.973374397 +0300
|
||||
+++ ./tclpkg/tcldot/Makefile.am 2017-10-08 11:55:43.072841696 +0300
|
||||
@@ -97,7 +97,7 @@ endif
|
||||
diff --git a/tclpkg/tcldot/Makefile.am b/tclpkg/tcldot/Makefile.am
|
||||
index 58c88f4..e636cdc 100644
|
||||
--- a/tclpkg/tcldot/Makefile.am
|
||||
+++ b/tclpkg/tcldot/Makefile.am
|
||||
@@ -96,7 +96,7 @@ endif
|
||||
|
||||
if WITH_LIBGD
|
||||
libtcldot_builtin_la_LIBADD += $(top_builddir)/plugin/gd/libgvplugin_gd_C.la
|
||||
-libtcldot_builtin_la_LIBADD += $(GD_LIBS)
|
||||
+libtcldot_builtin_la_LIBADD += $(GDLIB_LIBS)
|
||||
+libtcldot_builtin_la_LIBADD += $(GDTCLFT_LIBS) $(GDLIB_LIBS)
|
||||
endif
|
||||
|
||||
libtcldot_builtin_la_LIBADD += $(EXPAT_LIBS) $(LIBGEN_LIBS) $(SOCKET_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS)
|
||||
libtcldot_builtin_la_LIBADD += $(EXPAT_LIBS) $(SOCKET_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS)
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
|
||||
Summary: Graph visualization tools
|
||||
Name: graphviz
|
||||
Version: 2.40.1
|
||||
Release: 3
|
||||
Version: 2.42.2
|
||||
Release: 1
|
||||
License: Common Public License
|
||||
Group: Graphics
|
||||
Url: http://www.graphviz.org
|
||||
|
@ -221,16 +221,16 @@ This package provides the PHP extension for %{name}.
|
|||
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
%package -n python-graphviz
|
||||
%package -n python3-graphviz
|
||||
Summary: Graphviz bindings for python
|
||||
Group: System/Libraries
|
||||
Obsoletes: %{mklibname graphvizpython 0} < 2.28.0-4
|
||||
BuildRequires: pkgconfig(python)
|
||||
|
||||
%description -n python-graphviz
|
||||
%description -n python3-graphviz
|
||||
This package provides the Python extension for %{name}.
|
||||
|
||||
%files -n python-graphviz
|
||||
%files -n python3-graphviz
|
||||
%{_libdir}/graphviz/python
|
||||
%{py_platsitedir}/*
|
||||
|
||||
|
@ -376,12 +376,12 @@ Static development package for %{name}.
|
|||
#-------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -qn graphviz-stable_release_%{version}
|
||||
%patch0 -p1 -b .link~
|
||||
%patch1 -p1 -b .cve~
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
./autogen.sh
|
||||
#autoreconf -fi
|
||||
%configure \
|
||||
--with-x \
|
||||
%if %{without static}
|
||||
|
@ -399,6 +399,9 @@ autoreconf -fi
|
|||
--enable-php \
|
||||
--enable-python \
|
||||
--disable-guile \
|
||||
--disable-python \
|
||||
--disable-python2 \
|
||||
--enable-python3 \
|
||||
--disable-sharp \
|
||||
--with-pangocairo \
|
||||
--with-gtk \
|
||||
|
@ -411,7 +414,11 @@ autoreconf -fi
|
|||
%endif
|
||||
--disable-dependency-tracking
|
||||
|
||||
%make TK_LIB_SPEC="-ltcl -ltk" LIBS="-lX11"
|
||||
%make TK_LIB_SPEC="-ltcl -ltk" LIBS="-lX11" \
|
||||
PYTHON_INCLUDES=`python3-config --includes` \
|
||||
PYTHON_LIBS=`python3-config --embed --libs` \
|
||||
PYTHON_INSTALL_DIR=%{python3_sitearch} \
|
||||
PYTHON=%{__python3}
|
||||
|
||||
%install
|
||||
%makeinstall_std
|
||||
|
|
Loading…
Add table
Reference in a new issue