forked from pool/python-pygraphviz
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 96df92b1b5 | |||
| b2133b1b9e | |||
| 4eb6f121f1 | |||
| caff77821c | |||
| e460db3ec7 | |||
| cb11660996 | |||
| c57e23bd57 | |||
| c712dec093 |
42
graphviz_14-0-0.patch
Normal file
42
graphviz_14-0-0.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
pygraphviz/graphviz_wrap.c | 12 +++++++++++-
|
||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: pygraphviz-1.14/pygraphviz/graphviz_wrap.c
|
||||
===================================================================
|
||||
--- pygraphviz-1.14.orig/pygraphviz/graphviz_wrap.c 2024-09-29 20:31:00.000000000 +0200
|
||||
+++ pygraphviz-1.14/pygraphviz/graphviz_wrap.c 2025-10-24 18:49:18.399642610 +0200
|
||||
@@ -3022,6 +3022,11 @@
|
||||
|
||||
#include "graphviz/cgraph.h"
|
||||
#include "graphviz/gvc.h"
|
||||
+#include "graphviz/graphviz_version.h"
|
||||
+
|
||||
+#ifndef GRAPHVIZ_VERSION_MAJOR
|
||||
+#define GRAPHVIZ_VERSION_MAJOR 12
|
||||
+#endif
|
||||
|
||||
|
||||
SWIGINTERN swig_type_info*
|
||||
@@ -5447,7 +5452,13 @@
|
||||
Agraph_t *arg2 = (Agraph_t *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
char **arg4 = (char **) 0 ;
|
||||
+#if GRAPHVIZ_VERSION_MAJOR >= 14
|
||||
+ size_t *arg5 = (size_t *) 0 ;
|
||||
+ size_t tempn4 ;
|
||||
+#else
|
||||
unsigned int *arg5 = (unsigned int *) 0 ;
|
||||
+ unsigned int tempn4 ;
|
||||
+#endif
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
void *argp2 = 0 ;
|
||||
@@ -5456,7 +5467,6 @@
|
||||
char *buf3 = 0 ;
|
||||
int alloc3 = 0 ;
|
||||
char *temp4 = 0 ;
|
||||
- unsigned int tempn4 ;
|
||||
PyObject *swig_obj[3] ;
|
||||
int result;
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6ad8aa2f26768830a5a1cfc8a14f022d13df170a8f6fdfd68fd1aa1267000964
|
||||
size 104642
|
||||
3
pygraphviz-1.14.tar.gz
Normal file
3
pygraphviz-1.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c10df02377f4e39b00ae17c862f4ee7e5767317f1c6b2dfd04cea6acc7fc2bea
|
||||
size 106003
|
||||
@@ -1,3 +1,33 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 24 16:52:44 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- More gentle version of graphviz_14-0-0.patch, which doesn’t
|
||||
change a SWIG include file, just the C generated one with the
|
||||
minimal required change (bsc#1252488).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 22 17:55:37 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Add graphviz_14-0-0.patch making the code compatible with
|
||||
gvRenderData signature from graphviz 14.0.* (bsc#1252488).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 27 12:23:39 UTC 2025 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Make it compatible wirh %{?sle15_python_module_pythons}.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 1 12:37:59 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update 1.14:
|
||||
* Avoid subprocess window creation with agraph.AGraph._run_prog
|
||||
(#514).
|
||||
* Support Python 3.13 (#542).
|
||||
* AGraph.draw(): close filehandle for pathlib.Path (#535).
|
||||
* Fix formatting (#538).
|
||||
* Test on Python 3.13 (#539).
|
||||
* Use ruff and update pre-commit config (#540).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 23 02:32:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
@@ -6,7 +36,7 @@ Thu May 23 02:32:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
* Fix segfault from repr attempting to access attrs on uninitialized
|
||||
instance (#520).
|
||||
* Add Python 3.12 support (#486).
|
||||
* Copy edges keys when copying a graph
|
||||
* Copy edges keys when copying a graph
|
||||
* Drop Python 3.8 support per SPEC 0 (#465).
|
||||
* Drop Python 3.9 support (#487).
|
||||
* Update documentation building requirements (#488).
|
||||
@@ -40,7 +70,7 @@ Thu Feb 23 10:53:13 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 17 22:02:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- fix dependencies for distros older than tumbleweed
|
||||
- fix dependencies for distros older than tumbleweed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 14 15:16:00 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||
@@ -109,7 +139,7 @@ Wed Jun 15 17:11:49 UTC 2016 - toddrme2178@gmail.com
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 28 14:42:59 UTC 2014 - speilicke@suse.com
|
||||
|
||||
- Set license to BSD-3-Clause according to legal
|
||||
- Set license to BSD-3-Clause according to legal
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 6 13:44:13 UTC 2013 - toddrme2178@gmail.com
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pygraphviz
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,14 +26,17 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pygraphviz%{psuffix}
|
||||
Version: 1.13
|
||||
Version: 1.14
|
||||
Release: 0
|
||||
Summary: Python interface to Graphviz
|
||||
License: BSD-3-Clause
|
||||
URL: https://pygraphviz.github.io/
|
||||
URL: https://github.com/pygraphviz/pygraphviz
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pygraphviz/pygraphviz-%{version}.tar.gz
|
||||
# https://github.com/pygraphviz/pygraphviz/issues/532
|
||||
Source1: https://raw.githubusercontent.com/pygraphviz/pygraphviz/main/examples/README.txt
|
||||
# PATCH-FIX-UPSTREAM graphviz_14-0-0.patch bsc#1252488 mcepl@suse.com
|
||||
# make the code compatible with gvRenderData signature from graphviz 14.0.*
|
||||
Patch0: graphviz_14-0-0.patch
|
||||
BuildRequires: %{python_module devel >= 3.10}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -45,12 +48,12 @@ BuildRequires: graphviz-gd
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with doc}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module matplotlib}
|
||||
BuildRequires: %{python_module numpydoc}
|
||||
BuildRequires: %{python_module pydata-sphinx-theme}
|
||||
BuildRequires: %{python_module pygraphviz = %{version}}
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-matplotlib
|
||||
BuildRequires: python3-numpydoc
|
||||
BuildRequires: python3-pydata-sphinx-theme
|
||||
BuildRequires: python3-sphinx-gallery
|
||||
BuildRequires: %{python_module sphinx-gallery}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
BuildRequires: swig
|
||||
@@ -88,8 +91,6 @@ export CFLAGS="%{optflags}"
|
||||
%if ! %{with doc}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
# Don't ship swig source
|
||||
%python_expand rm %{buildroot}%{$python_sitearch}/pygraphviz/graphviz_wrap.c
|
||||
%else
|
||||
mkdir -p %{buildroot}%{_docdir}/pygraphviz-%{version}
|
||||
cp -ar doc/build/html/* %{buildroot}%{_docdir}/pygraphviz-%{version}
|
||||
|
||||
Reference in New Issue
Block a user