rtmpdump-vl.spec 3.2 KB

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