libsrtp-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %global shortname srtp
  2. Summary: Secure RTP (SRTP) and UST Reference Implementations
  3. Name: libsrtp
  4. Version: 1.5.4
  5. Release: 1%{?_dist_release}
  6. Source0: https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  7. # Universal config.h
  8. Source2: config.h
  9. # Fix shared lib so ldconfig doesn't complain
  10. Patch0: libsrtp-1.5.4-shared-fix.patch
  11. Patch1: libsrtp-srtp_aes_encrypt.patch
  12. Patch2: libsrtp-sha1-name-fix.patch
  13. Patch3: libsrtp-fix-name-collision-on-MIPS.patch
  14. License: BSD
  15. Group: System Environment/Libraries
  16. URL: https://github.com/cisco/libsrtp
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: Takemikaduchi
  21. %description
  22. The libSRTP library is an open-source implementation of the Secure Real-time
  23. Transport Protocol (SRTP) originally authored by Cisco Systems, Inc.
  24. %package devel
  25. Summary: Development environment for libsrtp
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. %description devel
  29. Header files and libraries for building a extension library for the
  30. libsrtp
  31. %prep
  32. %setup -q
  33. %patch0 -p1 -b .sharedfix
  34. %patch1 -p1 -b .srtp_aes_encrypt
  35. %patch2 -p1 -b .sha1-name-fix
  36. %patch3 -p1 -b .mips-name-fix
  37. %build
  38. export CFLAGS="%{optflags} -fPIC"
  39. %configure --disable-static
  40. %{__make} %{?_smp_mflags} shared_library
  41. %install
  42. %{__rm} -rf %{buildroot}
  43. %{__make} install DESTDIR=%{buildroot}
  44. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  45. # Handle multilib issues with config.h
  46. mv %{buildroot}%{_includedir}/%{shortname}/config.h %{buildroot}%{_includedir}/%{shortname}/config-%{__isa_bits}.h
  47. cp -a %{SOURCE2} %{buildroot}%{_includedir}/%{shortname}/config.h
  48. %clean
  49. %{__rm} -rf %{buildroot}
  50. %post
  51. /sbin/ldconfig
  52. %postun
  53. /sbin/ldconfig
  54. %files
  55. %license LICENSE
  56. %doc CHANGES README TODO VERSION doc/*.txt doc/*.pdf
  57. %{_libdir}/*.so.*
  58. %files devel
  59. %{_includedir}/%{shortname}/
  60. %{_libdir}/pkgconfig/libsrtp.pc
  61. %{_libdir}/*.so
  62. %changelog
  63. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-1
  64. - new upstream release.
  65. * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.4-1
  66. - initial build for Vine Linux based on fedora development