rtmpdump-vl.spec 3.8 KB

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