1 | %global shortname srtp |
---|
2 | |
---|
3 | Summary: Secure RTP (SRTP) and UST Reference Implementations |
---|
4 | Name: libsrtp |
---|
5 | Version: 2.3.0 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Group: System Environment/Libraries |
---|
8 | Vendor: Project Vine |
---|
9 | Distribution: Vine Linux |
---|
10 | |
---|
11 | License: BSD |
---|
12 | URL: https://github.com/cisco/libsrtp |
---|
13 | Source0: https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
---|
14 | # Fix shared lib so ldconfig doesn't complain |
---|
15 | Patch0: libsrtp-2.3.0-shared-fix.patch |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | %description |
---|
20 | The libSRTP library is an open-source implementation of the Secure Real-time |
---|
21 | Transport Protocol (SRTP) originally authored by Cisco Systems, Inc. |
---|
22 | |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Development environment for libsrtp |
---|
26 | Group: Development/Libraries |
---|
27 | Requires: %{name} = %{version}-%{release} |
---|
28 | |
---|
29 | %description devel |
---|
30 | Header files and libraries for building a extension library for the |
---|
31 | libsrtp |
---|
32 | |
---|
33 | |
---|
34 | %prep |
---|
35 | %setup -q |
---|
36 | %patch0 -p1 -b .sharedfix |
---|
37 | |
---|
38 | |
---|
39 | %build |
---|
40 | export CFLAGS="%{optflags} -fPIC" |
---|
41 | %configure --disable-static |
---|
42 | %{__make} %{?_smp_mflags} shared_library |
---|
43 | |
---|
44 | |
---|
45 | %install |
---|
46 | %{__rm} -rf %{buildroot} |
---|
47 | %{__make} install DESTDIR=%{buildroot} |
---|
48 | find %{buildroot} -name '*.la' -exec rm -f {} ';' |
---|
49 | |
---|
50 | |
---|
51 | %clean |
---|
52 | %{__rm} -rf %{buildroot} |
---|
53 | |
---|
54 | |
---|
55 | %post |
---|
56 | /sbin/ldconfig |
---|
57 | |
---|
58 | %postun |
---|
59 | /sbin/ldconfig |
---|
60 | |
---|
61 | |
---|
62 | %files |
---|
63 | %license LICENSE |
---|
64 | %doc CHANGES README TODO VERSION doc/*.txt doc/*.pdf |
---|
65 | %{_libdir}/*.so.* |
---|
66 | |
---|
67 | %files devel |
---|
68 | %{_includedir}/* |
---|
69 | %{_libdir}/pkgconfig/libsrtp2.pc |
---|
70 | %{_libdir}/*.so |
---|
71 | |
---|
72 | |
---|
73 | %changelog |
---|
74 | * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.0-1 |
---|
75 | - new upstream release. |
---|
76 | - updated Patch0. |
---|
77 | - dropped Patch1-3. |
---|
78 | |
---|
79 | * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-1 |
---|
80 | - new upstream release. |
---|
81 | |
---|
82 | * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-1 |
---|
83 | - initial build for Vine Linux based on fedora development |
---|
84 | |
---|