]> git.pld-linux.org Git - packages/libsrtp2.git/blob - libsrtp2.spec
7f33943aff2ec85e6215ebe803e671d8115d803b
[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.3.0
5 Release:        2
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:  da38ee5d9c31be212a12964c22d7f795
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 BuildRequires:  openssl-devel >= 1.0.1
18 BuildRequires:  pkgconfig
19 BuildRequires:  zlib-devel
20 Obsoletes:      srtp
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
27 %description -l pl.UTF-8
28 Biblioteka libSRTP to otwarta implementacja protokołu SRTP (Secure
29 Real-time Transport Protocol).
30
31 %package devel
32 Summary:        Header files for SRTP library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki SRTP
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       libpcap-devel
37 Requires:       openssl-devel >= 1.0.1
38 Requires:       zlib-devel
39 Obsoletes:      srtp-devel
40
41 %description devel
42 Header files for SRTP library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki SRTP.
46
47 %package static
48 Summary:        Static SRTP library
49 Summary(pl.UTF-8):      Statyczna biblioteka SRTP
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52 Obsoletes:      srtp-static
53
54 %description static
55 Static SRTP library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka SRTP.
59
60 %package apidocs
61 Summary:        API documentation for SRTP library
62 Summary(pl.UTF-8):      Dokumentacja API biblioteki SRTP
63 Group:          Documentation
64 BuildArch:      noarch
65
66 %description apidocs
67 API documentation for SRTP library.
68
69 %description apidocs -l pl.UTF-8
70 Dokumentacja API biblioteki SRTP.
71
72 %prep
73 %setup -q -n libsrtp-%{version}
74 %patch0 -p1
75
76 %build
77 %{__aclocal}
78 %{__autoconf}
79 %{__autoheader}
80 cp -a /usr/share/automake/ar-lib .
81 %configure \
82         --enable-openssl
83
84 %{__make} shared_library
85 %{__make} all
86 %{__make} libsrtp2doc
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc CHANGES LICENSE README.md
102 %attr(755,root,root) %{_libdir}/libsrtp2.so.1
103
104 %files devel
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libsrtp2.so
107 %{_pkgconfigdir}/libsrtp2.pc
108 %{_includedir}/srtp2
109
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/libsrtp2.a
113
114 %files apidocs
115 %defattr(644,root,root,755)
116 %doc doc/html/*
This page took 0.07071 seconds and 2 git commands to generate.