]> git.pld-linux.org Git - packages/libsrtp2.git/blob - libsrtp2.spec
a6fa2a93b0124356cd25acc65a169c071bfec65a
[packages/libsrtp2.git] / libsrtp2.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:           libsrtp2
4 Version:        2.4.2
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 #Source0Download: https://github.com/cisco/libsrtp/releases
9 Source0:        https://github.com/cisco/libsrtp/archive/v%{version}/libsrtp-%{version}.tar.gz
10 # Source0-md5:  253ededcbfad5335efc0825f7ef0c6cc
11 Patch0:         test-build.patch
12 URL:            https://github.com/cisco/libsrtp
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  doxygen
16 BuildRequires:  libpcap-devel
17 # also supported: nspr>=4+nss>=3 or mbedtls (the last only in cmake build)
18 BuildRequires:  openssl-devel >= 1.0.2i
19 BuildRequires:  pkgconfig
20 BuildRequires:  rpm-build >= 4.6
21 BuildRequires:  zlib-devel
22 Requires:       openssl >= 1.0.2i
23 Obsoletes:      srtp < 2
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
30 %description -l pl.UTF-8
31 Biblioteka libSRTP to otwarta implementacja protokołu SRTP (Secure
32 Real-time Transport Protocol).
33
34 %package devel
35 Summary:        Header files for SRTP library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki SRTP
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       libpcap-devel
40 Requires:       openssl-devel >= 1.0.2i
41 Requires:       zlib-devel
42 Obsoletes:      srtp-devel < 2
43
44 %description devel
45 Header files for SRTP library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki SRTP.
49
50 %package static
51 Summary:        Static SRTP library
52 Summary(pl.UTF-8):      Statyczna biblioteka SRTP
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55 Obsoletes:      srtp-static < 2
56
57 %description static
58 Static SRTP library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka SRTP.
62
63 %package apidocs
64 Summary:        API documentation for SRTP library
65 Summary(pl.UTF-8):      Dokumentacja API biblioteki SRTP
66 Group:          Documentation
67 BuildArch:      noarch
68
69 %description apidocs
70 API documentation for SRTP library.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki SRTP.
74
75 %prep
76 %setup -q -n libsrtp-%{version}
77 %patch0 -p1
78
79 %build
80 %{__aclocal}
81 %{__autoconf}
82 %{__autoheader}
83 cp -a /usr/share/automake/ar-lib .
84 %configure \
85         --enable-openssl
86
87 %{__make} shared_library
88 %{__make} all
89 %{__make} libsrtp2doc
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
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)
105 %doc CHANGES LICENSE README.md
106 %attr(755,root,root) %{_libdir}/libsrtp2.so.1
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libsrtp2.so
111 %{_pkgconfigdir}/libsrtp2.pc
112 %{_includedir}/srtp2
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/libsrtp2.a
117
118 %files apidocs
119 %defattr(644,root,root,755)
120 %doc doc/html/*
This page took 0.0710769999999999 seconds and 2 git commands to generate.