diff --git a/Drop-PROJECT_VER_MINOR-in-APIVER.patch b/Drop-PROJECT_VER_MINOR-in-APIVER.patch new file mode 100644 index 0000000..539fae2 --- /dev/null +++ b/Drop-PROJECT_VER_MINOR-in-APIVER.patch @@ -0,0 +1,28 @@ +From 79e357efa8a0a4d60ab8bb9e8d189f12ac4627d1 Mon Sep 17 00:00:00 2001 +From: Nicolas Chauvet +Date: Fri, 28 Feb 2020 14:54:47 +0100 +Subject: [PATCH] Drop PROJECT_VER_MINOR in APIVER + +This will change SONAME to libfreenect.so.0 instead of 0.6 + +Signed-off-by: Nicolas Chauvet +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e71ea97..37d6e94 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -51,7 +51,7 @@ set (PROJECT_VER_PATCH 1) + set (PROJECT_VER + "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}") + set (PROJECT_APIVER +- "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}") ++ "${PROJECT_VER_MAJOR}") + + OPTION(BUILD_REDIST_PACKAGE "Build libfreenect in a legally-redistributable manner (only affects audio)" ON) + OPTION(BUILD_EXAMPLES "Build example programs" ON) +-- +2.24.1 + diff --git a/libfreenect.spec b/libfreenect.spec index 041373c..ecb7e3c 100644 --- a/libfreenect.spec +++ b/libfreenect.spec @@ -24,6 +24,7 @@ Patch4: secarch.patch # Fix the installation path for python libs Patch7: %{name}-0.5.5-py3.patch Patch10: libfreenect-opencv4.patch +Patch11: Drop-PROJECT_VER_MINOR-in-APIVER.patch BuildRequires: gcc-c++ BuildRequires: cmake @@ -108,6 +109,7 @@ rm -rf platform/windows %patch4 -p1 -b .secarch %patch7 -p1 -b .py3 %patch10 -p1 -b .cv4 +%patch11 -p1 -b .drop %build mkdir build @@ -191,6 +193,7 @@ mv %{buildroot}%{_libdir}/OpenNI2-FreenectDriver %{buildroot}%{_libdir}/openni2/ %changelog * Fri Feb 28 2020 Nicolas Chauvet - 0.6.0-1 - Update to 0.6.0 +- Drop Minor in APIVER (SONAME change) * Wed Feb 19 2020 Leigh Scott - 0.5.7-15 - Rebuilt for OpenCV 4.2