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

Revision 5647, 2.1 KB checked in by Takemikaduchi, 11 years ago (diff)

libsrtp,gstreamer-filters: new package

Line 
1Summary:        Secure RTP (SRTP) and UST Reference Implementations
2Name:           libsrtp
3Version:        1.4.4
4Release:        1%{?_dist_release}
5
6Source0:        srtp-%{version}.tgz
7# Pkgconfig goodness
8Source1:        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?
11Patch0:         libsrtp-1.4.4-shared.patch
12
13License:        BSD
14Group:          System Environment/Libraries
15URL:            http://srtp.sourceforge.net/
16
17BuildRoot:      %{_tmppath}/%{name}-%{version}-root
18
19Vendor: Project Vine
20Distribution: Vine Linux
21Packager: Takemikaduchi
22
23%description
24The libSRTP library is an open-source implementation of the Secure Real-time
25Transport Protocol (SRTP) originally authored by Cisco Systems, Inc.
26
27
28%package devel
29Summary:        Development environment for libsrtp
30Group:          Development/Libraries
31Requires:       %{name} = %{version}-%{release}
32
33%description devel
34Header files and libraries for building a extension library for the
35libsrtp
36
37
38%prep
39%setup -q -n srtp
40%patch0 -p1
41
42
43%build
44export 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}
52pushd %{buildroot}%{_libdir}
53ln -sf libsrtp.so.0.0.0 libsrtp.so
54ln -sf libsrtp.so.0.0.0 libsrtp.so.0
55popd
56
57find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
58
59# Install the pkg-config file
60mkdir -p %{buildroot}%{_libdir}/pkgconfig/
61install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/
62# Fill in the variables
63sed -i "s|@PREFIX@|%{_prefix}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
64sed -i "s|@LIBDIR@|%{_libdir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
65sed -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
Note: See TracBrowser for help on using the repository browser.