diff --git a/libsrtp.spec b/libsrtp.spec new file mode 100644 index 0000000000000000000000000000000000000000..6a74dc6dfedecc42be1f4c7f9fc309ee9e3a4ac2 --- /dev/null +++ b/libsrtp.spec @@ -0,0 +1,75 @@ +%define anolis_release 1 +%global shortname srtp + +Name: libsrtp +Version: 2.4.2 +Release: %{anolis_release}%{?dist} +Summary: An implementation of the Secure Real-time Transport Protocol (SRTP) +License: BSD +URL: https://github.com/cisco/libsrtp +Source0: https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz +BuildRequires: gcc, nss-devel, libpcap-devel +BuildRequires: make + +%description +This package provides an implementation of the Secure Real-time +Transport Protocol (SRTP), the Universal Security Transform (UST), and +a supporting cryptographic kernel. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package tools +Summary: Tools for testing and decoding SRTP +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +Tools for testing and decoding SRTP + +%prep +%setup -q -n %{name}-%{version} + + +%build +export CFLAGS="%{optflags} -fPIC" +%configure --enable-nss +make %{?_smp_mflags} shared_library test + +%install +make install DESTDIR=%{buildroot} +find %{buildroot} -name '*.la' -exec rm -f {} ';' +find %{buildroot} -name '*.a' -exec rm -f {} ';' + +install -D -p -m 0755 test/rdbx_driver %{buildroot}%{_bindir}/rdbx_driver +install -D -p -m 0755 test/replay_driver %{buildroot}%{_bindir}/replay_driver +install -D -p -m 0755 test/roc_driver %{buildroot}%{_bindir}/roc_driver +install -D -p -m 0755 test/rtp_decoder %{buildroot}%{_bindir}/rtp_decoder +install -D -p -m 0755 test/rtpw %{buildroot}%{_bindir}/rtpw +install -D -p -m 0755 test/srtp_driver %{buildroot}%{_bindir}/srtp_driver +install -D -p -m 0755 test/test_srtp %{buildroot}%{_bindir}/test_srtp + +%ldconfig_scriptlets + +%files +%license LICENSE +%doc CHANGES README.md +%{_libdir}/*.so.* + +%files devel +%{_includedir}/%{shortname}2/ +%{_libdir}/pkgconfig/libsrtp2.pc +%{_libdir}/*.so + +%files tools +%{_bindir}/* + +%changelog +* Fri Apr 08 2022 mgb01105731 - 2.4.2-1 +- Init from upstream version 2.4.2 + diff --git a/v2.4.2.tar.gz b/v2.4.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..13ec86f242e8020d4a405ac375939c56c285c7b8 Binary files /dev/null and b/v2.4.2.tar.gz differ