diff --git a/0001-Adjust-.pc-file-not-to-expose-used-crypto-library.patch b/0001-Adjust-.pc-file-not-to-expose-used-crypto-library.patch new file mode 100644 index 0000000..2189929 --- /dev/null +++ b/0001-Adjust-.pc-file-not-to-expose-used-crypto-library.patch @@ -0,0 +1,29 @@ +From 676bf7481aa96f3d691c6e44730e8308214f3a76 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +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 + diff --git a/libsrtp2.changes b/libsrtp2.changes index a259bd1..4135455 100644 --- a/libsrtp2.changes +++ b/libsrtp2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 15 00:27:16 UTC 2021 - Jan Engelhardt + +- Add 0001-Adjust-.pc-file-not-to-expose-used-crypto-library.patch + [boo#1185931] + ------------------------------------------------------------------- Sun Sep 6 13:11:40 UTC 2020 - Jan Engelhardt diff --git a/libsrtp2.spec b/libsrtp2.spec index b738b23..bce4eda 100644 --- a/libsrtp2.spec +++ b/libsrtp2.spec @@ -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