commit 488c8c902b13ae4529e02facbe6569db5a35e2cf Author: Sergey Cherevko Date: Thu May 30 11:37:45 2024 +0300 import ortp-5.3.5-1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9894639 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ortp-5.3.5.tar.gz diff --git a/.ortp.metadata b/.ortp.metadata new file mode 100644 index 0000000..4bb29c3 --- /dev/null +++ b/.ortp.metadata @@ -0,0 +1 @@ +127f37de9d5c1b7ddd7f384c0100858cc0ff56df SOURCES/ortp-5.3.5.tar.gz diff --git a/SOURCES/ortp-CMake-modules-install-dir.patch b/SOURCES/ortp-CMake-modules-install-dir.patch new file mode 100644 index 0000000..690a55c --- /dev/null +++ b/SOURCES/ortp-CMake-modules-install-dir.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index edbcf65..a5eb4af 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -212,7 +212,7 @@ if (ENABLE_PACKAGE_SOURCE) + 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}" + NO_SET_AND_CHECK_MACRO diff --git a/SOURCES/ortp-cmake-fix-pkgconfig-pc-file.patch b/SOURCES/ortp-cmake-fix-pkgconfig-pc-file.patch new file mode 100644 index 0000000..cd40b57 --- /dev/null +++ b/SOURCES/ortp-cmake-fix-pkgconfig-pc-file.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9d4cf0d..baf3a7b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -185,8 +185,8 @@ endif() + + + set(prefix ${CMAKE_INSTALL_PREFIX}) +-set(exec_prefix ${prefix}/bin) +-set(libdir ${prefix}/lib) ++set(exec_prefix ${prefix}/libexec) ++set(libdir ${prefix}/lib${LIB_SUFFIX}) + set(includedir ${prefix}/include) + set(ORTP_PKGCONFIG_VERSION "${ORTP_VERSION}") + set(ORTPDEPS_LIBS ) diff --git a/SPECS/ortp.spec b/SPECS/ortp.spec new file mode 100644 index 0000000..c46557c --- /dev/null +++ b/SPECS/ortp.spec @@ -0,0 +1,363 @@ +%define major 15 +%define libname %{name}-libs +%define libnamedev %{name}-devel + +Summary: Real-time Transport Protocol Stack +Name: ortp +Version: 5.3.5 +Release: 1%{?dist}.inferit +License: LGPLv2+ +Group: Networking/Other +URL: https://linphone.org/technical-corner/ortp +Source0: https://gitlab.linphone.org/BC/public/ortp/-/archive/%{version}/ortp-%{version}.tar.gz +# (wally) fix pkconfig pc file when cmake is used +Patch0: ortp-cmake-fix-pkgconfig-pc-file.patch +Patch1: ortp-CMake-modules-install-dir.patch +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: pkgconfig(bctoolbox) >= %{version} +BuildRequires: pkgconfig(openssl) + +%description +oRTP is a LGPL licensed C library implementing the RTP protocol +(RFC1889). It is available for most unix clones (primarily Linux and +HP-UX), and Microsoft Windows. + +%package -n %{libname} +Summary: Real-time Transport Protocol Stack +Group: System/Libraries + + +%description -n %{libname} +oRTP is a LGPL licensed C library implementing the RTP protocol +(RFC1889). It is available for most unix clones (primarily Linux and +HP-UX), and Microsoft Windows. + +%package -n %{libnamedev} +Summary: Headers, libraries and docs for the oRTP library +Group: Development/Other +Provides: %{name}-devel = %{version}-%{release} +Provides: lib%{name}-devel = %{version}-%{release} +Requires: %{libname} = %{version}-%{release} + +%description -n %{libnamedev} +oRTP is a LGPL licensed C library implementing the RTP protocol +(RFC1889). It is available for most unix clones (primarily Linux and +HP-UX), and Microsoft Windows. + +This package contains header files and development libraries needed to +develop programs using the oRTP library. + +%prep +%setup -q +sed -i -e 's,\r$,,' CMakeLists.txt +%autopatch -p1 + +# Fix version +sed -i -e '/project/s/\(VERSION\)\s\+[0-9]\+\(\.[0-9]\+\)\+/\1 %{version}/' CMakeLists.txt + +%build +%cmake -GNinja \ + -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ + -DENABLE_STATIC:BOOL=NO \ + -DENABLE_STRICT:BOOL=NO \ + -DENABLE_DOC:BOOL=NO \ + -DENABLE_UNIT_TESTS:BOOL=NO +%cmake_build + +%install +%cmake_install + +#handle docs in file section +rm -rf %{buildroot}%{_docdir} + +%files -n %{libname} +%license LICENSE* +%doc AUTHORS* CHANGELOG* README* +%{_libdir}/*.so.%{major}{,.*} + +%files -n %{libnamedev} +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/%{name}/ +%{_libdir}/cmake/Ortp/ + + +%changelog +* Thu May 30 2024 Sergey Cherevko - 5.3.5-1.inferit +- Rebuilt for MSVSphere 9.4 + +* Sat Dec 30 2023 wally 5.3.5-1.mga10 ++ Revision: 2024671 +- new version 5.3.5 + +* Fri Jun 09 2023 wally 5.2.70-1.mga9 ++ Revision: 1961522 +- new version 5.2.70 + +* Sat Dec 24 2022 wally 5.2.4-1.mga9 ++ Revision: 1926259 +- new version 5.2.4 + +* Sun Dec 04 2022 wally 5.1.72-1.mga9 ++ Revision: 1917534 +- new version 5.1.72 +- build using ninja + +* Tue Aug 23 2022 wally 5.1.55-1.mga9 ++ Revision: 1879622 +- new version 5.1.55 + +* Wed May 04 2022 wally 5.1.12-2.mga9 ++ Revision: 1856169 +- rebuild to core/release + +* Tue May 03 2022 wally 5.1.12-1.mga9 ++ Revision: 1855656 +- new version 5.1.12 + +* Thu Mar 17 2022 umeabot 5.0.53-2.mga9 ++ Revision: 1796793 +- Mageia 9 Mass Rebuild + +* Sun Nov 21 2021 wally 5.0.53-1.mga9 ++ Revision: 1758354 +- new version 5.0.53 + +* Sat Jul 31 2021 wally 5.0.0-1.mga9 ++ Revision: 1738378 +- new version 5.0.0 + +* Sun May 30 2021 wally 4.5.15-1.mga9 ++ Revision: 1728850 +- new version 4.5.15 + +* Sat Apr 10 2021 wally 4.5.1-1.mga9 ++ Revision: 1714619 +- new version 4.5.1 + +* Sun Mar 21 2021 wally 4.4.34-1.mga9 ++ Revision: 1706477 +- new version 4.4.34 + +* Sun Dec 27 2020 wally 4.4.21-1.mga8 ++ Revision: 1664103 +- new version 4.4.21 + +* Sat Dec 19 2020 wally 4.4.19-1.mga8 ++ Revision: 1661346 +- new version 4.4.19 + +* Thu Dec 10 2020 wally 4.4.13-1.mga8 ++ Revision: 1655177 +- new version 4.4.13 + +* Mon Nov 23 2020 wally 4.4.9-1.mga8 ++ Revision: 1648758 +- new version 4.4.9 + +* Sun Oct 25 2020 wally 4.4.6-1.mga8 ++ Revision: 1639231 +- new version 4.4.6 +- obsolete old ortp9 devel pkg + +* Sat Oct 03 2020 wally 4.4.0-1.mga8 ++ Revision: 1632020 +- new version 4.4.0 + +* Sat Mar 28 2020 wally 4.3.2-1.mga8 ++ Revision: 1561401 +- new version 4.3.2 +- new lib major 14 + +* Fri Feb 14 2020 umeabot 1.0.2-3.mga8 ++ Revision: 1515734 +- Mageia 8 Mass Rebuild ++ wally +- build with new cmake macros + +* Sun Sep 23 2018 umeabot 1.0.2-2.mga7 ++ Revision: 1300061 +- Mageia 7 Mass Rebuild ++ wally +- add more strict requires to devel pkg +- drop old obsoletes + +* Sun Dec 31 2017 wally 1.0.2-1.mga7 ++ Revision: 1188314 +- new version 1.0.2 +- new lib major 13 +- switch to cmake build +- disable doc build + +* Wed Nov 22 2017 tv 0.27.0-3.mga7 ++ Revision: 1178715 +- rebuild for new libbctoolbox + +* Fri Dec 02 2016 daviddavid 0.27.0-2.mga6 ++ Revision: 1071681 +- use new rpm macros +- switch BRs to pkgconfig() + +* Tue Nov 29 2016 zezinho 0.27.0-1.mga6 ++ Revision: 1071032 +- add BR on bctoolbox +- new major version +- new version ++ umeabot +- Mageia 6 Mass Rebuild + +* Mon Nov 16 2015 oden 0.25.0-1.mga6 ++ Revision: 903565 +- soname bump to 10 +- 0.25.0 + +* Sun Aug 02 2015 oden 0.24.2-1.mga6 ++ Revision: 860707 +- 0.24.2 + +* Thu Apr 30 2015 oden 0.24.1-1.mga6 ++ Revision: 820861 +- 0.24.1 + +* Wed Oct 15 2014 umeabot 0.23.0-3.mga5 ++ Revision: 746496 +- Second Mageia 5 Mass Rebuild + +* Tue Sep 16 2014 umeabot 0.23.0-2.mga5 ++ Revision: 683274 +- Mageia 5 Mass Rebuild + +* Sat Feb 22 2014 luigiwalser 0.23.0-1.mga5 ++ Revision: 595664 +- 0.23.0 + +* Sat Oct 19 2013 umeabot 0.22.0-2.mga4 ++ Revision: 528856 +- Mageia 4 Mass Rebuild ++ fwang +- drop srtp support as ortp requires private branch of srtp +- build with srtp + +* Fri Jun 28 2013 fwang 0.22.0-1.mga4 ++ Revision: 447688 +- update file list +- update libmajor +- update rpm group +- new version 0.22.0 ++ umeabot +- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + +* Sun Aug 05 2012 luigiwalser 0.20.0-1.mga3 ++ Revision: 278887 +- 0.20.0 + +* Tue Dec 27 2011 fwang 0.18.0-1.mga2 ++ Revision: 188082 +- upload tarbal +- new version 0.18.0 + +* Mon Dec 26 2011 fwang 0.16.5-1.mga2 ++ Revision: 187822 +- new version 0.16.5 + +* Thu Jan 20 2011 ahmad 0.16.3-2.mga1 ++ Revision: 26402 +- drop old/unneeded scriptlets +- imported package ortp + + +* Fri Aug 06 2010 Ahmad Samir 0.16.3-1mdv2011.0 ++ Revision: 566539 +- update to 0.16.3 +- drop patch0, hasn't been applied for some time (and Fedora already dropped it) +- update source url + +* Wed Apr 07 2010 Funda Wang 0.16.1-4mdv2010.1 ++ Revision: 532520 +- rebuild + +* Fri Feb 26 2010 Oden Eriksson 0.16.1-3mdv2010.1 ++ Revision: 511607 +- rebuilt against openssl-0.9.8m + +* Sun Sep 27 2009 Olivier Blin 0.16.1-2mdv2010.0 ++ Revision: 450190 +- fix build by adding missing read() check on non-x86, because it + fallbacks to reading /dev/random to get random data and never checks + read() return value; as we're building with Werror, it fails to + build (from Arnaud Patard) + +* Sun Sep 20 2009 Funda Wang 0.16.1-1mdv2010.0 ++ Revision: 444862 +- New version 0.16.1 + +* Tue May 05 2009 Funda Wang 0.16.0-1mdv2010.0 ++ Revision: 372136 +- New version 0.16.0 + +* Wed Feb 18 2009 Emmanuel Andry 0.15.0-1mdv2009.1 ++ Revision: 342649 +- BR doxygen +- New version 0.15.0 +- New major 8 +- apply devel library policy +- fix license +- disable P0 (doesn't apply, and can't check if still needed because of ppc arch +- BR openssl-devel +- enable ipv6 +- package doc + +* Sat Oct 25 2008 Nicolas Lécureuil 0.13.1-1mdv2009.1 ++ Revision: 297027 +- Fix File list +- Fix File list +- New version (needed by kdenetwork 4.1.71) + +* Sat Jun 28 2008 Oden Eriksson 0.10.0-5mdv2009.0 ++ Revision: 229672 +- rebuild + + + Thierry Vignaud + - rebuild + + + Pixel + - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + +* Tue Mar 04 2008 Oden Eriksson 0.10.0-3mdv2008.1 ++ Revision: 179114 +- rebuild + + + Olivier Blin + - restore BuildRoot + + + Thierry Vignaud + - kill re-definition of %%buildroot on Pixel's request + + +* Wed Jan 03 2007 Emmanuel Blindauer 0.10.0-2mdv2007.0 ++ Revision: 103558 +- fix ppc build (patch 0) +- Import ortp + +* Fri Jun 16 2006 Austin Acton 0.10.0-2mdv2007.0 +- major 5 + +* Fri Jun 16 2006 Austin Acton 0.10.0-1mdv2007.0 +- New release 0.10.0 + +* Thu Mar 09 2006 Austin Acton 0.9.0-1mdk +- New release 0.9.0 +- major 4 +- move docs to devel package +- buildrequires gtk-doc + +* Mon Feb 13 2006 Oden Eriksson 0.8.1-1mdk +- 0.8.1 + +* Tue Dec 20 2005 Lenny Cartier 0.8.0-1mdk +- 0.8.0 + +* Wed Oct 26 2005 Francois-Xavier Kowalski +- Add to oRTP distribution with "make rpm" target +