diff --git a/liblive.spec b/liblive.spec index eddf5ed..888b767 100644 --- a/liblive.spec +++ b/liblive.spec @@ -1,7 +1,7 @@ Name: liblive Summary: Live.com streaming libraries Version: 2023.06.14 -Release: 1mamba +Release: 2mamba Group: System/Libraries Vendor: openmamba Distribution: openmamba @@ -23,136 +23,77 @@ The libraries can also be used to stream, receive, and process MPEG, H.263+ or J %package devel Summary: Live.com streaming libraries for development Group: Development/Libraries -Provides: liblive -Obsoletes: liblive < 2021.05.22 +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This code forms a set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These libraries - which can be compiled for Unix (including Linux and Mac OS X), Windows, and QNX (and other POSIX-compliant systems) - can be used to build streaming applications. The libraries can also be used to stream, receive, and process MPEG, H.263+ or JPEG video, and several audio codecs. They can easily be extended to support additional (audio and/or video) codecs, and can also be used to build basic RTSP or SIP clients and servers, and have been used to add streaming support to existing media player applications. -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. -#% debug_package +%package tools +Summary: Test tools proved with Live.com streaming libraries +Group: System/Tools +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This code forms a set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These libraries - which can be compiled for Unix (including Linux and Mac OS X), Windows, and QNX (and other POSIX-compliant systems) - can be used to build streaming applications. +The libraries can also be used to stream, receive, and process MPEG, H.263+ or JPEG video, and several audio codecs. They can easily be extended to support additional (audio and/or video) codecs, and can also be used to build basic RTSP or SIP clients and servers, and have been used to add streaming support to existing media player applications. +This package contains the tools provided with %{name}. + +%debug_package %prep -%setup -q -n live -## edit each Makefile to replace each occurrence of ")$" with ") $". -##find . -name 'Makefile' -exec fix-makefile {} \; +%setup -q -c -a0 +cd live +find . -name Makefile.head | xargs sed -e 's|/local||g' -i # Fix prefix %build -./genMakefiles linux +cd live +sed -E 's|(-DSOCKLEN_T=socklen_t)|\1 -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1|g' -i config.linux-with-shared-libraries -make -## for gcc>= 3.0: "You may also wish to add the -Wno-deprecated flag to CPLUSPLUS_FLAGS." -make -C testProgs CPLUSPLUS_COMPILER=g++ -Wno-deprecated LINK=g++ all +./genMakefiles linux-with-shared-libraries +%make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} -# ?? -mkdir -p %{buildroot}%{_bindir} -# There is no make install! -SUBDIRS="BasicUsageEnvironment groupsock liveMedia UsageEnvironment" -for i in $SUBDIRS; do - mkdir -p %{buildroot}%{_libdir}/live/$i; - # .a - install -m 644 `find $i -name \*.a` \ - %{buildroot}%{_libdir}/live/$i; - # .hh, .h - mkdir -p %{buildroot}%{_includedir}/$i; - install -m 644 `find $i -name \*.hh -or -name \*.h` \ - %{buildroot}%{_includedir}/$i; -done; - -mkdir -p %{buildroot}%{_includedir}/mediaServer -mkdir -p %{buildroot}%{_libdir}/live/mediaServer - -install -m 644 `find WindowsAudioInputDevice -name \*.hh -or -name \*.h` \ - %{buildroot}%{_includedir}/mediaServer; - -install -m 755 mediaServer/live555MediaServer %{buildroot}%{_libdir}/live/mediaServer -install -m 644 `find mediaServer -name \*.hh -or -name \*.h` \ - %{buildroot}%{_includedir}/mediaServer; - -mkdir -p %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/MPEG2TransportStreamIndexer %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/openRTSP %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/playSIP %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/sapWatch %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testAMRAudioStreamer %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMP3Receiver %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMP3Streamer %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG1or2AudioVideoStreamer %{buildroot}%{_libdir}/live/testProgs -#install -m 755 testProgs/testMPEG1or2AudioVideoToDarwin %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG1or2ProgramToTransportStream %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG1or2Splitter %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG1or2VideoReceiver %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG1or2VideoStreamer %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG2TransportStreamer %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG2TransportStreamTrickPlay %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testMPEG4VideoStreamer %{buildroot}%{_libdir}/live/testProgs -#install -m 755 testProgs/testMPEG4VideoToDarwin %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testOnDemandRTSPServer %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testRelay %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/testWAVAudioStreamer %{buildroot}%{_libdir}/live/testProgs -install -m 755 testProgs/vobStreamer %{buildroot}%{_libdir}/live/testProgs - -mkdir -p %{buildroot}%{_includedir}/UsageEnvironment -install -m 644 UsageEnvironment/libUsageEnvironment.a %{buildroot}%{_libdir}/live/UsageEnvironment -install -m 644 `find UsageEnvironment/include -name \*.hh -or -name \*.h` \ - %{buildroot}%{_includedir}/UsageEnvironment; +%makeinstall -C live LIBDIR=%{_libdir} %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} +%files +%defattr(-,root,root) +%{_libdir}/libBasicUsageEnvironment.so.* +%{_libdir}/libUsageEnvironment.so.* +%{_libdir}/libgroupsock.so.* +%{_libdir}/libliveMedia.so.* +%doc live/COPYING + %files devel -%defattr(-,root,root,0755) -%dir %{_libdir}/live/BasicUsageEnvironment -%{_libdir}/live/BasicUsageEnvironment/libBasicUsageEnvironment.a +%defattr(-,root,root) %dir %{_includedir}/BasicUsageEnvironment -%{_includedir}/BasicUsageEnvironment/*.hh -%dir %{_libdir}/live/UsageEnvironment -%{_libdir}/live/UsageEnvironment/libUsageEnvironment.a +%{_includedir}/BasicUsageEnvironment/* %dir %{_includedir}/UsageEnvironment -%{_includedir}/UsageEnvironment/*.hh -%dir %{_libdir}/live/groupsock -%{_libdir}/live/groupsock/libgroupsock.a +%{_includedir}/UsageEnvironment/* %dir %{_includedir}/groupsock -%{_includedir}/groupsock/*.h -%{_includedir}/groupsock/*.hh -%dir %{_libdir}/live/liveMedia -%{_libdir}/live/liveMedia/libliveMedia.a +%{_includedir}/groupsock/* %dir %{_includedir}/liveMedia -%{_includedir}/liveMedia/*.hh -%{_includedir}/liveMedia/*.h -%dir %{_includedir}/mediaServer -%{_includedir}/mediaServer/*.hh -# binary -%{_libdir}/live/mediaServer/live555MediaServer -%dir %{_libdir}/live/testProgs -%{_libdir}/live/testProgs/MPEG2TransportStreamIndexer -%{_libdir}/live/testProgs/openRTSP -%{_libdir}/live/testProgs/playSIP -%{_libdir}/live/testProgs/sapWatch -%{_libdir}/live/testProgs/testAMRAudioStreamer -%{_libdir}/live/testProgs/testMP3Receiver -%{_libdir}/live/testProgs/testMP3Streamer -%{_libdir}/live/testProgs/testMPEG1or2AudioVideoStreamer -#%{_libdir}/live/testProgs/testMPEG1or2AudioVideoToDarwin -%{_libdir}/live/testProgs/testMPEG1or2ProgramToTransportStream -%{_libdir}/live/testProgs/testMPEG1or2Splitter -%{_libdir}/live/testProgs/testMPEG1or2VideoReceiver -%{_libdir}/live/testProgs/testMPEG1or2VideoStreamer -%{_libdir}/live/testProgs/testMPEG2TransportStreamTrickPlay -%{_libdir}/live/testProgs/testMPEG2TransportStreamer -%{_libdir}/live/testProgs/testMPEG4VideoStreamer -#%{_libdir}/live/testProgs/testMPEG4VideoToDarwin -%{_libdir}/live/testProgs/testOnDemandRTSPServer -%{_libdir}/live/testProgs/testRelay -%{_libdir}/live/testProgs/testWAVAudioStreamer -%{_libdir}/live/testProgs/vobStreamer -%doc COPYING README +%{_includedir}/liveMedia/* +%{_libdir}/libBasicUsageEnvironment.so +%{_libdir}/libUsageEnvironment.so +%{_libdir}/libgroupsock.so +%{_libdir}/libliveMedia.so +%doc live/README + +%files tools +%defattr(-,root,root) +%{_bindir}/* %changelog +* Fri Jun 30 2023 Silvan Calarco 2023.06.14-2mamba +- ensure build with RTSPCLIENT_SYNCHRONOUS_INTERFACE; restore shared libraries; use make install + * Wed Jun 14 2023 Automatic Build System 2023.06.14-1mamba - automatic version update by autodist