source: projects/specs/trunk/lib/libs/libsrtp/libsrtp-vl.spec @ 10592

Revision 10592, 2.2 KB checked in by tomop, 8 years ago (diff)

libsrtp-1.5.4-1

Line 
1%global shortname srtp
2
3Summary:        Secure RTP (SRTP) and UST Reference Implementations
4Name:           libsrtp
5Version:        1.5.4
6Release:        1%{?_dist_release}
7
8Source0:        https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
9# Universal config.h
10Source2:        config.h
11# Fix shared lib so ldconfig doesn't complain
12Patch0:         libsrtp-1.5.4-shared-fix.patch
13Patch1:         libsrtp-srtp_aes_encrypt.patch
14Patch2:         libsrtp-sha1-name-fix.patch
15Patch3:         libsrtp-fix-name-collision-on-MIPS.patch
16
17License:        BSD
18Group:          System Environment/Libraries
19URL:            https://github.com/cisco/libsrtp
20
21BuildRoot:      %{_tmppath}/%{name}-%{version}-root
22
23Vendor: Project Vine
24Distribution: Vine Linux
25Packager: Takemikaduchi
26
27%description
28The libSRTP library is an open-source implementation of the Secure Real-time
29Transport Protocol (SRTP) originally authored by Cisco Systems, Inc.
30
31
32%package devel
33Summary:        Development environment for libsrtp
34Group:          Development/Libraries
35Requires:       %{name} = %{version}-%{release}
36
37%description devel
38Header files and libraries for building a extension library for the
39libsrtp
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
52export 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}
60find %{buildroot} -name '*.la' -exec rm -f {} ';'
61
62# Handle multilib issues with config.h
63mv %{buildroot}%{_includedir}/%{shortname}/config.h %{buildroot}%{_includedir}/%{shortname}/config-%{__isa_bits}.h
64cp -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
Note: See TracBrowser for help on using the repository browser.