From d427edab2b8bb7fdff23b0e86833eb1d42bc4c12 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Thu, 1 Mar 2018 11:17:40 +0000 Subject: [PATCH] fix build --- rtmpdump.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rtmpdump.spec b/rtmpdump.spec index 8e92e37..1b5617b 100644 --- a/rtmpdump.spec +++ b/rtmpdump.spec @@ -49,14 +49,13 @@ contains include files needed to develop applications using librtmp. %build # The fact that we have to add -ldl for gnutls is Fedora bug #611318 -make SYS=posix CRYPTO=GNUTLS SHARED=yes OPT="%{optflags}" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" +make SYS=posix CRYPTO=GNUTLS SHARED=yes OPT="%{optflags}" LIB_GNUTLS="-lgnutls -lgcrypt -ldl -lz" %install make CRYPTO=GNUTLS SHARED=yes DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} libdir=%{_libdir} install rm -f %{buildroot}%{_libdir}/librtmp.a -%post -n librtmp -p /sbin/ldconfig -%postun -n librtmp -p /sbin/ldconfig +%ldconfig_scriptlets librtmp %files %doc README