[packages/libfreenect] - updated to 0.7.5

qboosh qboosh at pld-linux.org
Sat Jun 20 15:07:24 CEST 2026


commit 9becdcfa6836a9e0eb7183bae0579c4195af06a2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 20 15:07:51 2026 +0200

    - updated to 0.7.5

 libfreenect-cython.patch | 60 ++++++++++++------------------------------------
 libfreenect.spec         | 38 +++++++++++++++---------------
 2 files changed, 34 insertions(+), 64 deletions(-)
---
diff --git a/libfreenect.spec b/libfreenect.spec
index 8382bdd..54333d3 100644
--- a/libfreenect.spec
+++ b/libfreenect.spec
@@ -8,13 +8,13 @@
 Summary:	Userspace driver for the Microsoft Kinect
 Summary(pl.UTF-8):	Sterownik przestrzeni użytkownika dla kontrolera Microsoft Kinect
 Name:		libfreenect
-Version:	0.6.4
-Release:	5
+Version:	0.7.5
+Release:	1
 License:	Apache v2.0 or GPL v2
 Group:		Libraries
-#Source0Download: https://github.com/OpenKinect/libfreenect/releases
+#Source0Download: https://github.com/OpenKinect/libfreenect/tags
 Source0:	https://github.com/OpenKinect/libfreenect/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	a277bfd10d08ff44f4db7ac72db3c5e2
+# Source0-md5:	57d96ccf7782f88f057a638e2f66b966
 Patch0:		%{name}-link.patch
 Patch1:		%{name}-install.patch
 Patch2:		%{name}-cython.patch
@@ -24,12 +24,12 @@ BuildRequires:	libstdc++-devel >= 6:4.7
 BuildRequires:	libusb-devel >= 1.0.18
 %{?with_opencv:BuildRequires:	opencv-devel}
 %if %{with python2}
-BuildRequires:	python-Cython
+BuildRequires:	python-Cython >= 0.13
 BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	python-numpy-devel
 %endif
 %if %{with python3}
-BuildRequires:	python3-Cython
+BuildRequires:	python3-Cython >= 0.13
 BuildRequires:	python3-devel >= 1:3.3
 BuildRequires:	python3-numpy-devel
 %endif
@@ -187,10 +187,10 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.md
-%attr(755,root,root) %{_libdir}/libfreenect.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libfreenect.so.0
-%attr(755,root,root) %{_libdir}/libfreenect_sync.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libfreenect_sync.so.0
+%{_libdir}/libfreenect.so.*.*.*
+%ghost %{_libdir}/libfreenect.so.0
+%{_libdir}/libfreenect_sync.so.*.*.*
+%ghost %{_libdir}/libfreenect_sync.so.0
 %dir %{_datadir}/libfreenect
 %{_datadir}/libfreenect/fwfetcher.py
 
@@ -199,7 +199,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/fakenect
 %attr(755,root,root) %{_bindir}/fakenect-record
 %dir %{_libdir}/fakenect
-%attr(755,root,root) %{_libdir}/fakenect/libfakenect.so*
+%{_libdir}/fakenect/libfakenect.so*
 %{_mandir}/man1/fakenect.1*
 %{_mandir}/man1/fakenect-record.1*
 
@@ -207,22 +207,22 @@ rm -rf $RPM_BUILD_ROOT
 %files opencv
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/freenect-cvdemo
-%attr(755,root,root) %{_libdir}/libfreenect_cv.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libfreenect_cv.so.0
-%attr(755,root,root) %{_libdir}/libfreenect_cv.so
+%{_libdir}/libfreenect_cv.so.*.*.*
+%ghost %{_libdir}/libfreenect_cv.so.0
+%{_libdir}/libfreenect_cv.so
 %endif
 
 %if %{with openni2}
 %files -n OpenNI2-driver-freenect
 %defattr(644,root,root,755)
 %dir %{_libdir}/OpenNI2-FreenectDriver
-%attr(755,root,root) %{_libdir}/OpenNI2-FreenectDriver/libFreenectDriver.so*
+%{_libdir}/OpenNI2-FreenectDriver/libFreenectDriver.so*
 %endif
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libfreenect.so
-%attr(755,root,root) %{_libdir}/libfreenect_sync.so
+%{_libdir}/libfreenect.so
+%{_libdir}/libfreenect_sync.so
 %{_includedir}/libfreenect
 %{_pkgconfigdir}/libfreenect.pc
 %{_datadir}/libfreenect/libfreenectConfig.cmake
@@ -235,11 +235,11 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files -n python-freenect
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/freenect.so
+%{py_sitedir}/freenect.so
 %endif
 
 %if %{with python3}
 %files -n python3-freenect
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py3_sitedir}/freenect.so
+%{py3_sitedir}/freenect.so
 %endif
diff --git a/libfreenect-cython.patch b/libfreenect-cython.patch
index 22ade44..8917d4a 100644
--- a/libfreenect-cython.patch
+++ b/libfreenect-cython.patch
@@ -1,54 +1,24 @@
---- libfreenect-0.6.4/wrappers/python/freenect.pyx.orig	2022-09-19 23:00:01.000000000 +0200
-+++ libfreenect-0.6.4/wrappers/python/freenect.pyx	2025-04-07 21:11:09.510328884 +0200
-@@ -27,7 +27,7 @@ import numpy as np
- cimport numpy as npc
- 
- cdef extern from "numpy/arrayobject.h":
--    void import_array()
-+    int _import_array()
-     cdef object PyArray_SimpleNewFromData(int nd, npc.npy_intp *dims,
-                                            int typenum, void *data)
- 
-@@ -322,7 +322,7 @@ cpdef open_device(CtxPtr ctx, int index)
- 
- _depth_cb, _video_cb = None, None
- 
--cdef void depth_cb(freenect_device *dev, void *data, uint32_t timestamp) with gil:
-+cdef void depth_cb(freenect_device *dev, void *data, uint32_t timestamp) noexcept with gil:
-     cdef freenect_frame_mode mode = freenect_get_current_depth_mode(dev)
-     if not mode.is_valid:
-         return
-@@ -333,7 +333,7 @@ cdef void depth_cb(freenect_device *dev,
-     pydata = _depth_cb_np(data, &mode)
-     _depth_cb(dev_out, pydata, timestamp)
- 
--cdef void video_cb(freenect_device *dev, void *data, uint32_t timestamp) with gil:
-+cdef void video_cb(freenect_device *dev, void *data, uint32_t timestamp) noexcept with gil:
-     cdef freenect_frame_mode mode = freenect_get_current_video_mode(dev)
-     if not mode.is_valid:
-         return
-@@ -455,7 +455,7 @@ def base_runloop(CtxPtr ctx, body=None):
-     except Kill:
-         pass
- 
--import_array()
-+_import_array()
- 
- cdef object _depth_cb_np(void *data, freenect_frame_mode *mode):
-     cdef npc.npy_intp dims[2]
---- libfreenect-0.6.4/wrappers/python/CMakeLists.txt.orig	2025-04-08 19:11:43.732789333 +0200
-+++ libfreenect-0.6.4/wrappers/python/CMakeLists.txt	2025-04-08 20:06:35.680538009 +0200
-@@ -15,7 +15,8 @@ else()
+--- libfreenect-0.7.5/wrappers/python/CMakeLists.txt.orig	2026-06-20 14:42:22.728553850 +0200
++++ libfreenect-0.7.5/wrappers/python/CMakeLists.txt	2026-06-20 14:43:42.864786381 +0200
+@@ -15,7 +15,7 @@ else()
    find_package(Python${Python_BUILD_VERSION} REQUIRED COMPONENTS Interpreter Development)
  endif()
  
 -find_program(CYTHON_EXECUTABLE cython)
-+find_program(CYTHON2_EXECUTABLE cython2)
-+find_program(CYTHON3_EXECUTABLE cython3)
++find_program(CYTHON${Python_BUILD_VERSION}_EXECUTABLE cython${Python_BUILD_VERSION})
  
  # Figure out installation path
  # CMake populates this var automatically but we need to specify prefix
-@@ -34,7 +35,7 @@ execute_process(COMMAND
+@@ -35,7 +35,7 @@ execute_process(COMMAND
+ # but noexcept is not defined in old cython < 0.29.31 shipped in ubuntu 20.04
+ # todo: eventually drop support for cython 0.x.x
+ execute_process(COMMAND
+-  ${CYTHON_EXECUTABLE} --version
++  ${CYTHON${Python_BUILD_VERSION}_EXECUTABLE} --version
+   ERROR_VARIABLE CYTHON_VERSION_OUTPUT ERROR_STRIP_TRAILING_WHITESPACE)
+ string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" CYTHON_VERSION "${CYTHON_VERSION_OUTPUT}")
+ string(REGEX MATCHALL "[0-9]+" CYTHON_VERSION_COMPONENTS "${CYTHON_VERSION}")
+@@ -51,7 +51,7 @@ endif()
  # How to Cython the .pyx file
  add_custom_command(OUTPUT freenect${Python_BUILD_VERSION}.c
    COMMAND
@@ -56,4 +26,4 @@
 +    ${CYTHON${Python_BUILD_VERSION}_EXECUTABLE}
        -${Python_BUILD_VERSION}
        -o freenect${Python_BUILD_VERSION}.c
-       "${CMAKE_CURRENT_SOURCE_DIR}/freenect.pyx")
+       "${CMAKE_CURRENT_SOURCE_DIR}/${FREENECT_PYX}")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libfreenect.git/commitdiff/9becdcfa6836a9e0eb7183bae0579c4195af06a2



More information about the pld-cvs-commit mailing list