rtmpdump-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %define srcver 2.4
  2. %define gitdate 20140606
  3. Name: rtmpdump
  4. Version: %{srcver}.git%{gitdate}
  5. Release: 2%{?_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. Requires: gmp-devel
  32. %description -n librtmp-devel
  33. librtmp is a suport library for RTMP streams. The librtmp-devel package
  34. contains include files needed to develop applications using librtmp.
  35. %prep
  36. %setup -q -c -n rtmpdump
  37. %build
  38. # The fact that we have to add -ldl for gnutls is Fedora bug #611318
  39. %__make CRYPTO=GNUTLS SHARED=yes OPT="$RPM_OPT_FLAGS" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" LIBRTMP=librtmp/librtmp.so
  40. %install
  41. %__rm -rf $RPM_BUILD_ROOT
  42. %__make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install
  43. %__rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a
  44. %clean
  45. %__rm -rf $RPM_BUILD_ROOT
  46. %post -n librtmp -p /sbin/ldconfig
  47. %postun -n librtmp -p /sbin/ldconfig
  48. %files
  49. %defattr(-,root,root,-)
  50. %{_bindir}/rtmpdump
  51. %{_sbindir}/rtmpsrv
  52. %{_sbindir}/rtmpgw
  53. %{_sbindir}/rtmpsuck
  54. %{_mandir}/man1/rtmpdump.1*
  55. %{_mandir}/man8/rtmpgw.8*
  56. %doc COPYING README
  57. %files -n librtmp
  58. %defattr(-,root,root,-)
  59. %{_libdir}/librtmp.so.*
  60. %doc librtmp/COPYING
  61. %files -n librtmp-devel
  62. %defattr(-,root,root,-)
  63. %{_includedir}/librtmp
  64. %{_libdir}/librtmp.so
  65. %{_libdir}/pkgconfig/librtmp.pc
  66. %{_mandir}/man3/librtmp.3*
  67. %doc ChangeLog
  68. %changelog
  69. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.git20140606-2
  70. - add Requires: gmp-devel to librtmp-devel
  71. * Thu Jun 5 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.git20140606-1
  72. - updated sources to git master.
  73. * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3-1
  74. - initial build for VineSeed based on RPM Fusion development
  75. * Sun Jul 04 2010 Dominik Mierzejewski <rpm@greysector.net> 2.3-2
  76. - call ldconfig in post(un) scripts for the shared library
  77. - add strict dependency on the library to -devel
  78. * Sun Jul 04 2010 David Woodhouse <dwmw2@infradead.org> 2.3-1
  79. - Update to 2.3; build shared library
  80. * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2e-1
  81. - new upstream release
  82. * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2d-1
  83. - built based on RPM Fusion
  84. * Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1
  85. - Update to 2.2d
  86. * Tue Apr 20 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-2
  87. - Link with libgcrypt explicitly since we call it directly
  88. * Mon Apr 19 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-1
  89. - Initial package