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