]>
Commit | Line | Data |
---|---|---|
800158d4 | 1 | Summary: Open-source implementation of Secure Real-time Transport Protocol |
bc75e517 | 2 | Summary(pl.UTF-8): Otwarta implementacja protokołu Secure Real-time Transport Protocol |
943e4e6f | 3 | Name: libsrtp2 |
af9c6177 | 4 | Version: 2.5.0 |
e4b721b6 | 5 | Release: 1 |
800158d4 JB |
6 | License: BSD |
7 | Group: Libraries | |
a3f103ad | 8 | #Source0Download: https://github.com/cisco/libsrtp/releases |
d6631e47 | 9 | Source0: https://github.com/cisco/libsrtp/archive/v%{version}/libsrtp-%{version}.tar.gz |
af9c6177 | 10 | # Source0-md5: 740557a07928be1886822ce307736e89 |
742469a6 | 11 | Patch0: test-build.patch |
7923a210 | 12 | URL: https://github.com/cisco/libsrtp |
a3f103ad | 13 | BuildRequires: autoconf >= 2.50 |
14f1bb99 | 14 | BuildRequires: automake |
943e4e6f | 15 | BuildRequires: doxygen |
d6631e47 | 16 | BuildRequires: libpcap-devel |
e4b721b6 | 17 | # also supported: nspr>=4+nss>=3 or mbedtls (the last only in cmake build) |
af9c6177 | 18 | BuildRequires: openssl-devel >= 1.1.0 |
d6631e47 | 19 | BuildRequires: pkgconfig |
e4b721b6 | 20 | BuildRequires: rpm-build >= 4.6 |
d6631e47 | 21 | BuildRequires: zlib-devel |
af9c6177 | 22 | Requires: openssl >= 1.1.0 |
e4b721b6 | 23 | Obsoletes: srtp < 2 |
800158d4 JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | The libSRTP library is an open-source implementation of Secure | |
28 | Real-time Transport Protocol (SRTP). | |
29 | ||
e38dbde8 JR |
30 | %description -l pl.UTF-8 |
31 | Biblioteka libSRTP to otwarta implementacja protokołu SRTP (Secure | |
800158d4 JB |
32 | Real-time Transport Protocol). |
33 | ||
34 | %package devel | |
35 | Summary: Header files for SRTP library | |
bc75e517 | 36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SRTP |
800158d4 JB |
37 | Group: Development/Libraries |
38 | Requires: %{name} = %{version}-%{release} | |
d6631e47 | 39 | Requires: libpcap-devel |
af9c6177 | 40 | Requires: openssl-devel >= 1.1.0 |
d6631e47 | 41 | Requires: zlib-devel |
e4b721b6 | 42 | Obsoletes: srtp-devel < 2 |
800158d4 JB |
43 | |
44 | %description devel | |
45 | Header files for SRTP library. | |
46 | ||
e38dbde8 JR |
47 | %description devel -l pl.UTF-8 |
48 | Pliki nagłówkowe biblioteki SRTP. | |
800158d4 JB |
49 | |
50 | %package static | |
51 | Summary: Static SRTP library | |
bc75e517 | 52 | Summary(pl.UTF-8): Statyczna biblioteka SRTP |
800158d4 JB |
53 | Group: Development/Libraries |
54 | Requires: %{name}-devel = %{version}-%{release} | |
e4b721b6 | 55 | Obsoletes: srtp-static < 2 |
800158d4 JB |
56 | |
57 | %description static | |
58 | Static SRTP library. | |
59 | ||
e38dbde8 | 60 | %description static -l pl.UTF-8 |
800158d4 JB |
61 | Statyczna biblioteka SRTP. |
62 | ||
a3f103ad JB |
63 | %package apidocs |
64 | Summary: API documentation for SRTP library | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki SRTP | |
66 | Group: Documentation | |
a3f103ad | 67 | BuildArch: noarch |
a3f103ad JB |
68 | |
69 | %description apidocs | |
70 | API documentation for SRTP library. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API biblioteki SRTP. | |
74 | ||
800158d4 | 75 | %prep |
d6631e47 | 76 | %setup -q -n libsrtp-%{version} |
742469a6 | 77 | %patch0 -p1 |
800158d4 JB |
78 | |
79 | %build | |
14f1bb99 | 80 | %{__aclocal} |
800158d4 JB |
81 | %{__autoconf} |
82 | %{__autoheader} | |
742469a6 | 83 | cp -a /usr/share/automake/ar-lib . |
5e59555a | 84 | %configure \ |
d6631e47 JB |
85 | --enable-openssl |
86 | ||
87 | %{__make} shared_library | |
88 | %{__make} all | |
943e4e6f | 89 | %{__make} libsrtp2doc |
800158d4 JB |
90 | |
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
e4b721b6 | 93 | |
800158d4 JB |
94 | %{__make} install \ |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
43fb5af7 | 105 | %doc CHANGES LICENSE README.md |
943e4e6f | 106 | %attr(755,root,root) %{_libdir}/libsrtp2.so.1 |
800158d4 JB |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
943e4e6f JB |
110 | %attr(755,root,root) %{_libdir}/libsrtp2.so |
111 | %{_pkgconfigdir}/libsrtp2.pc | |
112 | %{_includedir}/srtp2 | |
800158d4 JB |
113 | |
114 | %files static | |
115 | %defattr(644,root,root,755) | |
943e4e6f | 116 | %{_libdir}/libsrtp2.a |
a3f103ad JB |
117 | |
118 | %files apidocs | |
119 | %defattr(644,root,root,755) | |
120 | %doc doc/html/* |