commit ab5b45110d1973a45c0e258d106246e196c373cd Author: Sergey Cherevko Date: Thu May 30 17:09:11 2024 +0300 import mediastreamer2-5.3.5-2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81d44b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mediastreamer2-5.3.5.tar.gz diff --git a/.mediastreamer2.metadata b/.mediastreamer2.metadata new file mode 100644 index 0000000..9e94fbe --- /dev/null +++ b/.mediastreamer2.metadata @@ -0,0 +1 @@ +c150d778c5fe0c93df8ebb8ec11ada8b3702c448 SOURCES/mediastreamer2-5.3.5.tar.gz diff --git a/SOURCES/mediastreamer-cmake-config-location.patch b/SOURCES/mediastreamer-cmake-config-location.patch new file mode 100644 index 0000000..2486e6e --- /dev/null +++ b/SOURCES/mediastreamer-cmake-config-location.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index adfe087..10fad86 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -714,7 +714,7 @@ if(ENABLE_TOOLS AND NOT ANDROID) + endif() + + include(CMakePackageConfigHelpers) +-set(CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake") ++set(CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") + configure_package_config_file("cmake/${PROJECT_NAME}Config.cmake.in" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" + INSTALL_DESTINATION "${CMAKE_MODULES_INSTALL_DIR}" + PATH_VARS MS2_PLUGINS_DIR diff --git a/SOURCES/mediastreamer-soname.patch b/SOURCES/mediastreamer-soname.patch new file mode 100644 index 0000000..9ea2a83 --- /dev/null +++ b/SOURCES/mediastreamer-soname.patch @@ -0,0 +1,13 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 3f133c2..efd5802 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -617,6 +617,8 @@ if(BUILD_SHARED_LIBS) + set_target_properties(mediastreamer2 PROPERTIES SOVERSION ${MEDIASTREAMER_SO_VERSION}) + else() + ++ set_target_properties(mediastreamer2 PROPERTIES VERSION ${MEDIASTREAMER_VERSION}) ++ set_target_properties(mediastreamer2 PROPERTIES SOVERSION ${MEDIASTREAMER_SO_VERSION}) + + #Workaround for the Debian 11 issue with conflict between libc and libtirpc + #/usr/bin/ld: /lib/x86_64-linux-gnu/libtirpc.so.3: warning: common of `rpc_createerr@@GLIBC_2.2.5' overridden by definition from /lib/x86_64-linux-gnu/libc.so.6 diff --git a/SOURCES/mediastreamer-system-OpenGL.patch b/SOURCES/mediastreamer-system-OpenGL.patch new file mode 100644 index 0000000..e5e8040 --- /dev/null +++ b/SOURCES/mediastreamer-system-OpenGL.patch @@ -0,0 +1,26 @@ +diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt +index dcfab52..a941d03 100644 +--- a/include/CMakeLists.txt ++++ b/include/CMakeLists.txt +@@ -94,9 +94,3 @@ install(FILES ${MEDIASTREAMER2_HEADER_FILES} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/mediastreamer2 + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ + ) +-if(ENABLE_VIDEO) +- install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/OpenGL +- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} +- ) +- +-endif() +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c66a3f0..1c39ac5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -269,7 +269,6 @@ if(ENABLE_GL) + find_package(OpenGL) + if(OPENGL_FOUND) + set(HAVE_GL 1) +- include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/OpenGL") + else() + set(ENABLE_GL OFF CACHE BOOL "Enable generic OpenGL rendering support." FORCE) + endif() diff --git a/SPECS/mediastreamer2.spec b/SPECS/mediastreamer2.spec new file mode 100644 index 0000000..6e9c90a --- /dev/null +++ b/SPECS/mediastreamer2.spec @@ -0,0 +1,352 @@ +%define major 11 +%define libname %{name}-libs +%define develname %{name}-devel + +%bcond_with ffmpeg + +Summary: Audio/video real-time streaming library +Name: mediastreamer2 +# mediastreamer was broken out from linphone which provided lib[64]mediastreamer4-3.8.1-1.mga5 +Epoch: 1 +Version: 5.3.5 +Release: 2%{?dist}.inferit +License: GPLv2+ +Group: Communications/Telephony +URL: https://linphone.org/technical-corner/mediastreamer2 +Source0: https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/%{version}/mediastreamer2-%{version}.tar.gz +Patch3: mediastreamer-cmake-config-location.patch +Patch4: mediastreamer-system-OpenGL.patch +Patch5: mediastreamer-soname.patch +BuildRequires: libmatroska-devel +BuildRequires: cmake +BuildRequires: ninja-build +%if %{with ffmpeg} +BuildRequires: ffmpeg-devel +%endif +BuildRequires: gsm-devel +BuildRequires: libpcap-devel +BuildRequires: libv4l-devel +BuildRequires: cmake(BCToolbox) >= %{version} +BuildRequires: cmake(BZRTP) >= %{version} +BuildRequires: cmake(Ortp) >= %{version} +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(glew) +BuildRequires: pkgconfig(glu) +BuildRequires: pkgconfig(libbcg729) +BuildRequires: pkgconfig(libpulse) +BuildRequires: pkgconfig(libsrtp2) +BuildRequires: pkgconfig(libupnp) +BuildRequires: pkgconfig(opus) +BuildRequires: pkgconfig(speex) +BuildRequires: pkgconfig(speexdsp) +BuildRequires: sqlite-devel +BuildRequires: pkgconfig(theora) +BuildRequires: pkgconfig(vpx) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xv) +BuildRequires: pkgconfig(zxing) = 2.2.1 +BuildRequires: vim-common + +Obsoletes: mediastreamer < 1:4.3.1-2 +Provides: mediastreamer = %{epoch}:%{version}-%{release} + +%description +Mediastreamer2 is a powerful lightweight streaming engine for voice/video +telephony applications. + +%package -n %{libname} +Summary: Audio/video real-time streaming library +Group: System/Libraries + +%description -n %{libname} +Mediastreamer2 is a powerful lightweight streaming engine for voice/video +telephony applications. + +%package -n %{develname} +Summary: Headers, libraries and docs for the mediastreamer2 library +Group: Development/C +Requires: %{libname} = %{epoch}:%{version}-%{release} +Provides: %{name}-devel = %{epoch}:%{version}-%{release} + +%description -n %{develname} +This package contains header files and development libraries needed to +develop programs using the mediastreamer2 library. + +%prep +%autosetup -p1 -n mediastreamer2-%{version} + +# fix version +sed -i -e '/project/s/\(VERSION\)\s\+[0-9]\+\(\.[0-9]\+\)\+/\1 %{version}/' CMakeLists.txt + +# drop bundled OpenGL includes +rm -rf include/OpenGL + +%build +%cmake -GNinja \ + -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ + -DENABLE_STATIC:BOOL=NO \ + -DENABLE_STRICT:BOOL=NO \ + -DENABLE_UNIT_TESTS:BOOL=NO \ + -DENABLE_FFMPEG:BOOL=%{?with_ffmpeg:YES}%{?!with_ffmpeg:NO} +%cmake_build + +%install +%cmake_install + +# for plugins +mkdir -p %{buildroot}%{_libdir}/mediastreamer/plugins/ + +# remove unwanted docs, generated if doxygen is installed +rm -rf %{buildroot}%{_docdir}/mediastreamer* + +%files +%license LICENSE* +%doc CHANGELOG* README* +%{_bindir}/%{name}-mediastream +%{_bindir}/%{name}-mkvstream +#{_bindir}/msaudiocmp +%dir %{_datadir}/images/ +%{_datadir}/images/nowebcamCIF.jpg + +%files -n %{libname} +%{_libdir}/libmediastreamer2.so.%{major} +%{_libdir}/libmediastreamer2.so.%{version} + +%dir %{_libdir}/mediastreamer/plugins/ + +%files -n %{develname} +%{_includedir}/mediastreamer2/ +%{_libdir}/libmediastreamer2.so +%{_libdir}/cmake/Mediastreamer2/ + + +%changelog +* Thu May 30 2024 Sergey Cherevko 1:5.3.5-2.inferit +- Rebuilt for MSVSphere 9.4 + +* Mon Jan 01 2024 wally 1:5.3.5-2.mga10 ++ Revision: 2024945 +- drop unmaintained pkg-conf .pc file + +* Sat Dec 30 2023 wally 1:5.3.5-1.mga10 ++ Revision: 2024684 +- new version 5.3.5 +- add soversion patch +- udpate lib and dvel pkg names + +* Tue Oct 10 2023 danf 1:5.2.70-3.mga10 ++ Revision: 1994012 +- Rebuild for new libvpx + +* Fri Sep 01 2023 daviddavid 1:5.2.70-2.mga10 ++ Revision: 1983068 +- rebuild for new zxing-cpp 2.1.0 + +* Fri Jun 09 2023 wally 1:5.2.70-1.mga9 ++ Revision: 1961528 +- new version 5.2.70 + +* Mon Dec 26 2022 wally 1:5.2.4-3.mga9 ++ Revision: 1926939 +- rebuild for zxing-cpp with bumped lib major + +* Sat Dec 24 2022 wally 1:5.2.4-2.mga9 ++ Revision: 1926351 +- build with ZXing support + +* Sat Dec 24 2022 wally 1:5.2.4-1.mga9 ++ Revision: 1926323 +- new version 5.2.4 + +* Sun Dec 04 2022 wally 1:5.1.72-1.mga9 ++ Revision: 1917535 +- new version 5.1.72 +- build using ninja + +* Tue Oct 11 2022 ghibo 1:5.1.55-2.mga9 ++ Revision: 1896290 +- Rebuild against libvpx 1.12.0 (changed major from 6 to 7) + +* Tue Aug 23 2022 wally 1:5.1.55-1.mga9 ++ Revision: 1879631 +- new version 5.1.55 + +* Wed May 04 2022 wally 1:5.1.20-2.mga9 ++ Revision: 1856172 +- rebuild to core/release + +* Tue May 03 2022 wally 1:5.1.20-1.mga9 ++ Revision: 1855946 +- new version 5.1.20 ++ luigiwalser +- disable ffmpeg support, ffmpeg 5.0 not supported upstream ++ umeabot +- Mageia 9 Mass Rebuild + +* Sun Nov 21 2021 wally 1:5.0.53-1.mga9 ++ Revision: 1758372 +- new version 5.0.53 + +* Sat Jul 31 2021 wally 1:5.0.3-1.mga9 ++ Revision: 1738401 +- new version 5.0.3 + +* Sun May 30 2021 wally 1:4.5.15-1.mga9 ++ Revision: 1728851 +- new version 4.5.15 + +* Sat Apr 10 2021 wally 1:4.5.1-1.mga9 ++ Revision: 1714620 +- new version 4.5.1 + +* Sun Mar 21 2021 wally 1:4.4.35-1.mga9 ++ Revision: 1706534 +- new version 4.4.35 + +* Sun Dec 27 2020 wally 1:4.4.21-1.mga8 ++ Revision: 1664111 +- new version 4.4.21 + +* Sat Dec 19 2020 wally 1:4.4.19-1.mga8 ++ Revision: 1661358 +- new version 4.4.19 + +* Thu Dec 10 2020 wally 1:4.4.13-1.mga8 ++ Revision: 1655182 +- new version 4.4.13 + +* Wed Dec 02 2020 luigiwalser 1:4.4.9-2.mga8 ++ Revision: 1651356 +- rebuild for glew + +* Mon Nov 23 2020 wally 1:4.4.9-1.mga8 ++ Revision: 1648767 +- new version 4.4.9 + +* Sun Oct 25 2020 wally 1:4.4.6-2.mga8 ++ Revision: 1639338 +- rebuild with new libsrtp2 + +* Sun Oct 25 2020 wally 1:4.4.6-1.mga8 ++ Revision: 1639259 +- new version 4.4.6 + +* Wed Oct 21 2020 wally 1:4.4.2-3.mga8 ++ Revision: 1637570 +- fix mediastreamer obsoletes and provides to include epoch +- update descriptions + +* Tue Oct 20 2020 eatdirt 1:4.4.2-2.mga8 ++ Revision: 1637380 +- Obsolete and Provide mediastream + +* Sat Oct 03 2020 wally 1:4.4.2-1.mga8 ++ Revision: 1632075 +- new version 4.4.2 +- new lib major 11 +- udpate URL + +* Mon Apr 20 2020 wally 1:4.3.1-2.mga8 ++ Revision: 1570094 +- rename as mediastreamer2 +- fix pkg-config .pc file + +* Sat Mar 28 2020 wally 1:4.3.1-1.mga8 ++ Revision: 1561411 +- new version 4.3.1 + +* Sat Feb 15 2020 umeabot 1:2.16.1-9.mga8 ++ Revision: 1524830 +- Mageia 8 Mass Rebuild ++ wally +- build with new cmake macros + +* Sun Mar 31 2019 daviddavid 1:2.16.1-8.mga7 ++ Revision: 1383391 +- rebuild for arm + +* Sun Feb 10 2019 zezinho 1:2.16.1-7.mga7 ++ Revision: 1365073 +- rebuild for libvpx 1.8.0 + +* Sun Sep 23 2018 umeabot 1:2.16.1-6.mga7 ++ Revision: 1299510 +- Mageia 7 Mass Rebuild + +* Mon May 21 2018 daviddavid 1:2.16.1-5.mga7 ++ Revision: 1230928 +- rebuild against latest libvpx (mga#23059) + +* Thu Apr 26 2018 daviddavid 1:2.16.1-4.mga7 ++ Revision: 1222639 +- rebuild for new ffmpeg 4.0 + +* Fri Feb 02 2018 daviddavid 1:2.16.1-3.mga7 ++ Revision: 1198551 +- rebuild for new libvpx 1.7.0 + +* Mon Jan 01 2018 wally 1:2.16.1-2.mga7 ++ Revision: 1188539 +- fix devel pkg requires +- add more general provides to devel pkg + +* Sun Dec 31 2017 wally 1:2.16.1-1.mga7 ++ Revision: 1188376 +- new version 2.16.1 +- switch to cmake build + +* Sat Dec 30 2017 wally 1:2.14.0-8.mga7 ++ Revision: 1188093 +- add patch to fix build with new bctoolbox +- rebuild for new libbctoolbox ++ tv +- rebuild for new libbctoolbox + +* Wed Jul 19 2017 cjw 1:2.14.0-6.mga7 ++ Revision: 1125323 +- rebuild for new libvpx + +* Tue May 02 2017 akien 1:2.14.0-5.mga6 ++ Revision: 1098305 +- Rebuild for ffmpeg 3.3 + +* Fri Mar 10 2017 akien 1:2.14.0-4.mga6 ++ Revision: 1091626 +- Rebuild for v4l-utils 1.12.3 + +* Thu Mar 09 2017 neoclust 1:2.14.0-3.mga6 ++ Revision: 1090741 +- Rebuild for armv5 + +* Wed Mar 08 2017 akien 1:2.14.0-2.mga6 ++ Revision: 1089877 +- Rebuild for ffmpeg 3.2.4 + +* Fri Dec 02 2016 daviddavid 1:2.14.0-1.mga6 ++ Revision: 1071700 +- new version: 2.14.0 +- now libmajor is 7 +- rename and rediff linkage_fix patch +- add BR pkgconfig(bctoolbox) +- pass NOCONFIGURE=1 to autogen ++ tmb +- rebuild for new ortp + +* Fri Jan 15 2016 luigiwalser 1:2.12.0-2.mga6 ++ Revision: 923164 +- rebuild to regenerate devel deps + +* Mon Nov 16 2015 oden 1:2.12.0-1.mga6 ++ Revision: 903588 +- soname bump to 6 +- 2.12.0 + +* Mon Aug 24 2015 sander85 1:2.11.2-2.mga6 ++ Revision: 869124 +- Rebuild for glew 1.13.0 + +* Sun Aug 02 2015 oden 1:2.11.2-1.mga6 ++ Revision: 860701 +- fix br: vim-common +- imported package mediastreamer +