[10592] | 1 | %global shortname srtp |
---|
| 2 | |
---|
[5647] | 3 | Summary: Secure RTP (SRTP) and UST Reference Implementations |
---|
| 4 | Name: libsrtp |
---|
[10592] | 5 | Version: 1.5.4 |
---|
[5647] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | |
---|
[10592] | 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 |
---|
[5647] | 16 | |
---|
| 17 | License: BSD |
---|
| 18 | Group: System Environment/Libraries |
---|
[10592] | 19 | URL: https://github.com/cisco/libsrtp |
---|
[5647] | 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 |
---|
[10592] | 43 | %setup -q |
---|
[5647] | 44 | |
---|
[10592] | 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 |
---|
[5647] | 49 | |
---|
[10592] | 50 | |
---|
[5647] | 51 | %build |
---|
| 52 | export CFLAGS="%{optflags} -fPIC" |
---|
| 53 | %configure --disable-static |
---|
[10592] | 54 | %{__make} %{?_smp_mflags} shared_library |
---|
[5647] | 55 | |
---|
| 56 | |
---|
| 57 | %install |
---|
[10592] | 58 | %{__rm} -rf %{buildroot} |
---|
| 59 | %{__make} install DESTDIR=%{buildroot} |
---|
| 60 | find %{buildroot} -name '*.la' -exec rm -f {} ';' |
---|
[5647] | 61 | |
---|
[10592] | 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 |
---|
[5647] | 65 | |
---|
| 66 | |
---|
| 67 | %clean |
---|
[10592] | 68 | %{__rm} -rf %{buildroot} |
---|
[5647] | 69 | |
---|
[10592] | 70 | %post |
---|
| 71 | /sbin/ldconfig |
---|
[5647] | 72 | |
---|
[10592] | 73 | %postun |
---|
| 74 | /sbin/ldconfig |
---|
[5647] | 75 | |
---|
| 76 | %files |
---|
[10592] | 77 | %license LICENSE |
---|
| 78 | %doc CHANGES README TODO VERSION doc/*.txt doc/*.pdf |
---|
| 79 | %{_libdir}/*.so.* |
---|
[5647] | 80 | |
---|
| 81 | %files devel |
---|
[10592] | 82 | %{_includedir}/%{shortname}/ |
---|
[5647] | 83 | %{_libdir}/pkgconfig/libsrtp.pc |
---|
[10592] | 84 | %{_libdir}/*.so |
---|
[5647] | 85 | |
---|
| 86 | |
---|
[10592] | 87 | %changelog |
---|
| 88 | * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-1 |
---|
| 89 | - new upstream release. |
---|
[5647] | 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 | |
---|