rtmpdump-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Name: rtmpdump
  2. Version: 2.3
  3. Release: 1%{?_dist_release}
  4. Summary: Toolkit for RTMP streams
  5. Group: Applications/Internet
  6. License: GPLv2+
  7. # Note that librtmp is actually LGPLv2, so if you package that separately
  8. # (for which you'd probably want to make it a dynamic library) you should
  9. # label its licence correctly. But the _tools_ are GPLv2.
  10. URL: http://rtmpdump.mplayerhq.hu/
  11. Source0: http://rtmpdump.mplayerhq.hu/download/rtmpdump-%{version}.tgz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: gnutls-devel zlib-devel
  14. %description
  15. rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported,
  16. including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.
  17. %package -n librtmp
  18. Summary: Support library for RTMP streams
  19. Group: Applications/Internet
  20. License: LGPLv2+
  21. %description -n librtmp
  22. librtmp is a suport library for RTMP streams. All forms of RTMP are supported,
  23. including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.
  24. %package -n librtmp-devel
  25. Summary: Files for librtmp development
  26. Group: Applications/Internet
  27. License: LGPLv2+
  28. Requires: librtmp = %{version}-%{release}
  29. %description -n librtmp-devel
  30. librtmp is a suport library for RTMP streams. The librtmp-devel package
  31. contains include files needed to develop applications using librtmp.
  32. %prep
  33. %setup -q
  34. %build
  35. # The fact that we have to add -ldl for gnutls is Fedora bug #611318
  36. %__make CRYPTO=GNUTLS SHARED=yes OPT="$RPM_OPT_FLAGS" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" LIBRTMP=librtmp/librtmp.so LIBS=
  37. %install
  38. %__rm -rf $RPM_BUILD_ROOT
  39. %__make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install
  40. %__rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a
  41. %clean
  42. %__rm -rf $RPM_BUILD_ROOT
  43. %post -n librtmp -p /sbin/ldconfig
  44. %postun -n librtmp -p /sbin/ldconfig
  45. %files
  46. %defattr(-,root,root,-)
  47. %{_bindir}/rtmpdump
  48. %{_sbindir}/rtmpsrv
  49. %{_sbindir}/rtmpgw
  50. %{_sbindir}/rtmpsuck
  51. %{_mandir}/man1/rtmpdump.1*
  52. %{_mandir}/man8/rtmpgw.8*
  53. %doc COPYING README
  54. %files -n librtmp
  55. %defattr(-,root,root,-)
  56. %{_libdir}/librtmp.so.0
  57. %doc librtmp/COPYING
  58. %files -n librtmp-devel
  59. %defattr(-,root,root,-)
  60. %{_includedir}/librtmp
  61. %{_libdir}/librtmp.so
  62. %{_libdir}/pkgconfig/librtmp.pc
  63. %{_mandir}/man3/librtmp.3*
  64. %doc ChangeLog
  65. %changelog
  66. * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3-1
  67. - initial build for VineSeed based on RPM Fusion development
  68. * Sun Jul 04 2010 Dominik Mierzejewski <rpm@greysector.net> 2.3-2
  69. - call ldconfig in post(un) scripts for the shared library
  70. - add strict dependency on the library to -devel
  71. * Sun Jul 04 2010 David Woodhouse <dwmw2@infradead.org> 2.3-1
  72. - Update to 2.3; build shared library
  73. * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2e-1
  74. - new upstream release
  75. * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2d-1
  76. - built based on RPM Fusion
  77. * Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1
  78. - Update to 2.2d
  79. * Tue Apr 20 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-2
  80. - Link with libgcrypt explicitly since we call it directly
  81. * Mon Apr 19 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-1
  82. - Initial package