SHA256
1
0
forked from pool/libsrtp2

- Add 0001-Adjust-.pc-file-not-to-expose-used-crypto-library.patch [boo#1185931]

OBS-URL: https://build.opensuse.org/package/show/network:telephony/libsrtp2?expand=0&rev=9
This commit is contained in:
Jan Engelhardt 2021-05-15 00:29:29 +00:00 committed by Git OBS Bridge
parent 212848982b
commit c6ac1e461d
3 changed files with 38 additions and 2 deletions

View File

@ -0,0 +1,29 @@
From 676bf7481aa96f3d691c6e44730e8308214f3a76 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sat, 15 May 2021 02:24:03 +0200
Subject: [PATCH] Adjust .pc file not to expose used crypto library
References: https://github.com/cisco/libsrtp/pull/537
References: https://bugzilla.suse.com/show_bug.cgi?id=1185931
srtp headers are not directly including openssl headers. The srtp (shared)
library already has links to libcrypto and so -lcrypto is at best only needed
for static linking, but that must go into a the field called "private".
---
libsrtp2.pc.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git libsrtp2.pc.in libsrtp2.pc.in
index fcb8652..f2097a3 100644
--- libsrtp2.pc.in
+++ libsrtp2.pc.in
@@ -7,5 +7,6 @@ Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Description: Library for SRTP (Secure Realtime Transport Protocol)
-Libs: -L${libdir} -lsrtp2 @LIBS@
+Libs: -L${libdir} -lsrtp2
+Libs.private: @LIBS@
Cflags: -I${includedir}
--
2.31.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat May 15 00:27:16 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Add 0001-Adjust-.pc-file-not-to-expose-used-crypto-library.patch
[boo#1185931]
-------------------------------------------------------------------
Sun Sep 6 13:11:40 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package libsrtp2
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,6 +27,7 @@ URL: https://github.com/cisco/libsrtp
Source: https://github.com/cisco/libsrtp/archive/v%version.tar.gz
Source99: baselibs.conf
Patch1: 0001-Adjust-.pc-file-not-to-expose-used-crypto-library.patch
BuildRequires: pkg-config
BuildRequires: pkgconfig(openssl) >= 1.0.1
# srtp was last used in openSUSE 13.1.
@ -62,7 +63,7 @@ Protocol (SRTP) originally authored by Cisco Systems, Inc.
This subpackage contains the development headers.
%prep
%autosetup -p1 -n libsrtp-%version
%autosetup -p0 -n libsrtp-%version
%build
%configure --enable-openssl