[packages/libfreenect] - up to 0.6.2
baggins
baggins at pld-linux.org
Sun Mar 7 21:37:07 CET 2021
commit d95f1ef3af765e11ec9cc9bedef113a6d4286407
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 7 21:36:55 2021 +0100
- up to 0.6.2
libfreenect-install.patch | 10 +++++-----
libfreenect-link.patch | 9 +++++----
libfreenect.spec | 12 ++++++------
3 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/libfreenect.spec b/libfreenect.spec
index cc209d7..454f287 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.0
-Release: 2
+Version: 0.6.2
+Release: 1
License: Apache v2.0 or GPL v2
Group: Libraries
#Source0Download: https://github.com/OpenKinect/libfreenect/releases
Source0: https://github.com/OpenKinect/libfreenect/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: cc6005158c2ea4654aff31cfd3319186
+# Source0-md5: 78648c6eaa74f177a63f26b303247f6e
Patch0: %{name}-link.patch
Patch1: %{name}-install.patch
URL: https://openkinect.org/wiki/Main_Page
@@ -186,9 +186,9 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README.md
%attr(755,root,root) %{_libdir}/libfreenect.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libfreenect.so.0.6
+%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.6
+%attr(755,root,root) %ghost %{_libdir}/libfreenect_sync.so.0
%dir %{_datadir}/libfreenect
%{_datadir}/libfreenect/fwfetcher.py
@@ -206,7 +206,7 @@ rm -rf $RPM_BUILD_ROOT
%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.6
+%attr(755,root,root) %ghost %{_libdir}/libfreenect_cv.so.0
%attr(755,root,root) %{_libdir}/libfreenect_cv.so
%endif
diff --git a/libfreenect-install.patch b/libfreenect-install.patch
index 1f17aa0..2d9c492 100644
--- a/libfreenect-install.patch
+++ b/libfreenect-install.patch
@@ -1,12 +1,12 @@
--- libfreenect-0.6.0/wrappers/python/CMakeLists.txt.orig 2019-10-30 01:30:13.000000000 +0100
+++ libfreenect-0.6.0/wrappers/python/CMakeLists.txt 2020-03-15 08:31:40.236407736 +0100
@@ -50,7 +50,7 @@
- # Figure out installation path
+ # CMake populates this var automatically but we need to specify prefix
execute_process(COMMAND
- ${PYTHON${Python_BUILD_VERSION}_EXECUTABLE}
-- -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}'))"
-+ -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=1, prefix='${CMAKE_INSTALL_PREFIX}'))"
- OUTPUT_VARIABLE PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
+ ${Python${Python_BUILD_VERSION}_EXECUTABLE}
+- -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=False, standard_lib=False, prefix='${CMAKE_INSTALL_PREFIX}'))"
++ -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True, standard_lib=False, prefix='${CMAKE_INSTALL_PREFIX}'))"
+ OUTPUT_VARIABLE Python${Python_BUILD_VERSION}_SITELIB OUTPUT_STRIP_TRAILING_WHITESPACE)
# Figure out numpy include path
--- libfreenect-0.6.0/cmake_modules/SetupDirectories.cmake.orig 2019-10-30 01:30:13.000000000 +0100
diff --git a/libfreenect-link.patch b/libfreenect-link.patch
index 22b3d34..48cf451 100644
--- a/libfreenect-link.patch
+++ b/libfreenect-link.patch
@@ -1,8 +1,9 @@
---- libfreenect-0.6.0/OpenNI2-FreenectDriver/CMakeLists.txt.orig 2019-10-30 01:30:13.000000000 +0100
-+++ libfreenect-0.6.0/OpenNI2-FreenectDriver/CMakeLists.txt 2020-03-14 21:47:22.859166045 +0100
-@@ -24,7 +24,7 @@
+diff -urNp -x '*.orig' libfreenect-0.6.2.org/OpenNI2-FreenectDriver/CMakeLists.txt libfreenect-0.6.2/OpenNI2-FreenectDriver/CMakeLists.txt
+--- libfreenect-0.6.2.org/OpenNI2-FreenectDriver/CMakeLists.txt 2021-02-12 00:51:27.000000000 +0100
++++ libfreenect-0.6.2/OpenNI2-FreenectDriver/CMakeLists.txt 2021-03-07 21:32:13.949845940 +0100
+@@ -24,7 +24,7 @@ include_directories(${PROJECT_SOURCE_DIR
- target_compile_features(FreenectDriver PUBLIC cxx_constexpr)
+ target_compile_features(FreenectDriver PUBLIC cxx_std_11 cxx_constexpr)
-target_link_libraries(FreenectDriver freenectstatic ${MATH_LIB})
+target_link_libraries(FreenectDriver freenectstatic ${MATH_LIB} -lpthread)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libfreenect.git/commitdiff/d95f1ef3af765e11ec9cc9bedef113a6d4286407
More information about the pld-cvs-commit
mailing list