diff --git a/.gitignore b/.gitignore index e69de29..0e41d5f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +rtmpdump-2.2c.tar.gz diff --git a/rtmpdump.spec b/rtmpdump.spec new file mode 100644 index 0000000..b59e42f --- /dev/null +++ b/rtmpdump.spec @@ -0,0 +1,58 @@ +Name: rtmpdump +Version: 2.2c +Release: 1%{?dist} +Summary: Toolkit for RTMP streams + +Group: Applications/Internet +License: GPLv2+ +# Note that librtmp is actually LGPLv2, so if you package that separately +# (for which you'd probably want to make it a dynamic library) you should +# label its licence correctly. But the _tools_ are GPLv2. +URL: http://rtmpdump.mplayerhq.hu/ +Source0: http://rtmpdump.mplayerhq.hu/download/rtmpdump-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gnutls-devel zlib-devel + +%description +rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported, +including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://. + +%prep +%setup -q + +%build +make CRYPTO=GNUTLS OPT="$RPM_OPT_FLAGS" progs + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_bindir} +for FILE in rtmpdump rtmpgw rtmpsrv rtmpsuck; do + install -m 0755 $FILE $RPM_BUILD_ROOT%{_bindir} +done +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +install -m 0644 rtmpdump.1 $RPM_BUILD_ROOT%{_mandir}/man1 +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 +install -m 0644 rtmpgw.8 $RPM_BUILD_ROOT%{_mandir}/man8 + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_bindir}/rtmpdump +%{_bindir}/rtmpsrv +%{_bindir}/rtmpgw +%{_bindir}/rtmpsuck +%{_mandir}/man1/rtmpdump.1.* +%{_mandir}/man8/rtmpgw.8.* + +%doc COPYING ChangeLog README + + + +%changelog +* Mon Apr 19 2010 David Woodhouse 2.2c-1 +- Initial package diff --git a/sources b/sources index e69de29..f8e1488 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4a91ce1aaf7fec57a8108753d05ad162 rtmpdump-2.2c.tar.gz