summaryrefslogtreecommitdiff
path: root/packaging/libsrtp.spec
blob: 5c84a90029180fc8afded4809a19a2ed85eae93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Name:       libsrtp
Summary:    This package provides an implementation of the Secure Real-time Transport Protocol (SRTP)
Version:    2.3.0
Release:    1
Group:      Multimedia/Libraries
License:    BSD-3-Clause
Source0:    %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
BuildRequires:  cmake
BuildRequires:  pkgconfig(glib-2.0)

%description
This package provides an implementation of the Secure Real-time Transport Protocol

%package devel
Summary:    libsrtp headers and libraries for development.
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
libsrtp headers and libraries for development.

%prep
%setup -q
cp %{SOURCE1001} .

%build
%cmake . -DFULLVER=%{version}

make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}

%make_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%manifest %{name}.manifest
%license LICENSE
%{_libdir}/*.so
%exclude %{_libdir}/debug

%files devel
%manifest %{name}.manifest
%{_includedir}/srtp2/*
%{_libdir}/pkgconfig/*.pc