Notification time stamped 2022-10-22 13:58:52 UTC
From 12998f86ce95ab8534e35f310deb0544c4b896a0 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet kwizart@gmail.com Date: Mar 04 2021 13:37:07 +0000 Subject: Rename file
---
diff --git a/libfreenect-0.5.5-py3.patch b/libfreenect-0.5.5-py3.patch deleted file mode 100644 index b9140f3..0000000 --- a/libfreenect-0.5.5-py3.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff -up ./src/fwfetcher.py.py3 ./src/fwfetcher.py ---- ./src/fwfetcher.py.py3 2016-08-28 09:54:21.000000000 -0400 -+++ ./src/fwfetcher.py 2016-12-29 16:52:00.569437210 -0500 -@@ -1,5 +1,3 @@ --#!/usr/bin/env python2 -- - from __future__ import absolute_import, division, print_function - - import hashlib -@@ -10,10 +8,10 @@ import sys - import time - import zipfile - --try: -+if sys.version_info[0] > 2: - # Python 3 - from urllib.request import Request, URLError, urlopen --except ImportError: -+else: - # Python 2 - from urllib2 import Request, URLError, urlopen - -diff -up ./wrappers/python/CMakeLists.txt.py3 ./wrappers/python/CMakeLists.txt ---- ./wrappers/python/CMakeLists.txt.py3 2016-08-28 09:54:21.000000000 -0400 -+++ ./wrappers/python/CMakeLists.txt 2016-12-29 16:49:58.970814941 -0500 -@@ -50,7 +50,7 @@ endif() - # Figure out installation path - 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(1))" - OUTPUT_VARIABLE PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE) - - # Figure out numpy include path -@@ -84,7 +84,10 @@ target_include_directories(cython${Pytho - - # Install the extension - install(TARGETS cython${Python_BUILD_VERSION}_freenect -- DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES}) -+ DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES} -+ ARCHIVE DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES} -+ LIBRARY DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES} -+ ) - - # TODO: decide on what to do with demo_ scripts and were to install - # them diff --git a/libfreenect-0.6.2-py3.patch b/libfreenect-0.6.2-py3.patch new file mode 100644 index 0000000..b9140f3 --- /dev/null +++ b/libfreenect-0.6.2-py3.patch @@ -0,0 +1,46 @@ +diff -up ./src/fwfetcher.py.py3 ./src/fwfetcher.py +--- ./src/fwfetcher.py.py3 2016-08-28 09:54:21.000000000 -0400 ++++ ./src/fwfetcher.py 2016-12-29 16:52:00.569437210 -0500 +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python2 +- + from __future__ import absolute_import, division, print_function + + import hashlib +@@ -10,10 +8,10 @@ import sys + import time + import zipfile + +-try: ++if sys.version_info[0] > 2: + # Python 3 + from urllib.request import Request, URLError, urlopen +-except ImportError: ++else: + # Python 2 + from urllib2 import Request, URLError, urlopen + +diff -up ./wrappers/python/CMakeLists.txt.py3 ./wrappers/python/CMakeLists.txt +--- ./wrappers/python/CMakeLists.txt.py3 2016-08-28 09:54:21.000000000 -0400 ++++ ./wrappers/python/CMakeLists.txt 2016-12-29 16:49:58.970814941 -0500 +@@ -50,7 +50,7 @@ endif() + # Figure out installation path + 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(1))" + OUTPUT_VARIABLE PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE) + + # Figure out numpy include path +@@ -84,7 +84,10 @@ target_include_directories(cython${Pytho + + # Install the extension + install(TARGETS cython${Python_BUILD_VERSION}_freenect +- DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES}) ++ DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES} ++ ARCHIVE DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES} ++ LIBRARY DESTINATION ${PYTHON${Python_BUILD_VERSION}_SITE_PACKAGES} ++ ) + + # TODO: decide on what to do with demo_ scripts and were to install + # them
https://src.fedoraproject.org/rpms/libfreenect/c/12998f86ce95ab8534e35f310de...
scm-commits@lists.fedoraproject.org