1 | Summary: Secure RTP (SRTP) and UST Reference Implementations |
---|
2 | Name: libsrtp |
---|
3 | Version: 1.4.4 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | |
---|
6 | Source0: srtp-%{version}.tgz |
---|
7 | # Pkgconfig goodness |
---|
8 | Source1: libsrtp.pc |
---|
9 | # Seriously. Who doesn't do shared libs these days? |
---|
10 | # And how does Chromium always manage to find these projects and use them? |
---|
11 | Patch0: libsrtp-1.4.4-shared.patch |
---|
12 | |
---|
13 | License: BSD |
---|
14 | Group: System Environment/Libraries |
---|
15 | URL: http://srtp.sourceforge.net/ |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | Vendor: Project Vine |
---|
20 | Distribution: Vine Linux |
---|
21 | Packager: Takemikaduchi |
---|
22 | |
---|
23 | %description |
---|
24 | The libSRTP library is an open-source implementation of the Secure Real-time |
---|
25 | Transport Protocol (SRTP) originally authored by Cisco Systems, Inc. |
---|
26 | |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: Development environment for libsrtp |
---|
30 | Group: Development/Libraries |
---|
31 | Requires: %{name} = %{version}-%{release} |
---|
32 | |
---|
33 | %description devel |
---|
34 | Header files and libraries for building a extension library for the |
---|
35 | libsrtp |
---|
36 | |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q -n srtp |
---|
40 | %patch0 -p1 |
---|
41 | |
---|
42 | |
---|
43 | %build |
---|
44 | export CFLAGS="%{optflags} -fPIC" |
---|
45 | %configure --disable-static |
---|
46 | %{__make} %{?_smp_mflags} |
---|
47 | |
---|
48 | |
---|
49 | %install |
---|
50 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
51 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
52 | pushd %{buildroot}%{_libdir} |
---|
53 | ln -sf libsrtp.so.0.0.0 libsrtp.so |
---|
54 | ln -sf libsrtp.so.0.0.0 libsrtp.so.0 |
---|
55 | popd |
---|
56 | |
---|
57 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
58 | |
---|
59 | # Install the pkg-config file |
---|
60 | mkdir -p %{buildroot}%{_libdir}/pkgconfig/ |
---|
61 | install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/ |
---|
62 | # Fill in the variables |
---|
63 | sed -i "s|@PREFIX@|%{_prefix}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc |
---|
64 | sed -i "s|@LIBDIR@|%{_libdir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc |
---|
65 | sed -i "s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc |
---|
66 | |
---|
67 | |
---|
68 | %clean |
---|
69 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
70 | |
---|
71 | %post -p /sbin/ldconfig |
---|
72 | |
---|
73 | %postun -p /sbin/ldconfig |
---|
74 | |
---|
75 | %files |
---|
76 | %defattr(-,root,root,-) |
---|
77 | %doc CHANGES LICENSE README |
---|
78 | %{_libdir}/libsrtp.so.* |
---|
79 | |
---|
80 | %files devel |
---|
81 | %defattr(-,root,root,-) |
---|
82 | %{_includedir}/srtp |
---|
83 | %{_libdir}/libsrtp.so |
---|
84 | %{_libdir}/pkgconfig/libsrtp.pc |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | %changelog |
---|
89 | * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-1 |
---|
90 | - initial build for Vine Linux based on fedora development |
---|
91 | |
---|