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