[packages/falcosecurity-libs] - added fixes for .pc files; release 2

qboosh qboosh at pld-linux.org
Thu Oct 17 07:42:16 CEST 2024


commit a0d473651a89a9b1634beeb7dee93fb1713020b2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 17 06:21:22 2024 +0200

    - added fixes for .pc files; release 2

 falcosecurity-libs-pc.patch | 38 ++++++++++++++++++++++++++++++++++++++
 falcosecurity-libs.spec     |  5 ++++-
 2 files changed, 42 insertions(+), 1 deletion(-)
---
diff --git a/falcosecurity-libs.spec b/falcosecurity-libs.spec
index 83118be..dfd0fdd 100644
--- a/falcosecurity-libs.spec
+++ b/falcosecurity-libs.spec
@@ -10,7 +10,7 @@ Summary:	Falco foundation libraries
 Summary(pl.UTF-8):	Biblioteki podstawowe Falco
 Name:		falcosecurity-libs
 Version:	0.18.1
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Libraries
 #Source0Download: https://github.com/falcosecurity/libs/releases
@@ -19,6 +19,7 @@ Source0:	https://github.com/falcosecurity/libs/archive/%{version}/libs-%{version
 Patch0:		%{name}-syscalls.patch
 Patch1:		%{name}-link.patch
 Patch2:		%{name}-cmake.patch
+Patch3:		%{name}-pc.patch
 URL:		https://github.com/falcosecurity/libs
 BuildRequires:	c-ares-devel
 BuildRequires:	cmake >= 3.12
@@ -85,6 +86,7 @@ Statyczna biblioteka %{name}.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 cp -p /usr/include/uthash.h userspace/libscap/uthash.h
 
@@ -99,6 +101,7 @@ cd build
 	-DCMAKE_INSTALL_INCLUDEDIR=include \
 	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
 	-DCREATE_TEST_TARGETS=OFF \
+	-DFALCOSECURITY_LIBS_VERSION=%{version} \
 	-DENABLE_DKMS=OFF \
 	-DUSE_BUNDLED_DEPS=OFF
 
diff --git a/falcosecurity-libs-pc.patch b/falcosecurity-libs-pc.patch
new file mode 100644
index 0000000..bdc53da
--- /dev/null
+++ b/falcosecurity-libs-pc.patch
@@ -0,0 +1,38 @@
+--- libs-0.18.1/userspace/libscap/libscap.pc.in.orig	2024-09-25 14:54:11.000000000 +0200
++++ libs-0.18.1/userspace/libscap/libscap.pc.in	2024-10-16 19:22:43.611559093 +0200
+@@ -1,10 +1,10 @@
+-prefix=${pcfiledir}/../..
+-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
+-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
++prefix=@CMAKE_INSTALL_PREFIX@
++libdir=@CMAKE_INSTALL_FULL_LIBDIR@
++includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+ 
+ Name: libscap
+ Description: lib for System CAPture
+ Version: @FALCOSECURITY_LIBS_VERSION@
+ 
+-Libs: -L${libdir} @LIBSCAP_LINK_LIBDIRS_FLAGS@ @LIBSCAP_LINK_LIBRARIES_FLAGS@
+-Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libscap
++Libs: -L${libdir} @LIBSCAP_LINK_LIBRARIES_FLAGS@
++Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@ -I${includedir}/@LIBS_PACKAGE_NAME@/libscap
+--- libs-0.18.1/userspace/libsinsp/libsinsp.pc.in.orig	2024-09-25 14:54:11.000000000 +0200
++++ libs-0.18.1/userspace/libsinsp/libsinsp.pc.in	2024-10-16 19:26:59.433506521 +0200
+@@ -1,11 +1,12 @@
+-prefix=${pcfiledir}/../..
+-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
+-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
++prefix=@CMAKE_INSTALL_PREFIX@
++libdir=@CMAKE_INSTALL_FULL_LIBDIR@
++includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+ 
+ Name: libsinsp
+ Description: lib for System INSPection
+ Version: @FALCOSECURITY_LIBS_VERSION@
+ 
+ Requires: libscap
+-Libs: -L${libdir} -lsinsp @SINSP_PKG_CONFIG_LIBDIRS@ @SINSP_PKG_CONFIG_LIBS@
+-Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libsinsp @SINSP_PKG_CONFIG_INCLUDES@
++Libs: -L${libdir} -lsinsp
++Libs.private: @SINSP_PKG_CONFIG_LIBS@
++Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@ -I${includedir}/@LIBS_PACKAGE_NAME@/libsinsp -I/usr/include/jsoncpp
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/falcosecurity-libs.git/commitdiff/a0d473651a89a9b1634beeb7dee93fb1713020b2



More information about the pld-cvs-commit mailing list