]>
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 |
43fb5af7 | 4 | Version: 2.1.0 |
7923a210 | 5 | Release: 1 |
800158d4 JB |
6 | License: BSD |
7 | Group: Libraries | |
d6631e47 | 8 | Source0: https://github.com/cisco/libsrtp/archive/v%{version}/libsrtp-%{version}.tar.gz |
43fb5af7 | 9 | # Source0-md5: 49e2b9973c6fe77de46100e4c9547426 |
7923a210 | 10 | URL: https://github.com/cisco/libsrtp |
800158d4 | 11 | BuildRequires: autoconf |
14f1bb99 | 12 | BuildRequires: automake |
943e4e6f | 13 | BuildRequires: doxygen |
d6631e47 JB |
14 | BuildRequires: libpcap-devel |
15 | BuildRequires: openssl-devel >= 1.0.1 | |
16 | BuildRequires: pkgconfig | |
17 | BuildRequires: zlib-devel | |
800158d4 JB |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | The libSRTP library is an open-source implementation of Secure | |
22 | Real-time Transport Protocol (SRTP). | |
23 | ||
e38dbde8 JR |
24 | %description -l pl.UTF-8 |
25 | Biblioteka libSRTP to otwarta implementacja protokołu SRTP (Secure | |
800158d4 JB |
26 | Real-time Transport Protocol). |
27 | ||
28 | %package devel | |
29 | Summary: Header files for SRTP library | |
bc75e517 | 30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SRTP |
800158d4 JB |
31 | Group: Development/Libraries |
32 | Requires: %{name} = %{version}-%{release} | |
d6631e47 JB |
33 | Requires: libpcap-devel |
34 | Requires: openssl-devel >= 1.0.1 | |
35 | Requires: zlib-devel | |
800158d4 JB |
36 | |
37 | %description devel | |
38 | Header files for SRTP library. | |
39 | ||
e38dbde8 JR |
40 | %description devel -l pl.UTF-8 |
41 | Pliki nagłówkowe biblioteki SRTP. | |
800158d4 JB |
42 | |
43 | %package static | |
44 | Summary: Static SRTP library | |
bc75e517 | 45 | Summary(pl.UTF-8): Statyczna biblioteka SRTP |
800158d4 JB |
46 | Group: Development/Libraries |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static SRTP library. | |
51 | ||
e38dbde8 | 52 | %description static -l pl.UTF-8 |
800158d4 JB |
53 | Statyczna biblioteka SRTP. |
54 | ||
55 | %prep | |
d6631e47 | 56 | %setup -q -n libsrtp-%{version} |
800158d4 JB |
57 | |
58 | %build | |
14f1bb99 | 59 | %{__aclocal} |
800158d4 JB |
60 | %{__autoconf} |
61 | %{__autoheader} | |
5e59555a | 62 | %configure \ |
d6631e47 JB |
63 | --enable-openssl |
64 | ||
65 | %{__make} shared_library | |
66 | %{__make} all | |
943e4e6f | 67 | %{__make} libsrtp2doc |
800158d4 JB |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
800158d4 JB |
71 | %{__make} install \ |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
43fb5af7 | 82 | %doc CHANGES LICENSE README.md |
943e4e6f | 83 | %attr(755,root,root) %{_libdir}/libsrtp2.so.1 |
800158d4 JB |
84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
43fb5af7 | 87 | %doc doc/html/* |
943e4e6f JB |
88 | %attr(755,root,root) %{_libdir}/libsrtp2.so |
89 | %{_pkgconfigdir}/libsrtp2.pc | |
90 | %{_includedir}/srtp2 | |
800158d4 JB |
91 | |
92 | %files static | |
93 | %defattr(644,root,root,755) | |
943e4e6f | 94 | %{_libdir}/libsrtp2.a |