Name: libsrtp Version: 2.4.2 Release: 4 Summary: Library for SRTP (Secure Realtime Transport Protocol) License: BSD URL: https://github.com/cisco/libsrtp Source0: https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz BuildRequires: gcc Patch0001: 0001-cast-time_t-values-to-known-types-for-formatting-in-.patch Patch0002: 0002-Include-directory-should-point-to-include-not-to-inc.patch Patch0003: 0001-Export-CMake-Targets.patch %description This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), and a supporting cryptographic kernel. The SRTP API is documented in include/srtp.h, and the library is in libsrtp2.a (after compilation). %package devel Summary: Development package for %{name} Requires: %{name} = %{version}-%{release} pkgconfig %description devel This package provides libraries and header files that used for development of %{name}. %prep %autosetup -n %{name}-%{version} -p1 %build %configure %make_build shared_library CFLAGS="%{optflags} -fPIC" %install %make_install %delete_la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc CHANGES README.md %{_libdir}/*.so.* %files devel %{_includedir}/srtp2/ %{_libdir}/pkgconfig/libsrtp2.pc %{_libdir}/*.so %changelog * Thu Feb 1 2024 liubo - 2.4.2-4 - Export CMake Targets * Wed Nov 22 2023 liubo - 2.4.2-3 - Include directory should point to 'include' not to 'include/srtp2' * Thu Oct 19 2023 liubo - 2.4.2-2 - cast time_t values to known types for formatting in fprintf * Fri Jan 14 2022 wangkai - 2.4.2-1 - Update to 2.4.2 * Tue Oct 23 2019 huzhiyu - 1.5.4-10 - Package init