libsrtp/libsrtp.spec

75 lines
2.1 KiB
RPMSpec

Name: libsrtp
Version: 2.4.2
Release: 6
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-Include-some-information-about-supported-ciphers.patch
Patch0004: 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
* Tue May 28 2024 yaoxin <yao_xin001@hoperun.com> - 2.4.2-6
- Rebuild +1
* Thu Feb 1 2024 liubo <liubo1@xfusion.com> - 2.4.2-5
- Export CMake Targets
* Wed Dec 27 2023 liubo <liubo1@xfusion.com> - 2.4.2-4
- Include some information about supported ciphers
* Wed Nov 22 2023 liubo <liubo1@xfusion.com> - 2.4.2-3
- Include directory should point to 'include' not to 'include/srtp2'
* Thu Oct 19 2023 liubo <liubo1@xfusion.com> - 2.4.2-2
- cast time_t values to known types for formatting in fprintf
* Fri Jan 14 2022 wangkai <wangkai385@huawei.com> - 2.4.2-1
- Update to 2.4.2
* Tue Oct 23 2019 huzhiyu <huzhiyu1@huawei.com> - 1.5.4-10
- Package init