[10592] | 1 | %global shortname srtp |
---|
| 2 | |
---|
[5647] | 3 | Summary: Secure RTP (SRTP) and UST Reference Implementations |
---|
| 4 | Name: libsrtp |
---|
[12380] | 5 | Version: 2.3.0 |
---|
[5647] | 6 | Release: 1%{?_dist_release} |
---|
[12380] | 7 | Group: System Environment/Libraries |
---|
| 8 | Vendor: Project Vine |
---|
| 9 | Distribution: Vine Linux |
---|
[5647] | 10 | |
---|
[12380] | 11 | License: BSD |
---|
| 12 | URL: https://github.com/cisco/libsrtp |
---|
[10592] | 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 |
---|
[12380] | 15 | Patch0: libsrtp-2.3.0-shared-fix.patch |
---|
[5647] | 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 |
---|
[10592] | 35 | %setup -q |
---|
| 36 | %patch0 -p1 -b .sharedfix |
---|
[5647] | 37 | |
---|
[10592] | 38 | |
---|
[5647] | 39 | %build |
---|
| 40 | export CFLAGS="%{optflags} -fPIC" |
---|
| 41 | %configure --disable-static |
---|
[10592] | 42 | %{__make} %{?_smp_mflags} shared_library |
---|
[5647] | 43 | |
---|
| 44 | |
---|
| 45 | %install |
---|
[10592] | 46 | %{__rm} -rf %{buildroot} |
---|
| 47 | %{__make} install DESTDIR=%{buildroot} |
---|
| 48 | find %{buildroot} -name '*.la' -exec rm -f {} ';' |
---|
[5647] | 49 | |
---|
| 50 | |
---|
| 51 | %clean |
---|
[10592] | 52 | %{__rm} -rf %{buildroot} |
---|
[5647] | 53 | |
---|
[12380] | 54 | |
---|
[10592] | 55 | %post |
---|
| 56 | /sbin/ldconfig |
---|
[5647] | 57 | |
---|
[10592] | 58 | %postun |
---|
| 59 | /sbin/ldconfig |
---|
[5647] | 60 | |
---|
[12380] | 61 | |
---|
[5647] | 62 | %files |
---|
[10592] | 63 | %license LICENSE |
---|
| 64 | %doc CHANGES README TODO VERSION doc/*.txt doc/*.pdf |
---|
| 65 | %{_libdir}/*.so.* |
---|
[5647] | 66 | |
---|
| 67 | %files devel |
---|
[12380] | 68 | %{_includedir}/* |
---|
| 69 | %{_libdir}/pkgconfig/libsrtp2.pc |
---|
[10592] | 70 | %{_libdir}/*.so |
---|
[5647] | 71 | |
---|
| 72 | |
---|
[10592] | 73 | %changelog |
---|
[12380] | 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 | |
---|
[10592] | 79 | * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-1 |
---|
| 80 | - new upstream release. |
---|
[5647] | 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 | |
---|