Accepting request 291104 from network:telephony
1 OBS-URL: https://build.opensuse.org/request/show/291104 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsrtp?expand=0&rev=5
This commit is contained in:
commit
f1b08809c2
3
libsrtp-1.5.2.tar.gz
Normal file
3
libsrtp-1.5.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:86e1efe353397c0751f6bdd709794143bd1b76494412860f16ff2b6d9c304eda
|
||||||
|
size 1690272
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 15 16:35:32 UTC 2015 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Update to 1.5.2.
|
||||||
|
- Remove srtp-soname.diff as upstream now defines ABI in filenames
|
||||||
|
correctly.
|
||||||
|
- Spec cleanup.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jan 3 18:49:15 UTC 2015 - jengelh@inai.de
|
Sat Jan 3 18:49:15 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
@ -83,4 +91,3 @@ Wed Jun 6 01:27:06 CEST 2007 - ro@suse.de
|
|||||||
Wed Jun 28 17:30:46 CEST 2006 - sbrabec@suse.cz
|
Wed Jun 28 17:30:46 CEST 2006 - sbrabec@suse.cz
|
||||||
|
|
||||||
- New SuSE package, version 1.4.2.
|
- New SuSE package, version 1.4.2.
|
||||||
|
|
||||||
|
104
libsrtp.spec
104
libsrtp.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libsrtp
|
# spec file for package libsrtp
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,20 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define soname 1
|
||||||
Name: libsrtp
|
Name: libsrtp
|
||||||
%define library_name libsrtp-1_5_0
|
Version: 1.5.2
|
||||||
Version: 1.5.0
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Secure Real-Time Transport Protocol (SRTP) library
|
Summary: Secure Real-Time Transport Protocol (SRTP) library
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://srtp.sourceforge.net/srtp.html
|
Url: https://github.com/cisco/libsrtp
|
||||||
|
|
||||||
#Git-Clone: git://github.com/cisco/libsrtp
|
#Git-Clone: git://github.com/cisco/libsrtp
|
||||||
Source: https://github.com/cisco/libsrtp/archive/v%version.tar.gz
|
Source: https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Patch1: srtp-soname.diff
|
BuildRequires: gcc
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: pkgconfig(openssl)
|
||||||
Provides: srtp = %{version}-%{release}
|
Provides: srtp = %{version}-%{release}
|
||||||
Obsoletes: srtp < %{version}
|
Obsoletes: srtp < %{version}
|
||||||
|
|
||||||
@ -38,24 +37,24 @@ The libSRTP library is an open source implementation of the Secure
|
|||||||
Real-time Transport Protocol (SRTP) originally authored by Cisco
|
Real-time Transport Protocol (SRTP) originally authored by Cisco
|
||||||
Systems, Inc.
|
Systems, Inc.
|
||||||
|
|
||||||
%package -n %{library_name}
|
%package -n %{name}%{soname}
|
||||||
Summary: Secure Real-Time Transport Protocol (SRTP) library
|
Summary: Secure Real-Time Transport Protocol (SRTP) library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{library_name}
|
%description -n %{name}%{soname}
|
||||||
The libSRTP library is an open source implementation of the Secure
|
The libSRTP library is an open source implementation of the Secure
|
||||||
Real-time Transport Protocol (SRTP) originally authored by Cisco
|
Real-time Transport Protocol (SRTP) originally authored by Cisco
|
||||||
Systems, Inc.
|
Systems, Inc.
|
||||||
|
|
||||||
SRTP is a security profile for RTP that adds confidentiality, message
|
SRTP is a security profile for RTP that adds confidentiality,
|
||||||
authentication, and replay protection to that protocol. It is specified
|
message authentication, and replay protection to that protocol. It
|
||||||
in RFC 3711. More information about the SRTP protocol itself can be
|
is specified in RFC 3711. More information about the SRTP protocol
|
||||||
found on the Secure RTP page.
|
itself can be found on the Secure RTP page.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Secure Real-Time Transport Protocol (SRTP) library
|
Summary: Secure Real-Time Transport Protocol (SRTP) library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{library_name} = %{version}
|
Requires: %{name}%{soname} = %{version}
|
||||||
Provides: srtp-devel = %{version}-%{release}
|
Provides: srtp-devel = %{version}-%{release}
|
||||||
Obsoletes: srtp-devel < %{version}
|
Obsoletes: srtp-devel < %{version}
|
||||||
|
|
||||||
@ -64,69 +63,64 @@ The libSRTP library is an open source implementation of the Secure
|
|||||||
Real-time Transport Protocol (SRTP) originally authored by Cisco
|
Real-time Transport Protocol (SRTP) originally authored by Cisco
|
||||||
Systems, Inc.
|
Systems, Inc.
|
||||||
|
|
||||||
SRTP is a security profile for RTP that adds confidentiality, message
|
SRTP is a security profile for RTP that adds confidentiality,
|
||||||
authentication, and replay protection to that protocol. It is specified
|
message authentication, and replay protection to that protocol. It
|
||||||
in RFC 3711. More information about the SRTP protocol itself can be
|
is specified in RFC 3711. More information about the SRTP protocol
|
||||||
found on the Secure RTP page.
|
itself can be found on the Secure RTP page.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -P 1 -p1
|
sed -i 's/\r/\n/g' doc/draft-irtf-cfrg-icm-00.txt
|
||||||
tr '\r' '\n' <doc/draft-irtf-cfrg-icm-00.txt >doc/draft-irtf-cfrg-icm-00.txt.unix
|
|
||||||
touch -r doc/draft-irtf-cfrg-icm-00.txt doc/draft-irtf-cfrg-icm-00.txt.unix
|
|
||||||
mv doc/draft-irtf-cfrg-icm-00.txt.unix doc/draft-irtf-cfrg-icm-00.txt
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%optflags -fPIC"
|
|
||||||
%configure \
|
%configure \
|
||||||
--enable-generic-aesicm \
|
--enable-generic-aesicm \
|
||||||
--enable-syslog \
|
--enable-syslog \
|
||||||
--disable-static
|
--enable-openssl
|
||||||
# --enable-gdoi
|
# --enable-gdoi
|
||||||
# FIXME: Does not work:
|
# FIXME: Does not work:
|
||||||
# --enable-kernel-linux
|
# --enable-kernel-linux
|
||||||
make %{?_smp_mflags} SONAME="libsrtp-%version.so"
|
|
||||||
|
# Build both shared and static libraries.
|
||||||
|
make shared_library %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install SONAME="libsrtp-%version.so"
|
%make_install
|
||||||
rm -f "%buildroot/%_libdir"/*.a
|
|
||||||
|
|
||||||
# This file is required by some headers, but missing in the installed files
|
# Make libsrtp.so a symlink.
|
||||||
# (once upon a time - bnc#839475). Now just check that it is there.
|
ln -sf %{name}.so.%{soname} %{buildroot}%{_libdir}/%{name}.so
|
||||||
test -f "%buildroot/%_includedir/srtp/config.h"
|
|
||||||
|
|
||||||
# Including of files with generic names and quotes is unsafe and can cause include clashes.
|
# 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.
|
# Do it in install phase, because rewriting of the source code before building would require deeper changes.
|
||||||
# /usr/include is included automatically, so we don't modify .pc file. (bnc#839475#c2)
|
# /usr/include is included automatically, so we don't modify .pc file. (bnc#839475#c2)
|
||||||
echo "Rewriting #include \"{foo}.h\" to #include <srtp/{foo}.h>..."
|
echo "Rewriting #include \"{foo}.h\" to #include <srtp/{foo}.h>..."
|
||||||
sed -i 's:\( *# *include *\)"\([^"]*\.h\)":\1 <srtp/\2>:' %{buildroot}%{_includedir}/srtp/*.h
|
sed -i 's|\( *# *include *\)"\([^"]*\.h\)"|\1 <srtp/\2>|' %{buildroot}%{_includedir}/srtp/*.h
|
||||||
|
|
||||||
# Rewrite FOO_H just to make things consistent and prevent name clashes.
|
# 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}..."
|
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}/srtp/*.h
|
sed -i 's|\(# *\(ifdef\|ifndef\|define\|endif */\*\) *\)\([A-Z0-9_]*_H\)\($\| *\*/\)|\1SRTP_\3\4|' %{buildroot}%{_includedir}/srtp/*.h
|
||||||
sed -i 's:\(# *\(ifdef\|ifndef\|define\|endif */\*\) *\)\(CRYPTO_KERNEL\|RAND_SOURCE\)\($\| *\*/\):\1SRTP_\3_H\4:' %{buildroot}%{_includedir}/srtp/*.h
|
sed -i 's|\(# *\(ifdef\|ifndef\|define\|endif */\*\) *\)\(CRYPTO_KERNEL\|RAND_SOURCE\)\($\| *\*/\)|\1SRTP_\3_H\4|' %{buildroot}%{_includedir}/srtp/*.h
|
||||||
sed -i 's:__DATATYPES_H:_DATATYPES_H:' %{buildroot}%{_includedir}/srtp/*.h
|
|
||||||
# And finally, prevent all potential clashes in autoconf based variables in config.h.
|
# And finally, prevent all potential clashes in autoconf based variables in config.h.
|
||||||
for SYMBOL in\
|
for SYMBOL in \
|
||||||
$(
|
$(sed -n '
|
||||||
sed -n '
|
# Everything below const is a definition of the compiler and hopefully undefined.
|
||||||
# Everything below const is a definition of the compiler and hopefully undefined.
|
/const/,$d
|
||||||
/const/,$d
|
# Search and print autoconf generated defines.
|
||||||
# Search and print autoconf generated defines.
|
s|\(^# *define\|/\* # *undef\) \([A-Z0-9_]*\).*$|\2|p
|
||||||
s:\(^# *define\|/\* # *undef\) \([A-Z0-9_]*\).*$:\2:p
|
' < %{buildroot}%{_includedir}/srtp/config.h
|
||||||
' <%{buildroot}%{_includedir}/srtp/config.h
|
); do
|
||||||
)
|
echo "Rewriting symbol $SYMBOL to SRTP_$SYMBOL..."
|
||||||
do
|
sed -i 's|\([^A-Z0-9_]\)\('$SYMBOL'\)\([^A-Z0-9_]\|$\)|\1SRTP_\2\3|g' %{buildroot}%{_includedir}/srtp/*.h
|
||||||
echo "Rewriting symbol $SYMBOL to SRTP_$SYMBOL..."
|
|
||||||
sed -i 's:\([^A-Z0-9_]\)\('$SYMBOL'\)\([^A-Z0-9_]\|$\):\1SRTP_\2\3:g' %{buildroot}%{_includedir}/srtp/*.h
|
|
||||||
done
|
done
|
||||||
|
|
||||||
%post -n %{library_name} -p /sbin/ldconfig
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{library_name} -p /sbin/ldconfig
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{library_name}
|
%files -n %{name}%{soname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_libdir/libsrtp-%version.so
|
%{_libdir}/libsrtp.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
From: Jan Engelhardt <jengelh@inai.de>
|
|
||||||
Date: 2015-02-04 14:19:57.379625407 +0100
|
|
||||||
|
|
||||||
build: allow using unique SONAMEs
|
|
||||||
|
|
||||||
The srtp build totally lacks versioning, so provide the possibility
|
|
||||||
to control one from the specfile.
|
|
||||||
---
|
|
||||||
Makefile.in | 17 ++++++++++++-----
|
|
||||||
1 file changed, 12 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
Index: libsrtp/Makefile.in
|
|
||||||
===================================================================
|
|
||||||
--- libsrtp.orig/Makefile.in
|
|
||||||
+++ libsrtp/Makefile.in
|
|
||||||
@@ -19,7 +19,8 @@ HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
|
|
||||||
|
|
||||||
.PHONY: all test build_table_apps
|
|
||||||
|
|
||||||
-all: test
|
|
||||||
+SONAME = libsrtp.so
|
|
||||||
+all: test ${SONAME}
|
|
||||||
|
|
||||||
runtest: build_table_apps test
|
|
||||||
@echo "running libsrtp test applications..."
|
|
||||||
@@ -121,9 +122,10 @@ libsrtp.a: $(srtpobj) $(cryptobj) $(gdoi
|
|
||||||
ar cr libsrtp.a $^
|
|
||||||
$(RANLIB) libsrtp.a
|
|
||||||
|
|
||||||
-libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi)
|
|
||||||
- $(CC) -shared -Wl,-soname,libsrtp.so \
|
|
||||||
- -o libsrtp.so $^ $(LDFLAGS)
|
|
||||||
+${SONAME}: $(srtpobj) $(cryptobj) $(gdoi)
|
|
||||||
+ $(CC) -shared -Wl,-soname,${SONAME} \
|
|
||||||
+ -o ${SONAME} $^ $(LDFLAGS)
|
|
||||||
+ if [ "${SONAME}" != libsrtp.so ]; then ln -s "${SONAME}" libsrtp.so; fi
|
|
||||||
|
|
||||||
# libcryptomath.a contains general-purpose routines that are used to
|
|
||||||
# generate tables and verify cryptoalgorithm implementations - this
|
|
||||||
@@ -221,7 +223,12 @@ install:
|
|
||||||
cp $(srcdir)/crypto/include/*.h $(DESTDIR)$(includedir)/srtp
|
|
||||||
if [ "$(srcdir)" != "." ]; then cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp; fi
|
|
||||||
if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi
|
|
||||||
- if [ -f libsrtp.so ]; then cp libsrtp.so $(DESTDIR)$(libdir)/; fi
|
|
||||||
+ if [ -f "${SONAME}" ]; then \
|
|
||||||
+ cp -a "${SONAME}" ${DESTDIR}${libdir}/; \
|
|
||||||
+ if [ "${SONAME}" != libsrtp.so ]; then \
|
|
||||||
+ cp -a libsrtp.so $(DESTDIR)$(libdir)/; \
|
|
||||||
+ fi; \
|
|
||||||
+ fi
|
|
||||||
if [ "$(pkgconfig_DATA)" != "" ]; then \
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir); \
|
|
||||||
cp $(srcdir)/$(pkgconfig_DATA) $(DESTDIR)$(pkgconfigdir)/; \
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ecf5e9be5a6ec3c73841977dc2e059c69209849f2e500269fa133d4c654f1b47
|
|
||||||
size 1687709
|
|
Loading…
Reference in New Issue
Block a user