SHA256
1
0
forked from pool/libsrtp2

Accepting request 974925 from network:telephony

- Remove include header editing; the issue once present in
  libsrtp 2.0.0 seems reasonably resolved in current 2.4.2
  [boo#1198887]

OBS-URL: https://build.opensuse.org/request/show/974925
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsrtp2?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2022-05-06 16:58:53 +00:00 committed by Git OBS Bridge
commit 14a733fa1a
2 changed files with 8 additions and 16 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 4 12:39:03 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Remove include header editing; the issue once present in
libsrtp 2.0.0 seems reasonably resolved in current 2.4.2
[boo#1198887]
-------------------------------------------------------------------
Tue Sep 21 19:13:21 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package libsrtp2
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -29,9 +29,6 @@ Source: https://github.com/cisco/libsrtp/archive/v%version.tar.gz
Source99: baselibs.conf
BuildRequires: pkg-config
BuildRequires: pkgconfig(openssl) >= 1.0.1
# srtp was last used in openSUSE 13.1.
Provides: srtp = %version
Obsoletes: srtp < %version
%description
libsrtp is an implementation of the Secure Real-time Transport
@ -71,18 +68,6 @@ This subpackage contains the development headers.
%install
%make_install
# Same post-install modifications as for libsrtp v1.
#
# Including of files with generic names and quotes is unsafe and can cause include clashes.
# Do it in install phase, because rewriting of the source code before building would require deeper changes.
# %%_includedir is included automatically, so we don't modify .pc file. (bnc#839475#c2)
echo "Rewriting #include \"{foo}.h\" to #include <srtp/{foo}.h>..."
sed -i 's|\( *# *include *\)"\([^"]*\.h\)"|\1 <srtp/\2>|' %buildroot/%_includedir/srtp2/*.h
# Rewrite FOO_H just to make things consistent and prevent name clashes.
echo "Rewriting header include check tags from {FOO_H} to SRTP_{FOO_H}..."
sed -i 's|\(# *\(ifdef\|ifndef\|define\|endif */\*\) *\)\([A-Z0-9_]*_H\)\($\| *\*/\)|\1SRTP_\3\4|' %buildroot/%_includedir/srtp2/*.h
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig