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

RevLine 
[10592]1%global shortname srtp
2
[5647]3Summary:        Secure RTP (SRTP) and UST Reference Implementations
4Name:           libsrtp
[10592]5Version:        1.5.4
[5647]6Release:        1%{?_dist_release}
7
[10592]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
[5647]16
17License:        BSD
18Group:          System Environment/Libraries
[10592]19URL:            https://github.com/cisco/libsrtp
[5647]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
[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
52export 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}
60find %{buildroot} -name '*.la' -exec rm -f {} ';'
[5647]61
[10592]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
[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
Note: See TracBrowser for help on using the repository browser.