]> git.pld-linux.org Git - packages/srtp.git/blob - srtp.spec
d91dc2713bd243c043ebc6acb966b2fea4bdbfee
[packages/srtp.git] / srtp.spec
1 Summary:        Open-source implementation of Secure Real-time Transport Protocol
2 Summary(pl.UTF-8):      Otwarta implementacja protokołu Secure Real-time Transport Protocol
3 Name:           srtp
4 Version:        1.5.4
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 Source0:        https://github.com/cisco/libsrtp/archive/v%{version}/libsrtp-%{version}.tar.gz
9 # Source0-md5:  64a9580f86a9c3e1c4986e944e6a5a84
10 Patch0:         %{name}-rename_functions.patch
11 Patch1:         %{name}-headers.patch
12 Patch2:         %{name}-ismacryp.patch
13 URL:            https://github.com/cisco/libsrtp
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libpcap-devel
17 BuildRequires:  openssl-devel >= 1.0.1
18 BuildRequires:  pkgconfig
19 BuildRequires:  zlib-devel
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
26 %description -l pl.UTF-8
27 Biblioteka libSRTP to otwarta implementacja protokołu SRTP (Secure
28 Real-time Transport Protocol).
29
30 %package devel
31 Summary:        Header files for SRTP library
32 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki SRTP
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35 Requires:       libpcap-devel
36 Requires:       openssl-devel >= 1.0.1
37 Requires:       zlib-devel
38
39 %description devel
40 Header files for SRTP library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki SRTP.
44
45 %package static
46 Summary:        Static SRTP library
47 Summary(pl.UTF-8):      Statyczna biblioteka SRTP
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static SRTP library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka SRTP.
56
57 %prep
58 %setup -q -n libsrtp-%{version}
59 %patch0 -p1
60 %patch1 -p1
61 %patch2 -p1
62
63 %build
64 %{__aclocal}
65 %{__autoconf}
66 %{__autoheader}
67 %configure \
68         --enable-openssl
69
70 %{__make} shared_library
71 %{__make} all
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
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
87 %attr(755,root,root) %{_libdir}/libsrtp.so.1
88
89 %files devel
90 %defattr(644,root,root,755)
91 %doc doc/{*.txt,*.pdf}
92 %attr(755,root,root) %{_libdir}/libsrtp.so
93 %{_pkgconfigdir}/libsrtp.pc
94 %{_includedir}/srtp
95
96 %files static
97 %defattr(644,root,root,755)
98 %{_libdir}/libsrtp.a
This page took 0.891166 seconds and 2 git commands to generate.