libsrtp-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Summary: Secure RTP (SRTP) and UST Reference Implementations
  2. Name: libsrtp
  3. Version: 1.4.4
  4. Release: 1%{?_dist_release}
  5. Source0: srtp-%{version}.tgz
  6. # Pkgconfig goodness
  7. Source1: libsrtp.pc
  8. # Seriously. Who doesn't do shared libs these days?
  9. # And how does Chromium always manage to find these projects and use them?
  10. Patch0: libsrtp-1.4.4-shared.patch
  11. License: BSD
  12. Group: System Environment/Libraries
  13. URL: http://srtp.sourceforge.net/
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: Takemikaduchi
  18. %description
  19. The libSRTP library is an open-source implementation of the Secure Real-time
  20. Transport Protocol (SRTP) originally authored by Cisco Systems, Inc.
  21. %package devel
  22. Summary: Development environment for libsrtp
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. %description devel
  26. Header files and libraries for building a extension library for the
  27. libsrtp
  28. %prep
  29. %setup -q -n srtp
  30. %patch0 -p1
  31. %build
  32. export CFLAGS="%{optflags} -fPIC"
  33. %configure --disable-static
  34. %{__make} %{?_smp_mflags}
  35. %install
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  38. pushd %{buildroot}%{_libdir}
  39. ln -sf libsrtp.so.0.0.0 libsrtp.so
  40. ln -sf libsrtp.so.0.0.0 libsrtp.so.0
  41. popd
  42. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  43. # Install the pkg-config file
  44. mkdir -p %{buildroot}%{_libdir}/pkgconfig/
  45. install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/
  46. # Fill in the variables
  47. sed -i "s|@PREFIX@|%{_prefix}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
  48. sed -i "s|@LIBDIR@|%{_libdir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
  49. sed -i "s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrtp.pc
  50. %clean
  51. %{__rm} -rf ${RPM_BUILD_ROOT}
  52. %post -p /sbin/ldconfig
  53. %postun -p /sbin/ldconfig
  54. %files
  55. %defattr(-,root,root,-)
  56. %doc CHANGES LICENSE README
  57. %{_libdir}/libsrtp.so.*
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %{_includedir}/srtp
  61. %{_libdir}/libsrtp.so
  62. %{_libdir}/pkgconfig/libsrtp.pc
  63. %changelog
  64. * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-1
  65. - initial build for Vine Linux based on fedora development