[packages/LCEVCdec] - patches to add missing include and fix static libs libdir
qboosh
qboosh at pld-linux.org
Sat Mar 22 12:56:22 CET 2025
commit 1f07b781d2337e4c972917718ea0fadfb5f57d22
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 22 12:03:47 2025 +0100
- patches to add missing include and fix static libs libdir
LCEVCdec-includes.patch | 10 ++++++++++
LCEVCdec-libdir.patch | 18 ++++++++++++++++++
LCEVCdec.spec | 4 ++++
3 files changed, 32 insertions(+)
---
diff --git a/LCEVCdec.spec b/LCEVCdec.spec
index 8ed0b2e..b4a5506 100644
--- a/LCEVCdec.spec
+++ b/LCEVCdec.spec
@@ -13,6 +13,8 @@ Group: Libraries
#Source0Download: https://github.com/v-novaltd/LCEVCdec/releases
Source0: https://github.com/v-novaltd/LCEVCdec/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 5bb2d7180bfa231cf1a4273a7831b6eb
+Patch0: %{name}-includes.patch
+Patch1: %{name}-libdir.patch
URL: https://github.com/v-novaltd/LCEVCdec
BuildRequires: cmake >= 3.19.0
BuildRequires: libstdc++-devel >= 6:7
@@ -73,6 +75,8 @@ Dokumentacja API bibliotek dekodera LCEVC.
%prep
%setup -q
+%patch -P0 -p1
+%patch -P1 -p1
# fake for git archive, not checkout
printf RELEASE > .githash
diff --git a/LCEVCdec-includes.patch b/LCEVCdec-includes.patch
new file mode 100644
index 0000000..1bddc68
--- /dev/null
+++ b/LCEVCdec-includes.patch
@@ -0,0 +1,10 @@
+--- LCEVCdec-3.3.4/src/api_utility/src/math_utils.h.orig 2025-03-17 12:21:58.000000000 +0100
++++ LCEVCdec-3.3.4/src/api_utility/src/math_utils.h 2025-03-22 11:43:16.892372536 +0100
+@@ -18,6 +18,7 @@
+ #define VN_LCEVC_UTILITY_MATH_UTILS_H
+
+ #include <algorithm>
++#include <cstdint>
+ #include <string>
+ #include <string_view>
+ #include <vector>
diff --git a/LCEVCdec-libdir.patch b/LCEVCdec-libdir.patch
new file mode 100644
index 0000000..a59d58e
--- /dev/null
+++ b/LCEVCdec-libdir.patch
@@ -0,0 +1,18 @@
+--- LCEVCdec-3.3.4/src/api_utility/CMakeLists.txt.orig 2025-03-17 12:21:58.000000000 +0100
++++ LCEVCdec-3.3.4/src/api_utility/CMakeLists.txt 2025-03-22 11:48:56.943839159 +0100
+@@ -26,6 +26,6 @@ add_library(lcevc_dec::api_utility ALIAS
+
+ include(GNUInstallDirs)
+
+-install(TARGETS lcevc_dec_api_utility DESTINATION lib)
++install(TARGETS lcevc_dec_api_utility DESTINATION lib${LIB_SUFFIX})
+ install(FILES ${INTERFACES} DESTINATION include/LCEVC/api_utility)
+ install(FILES ${SOURCES} ${HEADERS} DESTINATION ${CMAKE_INSTALL_DOCDIR}/src/api_utility)
+--- LCEVCdec-3.3.4/src/core/sequencing/CMakeLists.txt.orig 2025-03-17 12:21:58.000000000 +0100
++++ LCEVCdec-3.3.4/src/core/sequencing/CMakeLists.txt 2025-03-22 11:49:28.067306280 +0100
+@@ -28,4 +28,4 @@ target_include_directories(
+ PRIVATE "${CMAKE_CURRENT_LIST_DIR}/src")
+
+ install(FILES ${INTERFACES} DESTINATION "include/LCEVC")
+-install(TARGETS lcevc_dec_core_sequencing DESTINATION lib)
++install(TARGETS lcevc_dec_core_sequencing DESTINATION lib${LIB_SUFFIX})
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/LCEVCdec.git/commitdiff/1f07b781d2337e4c972917718ea0fadfb5f57d22
More information about the pld-cvs-commit
mailing list