update to 2.3, enable shared library

el8
David Woodhouse 15 years ago
parent db4c29862f
commit bed5ec527a

2
.gitignore vendored

@ -1 +1 @@
rtmpdump-2.2d.tgz rtmpdump-2.3.tgz

@ -1,5 +1,5 @@
Name: rtmpdump Name: rtmpdump
Version: 2.2d Version: 2.3
Release: 1%{?dist} Release: 1%{?dist}
Summary: Toolkit for RTMP streams Summary: Toolkit for RTMP streams
@ -18,23 +18,36 @@ BuildRequires: gnutls-devel zlib-devel
rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported, rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported,
including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://. including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.
%package -n librtmp
Summary: Support library for RTMP streams
Group: Applications/Internet
License: LGPLv2+
%description -n librtmp
librtmp is a suport library for RTMP streams. All forms of RTMP are supported,
including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.
%package -n librtmp-devel
Summary: Files for librtmp development
Group: Applications/Internet
License: LGPLv2+
%description -n librtmp-devel
librtmp is a suport library for RTMP streams. The librtmp-devel package
contains include files needed to develop applications using librtmp.
%prep %prep
%setup -q %setup -q
%build %build
make CRYPTO=GNUTLS OPT="$RPM_OPT_FLAGS" progs # The fact that we have to add -ldl for gnutls is Fedora bug #611318
make CRYPTO=GNUTLS SHARED=yes OPT="$RPM_OPT_FLAGS" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" LIBRTMP=librtmp/librtmp.so LIBS=
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir} make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install
for FILE in rtmpdump rtmpgw rtmpsrv rtmpsuck; do rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a
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 %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -43,17 +56,30 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/rtmpdump %{_bindir}/rtmpdump
%{_bindir}/rtmpsrv %{_sbindir}/rtmpsrv
%{_bindir}/rtmpgw %{_sbindir}/rtmpgw
%{_bindir}/rtmpsuck %{_sbindir}/rtmpsuck
%{_mandir}/man1/rtmpdump.1.* %{_mandir}/man1/rtmpdump.1*
%{_mandir}/man8/rtmpgw.8.* %{_mandir}/man8/rtmpgw.8*
%doc COPYING README
%doc COPYING ChangeLog README
%files -n librtmp
%defattr(-,root,root,-)
%{_libdir}/librtmp.so.0
%doc librtmp/COPYING
%files -n librtmp-devel
%defattr(-,root,root,-)
/usr/include/librtmp
%{_libdir}/librtmp.so
%{_libdir}/pkgconfig/librtmp.pc
%{_mandir}/man3/librtmp.3*
%doc ChangeLog
%changelog %changelog
* Sun Jul 04 2010 David Woodhouse <dwmw2@infradead.org> 2.3-1
- Update to 2.3; build shared library
* Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1 * Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1
- Update to 2.2d - Update to 2.2d

@ -1 +1 @@
f12086283002c27e0fa11e33e83b7647 rtmpdump-2.2d.tgz eb961f31cd55f0acf5aad1a7b900ef59 rtmpdump-2.3.tgz

Loading…
Cancel
Save