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
Version: 2.2d
Version: 2.3
Release: 1%{?dist}
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,
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
%setup -q
%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
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
make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install
rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a
%clean
rm -rf $RPM_BUILD_ROOT
@ -43,17 +56,30 @@ 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
%{_sbindir}/rtmpsrv
%{_sbindir}/rtmpgw
%{_sbindir}/rtmpsuck
%{_mandir}/man1/rtmpdump.1*
%{_mandir}/man8/rtmpgw.8*
%doc COPYING 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
* 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
- Update to 2.2d

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

Loading…
Cancel
Save