ensure build with RTSPCLIENT_SYNCHRONOUS_INTERFACE; restore shared libraries; use make install [release 2023.06.14-2mamba;Fri Jun 30 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 04:58:43 +01:00
parent 55181582d5
commit a8ac3dba1d

View File

@ -1,7 +1,7 @@
Name: liblive Name: liblive
Summary: Live.com streaming libraries Summary: Live.com streaming libraries
Version: 2023.06.14 Version: 2023.06.14
Release: 1mamba Release: 2mamba
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: 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 %package devel
Summary: Live.com streaming libraries for development Summary: Live.com streaming libraries for development
Group: Development/Libraries Group: Development/Libraries
Provides: liblive Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: liblive < 2021.05.22
%description devel %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. 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. 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 %prep
%setup -q -n live %setup -q -c -a0
## edit each Makefile to replace each occurrence of ")$" with ") $". cd live
##find . -name 'Makefile' -exec fix-makefile {} \; find . -name Makefile.head | xargs sed -e 's|/local||g' -i # Fix prefix
%build %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 ./genMakefiles linux-with-shared-libraries
## for gcc>= 3.0: "You may also wish to add the -Wno-deprecated flag to CPLUSPLUS_FLAGS." %make
make -C testProgs CPLUSPLUS_COMPILER=g++ -Wno-deprecated LINK=g++ all
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
# ??
mkdir -p %{buildroot}%{_bindir}
# There is no make install! %makeinstall -C live LIBDIR=%{_libdir}
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;
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{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 %files devel
%defattr(-,root,root,0755) %defattr(-,root,root)
%dir %{_libdir}/live/BasicUsageEnvironment
%{_libdir}/live/BasicUsageEnvironment/libBasicUsageEnvironment.a
%dir %{_includedir}/BasicUsageEnvironment %dir %{_includedir}/BasicUsageEnvironment
%{_includedir}/BasicUsageEnvironment/*.hh %{_includedir}/BasicUsageEnvironment/*
%dir %{_libdir}/live/UsageEnvironment
%{_libdir}/live/UsageEnvironment/libUsageEnvironment.a
%dir %{_includedir}/UsageEnvironment %dir %{_includedir}/UsageEnvironment
%{_includedir}/UsageEnvironment/*.hh %{_includedir}/UsageEnvironment/*
%dir %{_libdir}/live/groupsock
%{_libdir}/live/groupsock/libgroupsock.a
%dir %{_includedir}/groupsock %dir %{_includedir}/groupsock
%{_includedir}/groupsock/*.h %{_includedir}/groupsock/*
%{_includedir}/groupsock/*.hh
%dir %{_libdir}/live/liveMedia
%{_libdir}/live/liveMedia/libliveMedia.a
%dir %{_includedir}/liveMedia %dir %{_includedir}/liveMedia
%{_includedir}/liveMedia/*.hh %{_includedir}/liveMedia/*
%{_includedir}/liveMedia/*.h %{_libdir}/libBasicUsageEnvironment.so
%dir %{_includedir}/mediaServer %{_libdir}/libUsageEnvironment.so
%{_includedir}/mediaServer/*.hh %{_libdir}/libgroupsock.so
# binary %{_libdir}/libliveMedia.so
%{_libdir}/live/mediaServer/live555MediaServer %doc live/README
%dir %{_libdir}/live/testProgs
%{_libdir}/live/testProgs/MPEG2TransportStreamIndexer %files tools
%{_libdir}/live/testProgs/openRTSP %defattr(-,root,root)
%{_libdir}/live/testProgs/playSIP %{_bindir}/*
%{_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
%changelog %changelog
* Fri Jun 30 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2023.06.14-2mamba
- ensure build with RTSPCLIENT_SYNCHRONOUS_INTERFACE; restore shared libraries; use make install
* Wed Jun 14 2023 Automatic Build System <autodist@mambasoft.it> 2023.06.14-1mamba * Wed Jun 14 2023 Automatic Build System <autodist@mambasoft.it> 2023.06.14-1mamba
- automatic version update by autodist - automatic version update by autodist