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