[packages/python-pivy] - up to 0.6.11
baggins
baggins at pld-linux.org
Tue Nov 10 00:32:47 CET 2026
commit 47fc9a7b2aac1499300fc9d3b31751ca97271f20
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Nov 10 00:32:23 2026 +0100
- up to 0.6.11
python-pivy.spec | 12 +++++++-----
python3.patch | 18 ++++++++++++++++++
2 files changed, 25 insertions(+), 5 deletions(-)
---
diff --git a/python-pivy.spec b/python-pivy.spec
index ff7c03e..c658187 100644
--- a/python-pivy.spec
+++ b/python-pivy.spec
@@ -7,14 +7,15 @@
Summary: Coin binding for Python 2
Summary(pl.UTF-8): Interfejs Pythona 2 do biblioteki Coin
Name: python-%{module}
-Version: 0.6.9
-Release: 4
+Version: 0.6.11
+Release: 1
License: ISC
Group: Libraries/Python
#Source0Download: https://github.com/coin3d/pivy/releases
Source0: https://github.com/coin3d/pivy/archive/%{version}/pivy-%{version}.tar.gz
-# Source0-md5: 16a62b2f89226e06895501e3a62412ba
+# Source0-md5: 3dea0ef976e39f9a01c7fc1c77ea98f5
Patch0: %{name}-swig-pyver.patch
+Patch1: python3.patch
URL: https://github.com/coin3d/pivy
BuildRequires: Coin-devel >= 4.0.0
BuildRequires: OpenGL-GLU-devel
@@ -102,7 +103,8 @@ Obsługa GUI (SoQt) do wiązań biblioteki Coin dla Pythona 2.
%prep
%setup -q -n pivy-%{version}
-%patch -P 0 -p1
+%patch -P0 -p1
+%patch -P1 -p1
%build
%if %{with python2}
@@ -168,7 +170,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{py3_sitedir}/pivy/_coin.so
%{py3_sitedir}/pivy/*.py
%{py3_sitedir}/pivy/__pycache__
-%{py3_sitedir}/pivy/graphics
+%{py3_sitedir}/pivy/interactive
%{py3_sitedir}/pivy/quarter
%{?with_qt:%{py3_sitedir}/pivy/qt}
#%{py3_sitedir}/Pivy-%{version}-py*.egg-info
diff --git a/python3.patch b/python3.patch
new file mode 100644
index 0000000..1ee25de
--- /dev/null
+++ b/python3.patch
@@ -0,0 +1,18 @@
+diff -up pivy-0.6.10/interfaces/pivy_common_typemaps.i.c-api pivy-0.6.10/interfaces/pivy_common_typemaps.i
+--- pivy-0.6.10/interfaces/pivy_common_typemaps.i.c-api 2026-08-07 17:20:00.000000000 -0300
++++ pivy-0.6.10/interfaces/pivy_common_typemaps.i 2026-08-07 17:20:00.000000000 -0300
+@@ -17,6 +17,14 @@
+
+ /* header include needed to let nodekit extensions find the SbTime header */
+ %{
++#if PY_MAJOR_VERSION >= 3
++#define PyInt_FromLong PyLong_FromLong
++#define PyInt_AsLong PyLong_AsLong
++#define PyInt_Check PyLong_Check
++#define PyString_Check PyUnicode_Check
++#define PyString_AsString PyUnicode_AsUTF8
++#endif
++
+ #include <Inventor/SbTime.h>
+
+ #if (PY_VERSION_HEX < 0x02050000)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pivy.git/commitdiff/47fc9a7b2aac1499300fc9d3b31751ca97271f20
More information about the pld-cvs-commit
mailing list