From eb15d10569ae86636f2896bafd2123239d57eb50 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Wed, 29 May 2024 12:35:13 +0300 Subject: [PATCH] import bctoolbox-5.3.5-2 --- .bctoolbox.metadata | 1 + .gitignore | 1 + .../bctoolbox-cmake-modules-install-dir.patch | 13 + .../bctoolbox-opensuse-fix-pkgconfig.patch | 7 + SPECS/bctoolbox.spec | 264 ++++++++++++++++++ 5 files changed, 286 insertions(+) create mode 100644 .bctoolbox.metadata create mode 100644 .gitignore create mode 100644 SOURCES/bctoolbox-cmake-modules-install-dir.patch create mode 100644 SOURCES/bctoolbox-opensuse-fix-pkgconfig.patch create mode 100644 SPECS/bctoolbox.spec diff --git a/.bctoolbox.metadata b/.bctoolbox.metadata new file mode 100644 index 0000000..6c0c8a5 --- /dev/null +++ b/.bctoolbox.metadata @@ -0,0 +1 @@ +dcaf4b0f287e0740eca6360c68e90b498f468474 SOURCES/bctoolbox-5.3.5.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9575d0a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/bctoolbox-5.3.5.tar.gz diff --git a/SOURCES/bctoolbox-cmake-modules-install-dir.patch b/SOURCES/bctoolbox-cmake-modules-install-dir.patch new file mode 100644 index 0000000..273e266 --- /dev/null +++ b/SOURCES/bctoolbox-cmake-modules-install-dir.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 78450fb..cdea3f0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -145,7 +145,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}" + PATH_VARS CMAKE_MODULES_INSTALL_DIR diff --git a/SOURCES/bctoolbox-opensuse-fix-pkgconfig.patch b/SOURCES/bctoolbox-opensuse-fix-pkgconfig.patch new file mode 100644 index 0000000..bb367da --- /dev/null +++ b/SOURCES/bctoolbox-opensuse-fix-pkgconfig.patch @@ -0,0 +1,7 @@ +--- a/bctoolbox.pc.in ++++ b/bctoolbox.pc.in +@@ -8,3 +8,4 @@ Version: @PROJECT_VERSION@ + Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbctoolbox + Libs.private: @LIBS_PRIVATE@ + Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@ ++Requires.private: bcunit zlib diff --git a/SPECS/bctoolbox.spec b/SPECS/bctoolbox.spec new file mode 100644 index 0000000..8771a7a --- /dev/null +++ b/SPECS/bctoolbox.spec @@ -0,0 +1,264 @@ +%define major 1 +%define libname %{name}-libs +%define libtestername %{name}-tester-libs +%define develname %{name}-devel + +%bcond_without tester + +Name: bctoolbox +Version: 5.3.5 +Release: 2%{?dist}.inferit +Summary: Utility library for software from Belledonne Communications +License: GPLv3+ +Group: Development/C++ +Url: https://linphone.org +Source0: https://github.com/BelledonneCommunications/bctoolbox/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: bctoolbox-opensuse-fix-pkgconfig.patch +Patch1: bctoolbox-cmake-modules-install-dir.patch +BuildRequires: cmake +BuildRequires: cmake(BCUnit) >= 5.3.5 +BuildRequires: ninja-build +BuildRequires: gcc-c++ +BuildRequires: mbedtls-devel +BuildRequires: pkgconfig(zlib) + +%description +Utilities library used by Belledonne Communications software like +belle-sip, mediastreamer2 and linphone. + +%package tester +Summary: Tester wrappers used by Belledonne Communications's softwares + +%description tester +A common set of tester wrappers used by Belledonne Communications's softwares. + +%package -n %{develname} +Summary: Development files for %{name}, a utility library for linphone/belle-sip/etc +Group: Development/C++ +Requires: %{libname} = %{version}-%{release} +%if %{with tester} +Requires: %{libtestername} = %{version}-%{release} +Requires: %{name}-tester = %{version}-%{release} +%endif +Requires: pkgconfig(zlib) +Provides: %{name}-devel = %{version}-%{release} + +%description -n %{develname} +Utilities library used by Belledonne Communications software like +belle-sip, mediastreamer2 and linphone. + +This package contains development files. + +%package -n %{libname} +Summary: Utility library for software from Belledonne Communications +Group: System/Libraries +Provides: %{name} = %{version}-%{release} + +%description -n %{libname} +Utilities library used by Belledonne Communications software like +belle-sip, mediastreamer2 and linphone. + +This package the contains shared library. + +%package -n %{libtestername} +Summary: Utility library for software from Belledonne Communications +Group: System/Libraries +Provides: %{name}-tester = %{version}-%{release} + +%description -n %{libtestername} +Utilities library used by Belledonne Communications software like +belle-sip, mediastreamer2 and linphone. + +This package the contains shared library for testing component. + +%prep +%setup -q +%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_STRICT:BOOL=NO \ + -DENABLE_STATIC:BOOL=NO \ + -DENABLE_POLARSSL:BOOL=NO \ + -DMBEDTLS_V2:BOOL=YES \ + -DENABLE_TESTS_COMPONENT:BOOL=%{?with_tester:YES}%{!?with_tester:NO} +%cmake_build + +%install +%cmake_install + +%files -n %{libname} +%license LICENSE.txt +%{_libdir}/lib%{name}.so.%{major}{,.*} + +%if %{with tester} +%files tester +%license LICENSE.txt +%{_bindir}/bctoolbox-tester + +%files -n %{libtestername} +%license LICENSE.txt +%{_libdir}/lib%{name}-tester.so.%{major}{,.*} +%endif + +%files -n %{develname} +%license LICENSE.txt +%doc README.md +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/lib%{name}.so +%{_libdir}/cmake/BCToolbox/ +%{_includedir}/%{name}/ +%if %{with tester} +%{_libdir}/pkgconfig/bctoolbox-tester.pc +%{_libdir}/lib%{name}-tester.so +%endif + + +%changelog +* Tue May 28 2024 Sergey Cherevko - 5.3.5-2.inferit +- Rebuilt for MSVSphere 9.4 + +* Sun Dec 31 2023 wally 5.3.5-2.mga10 ++ Revision: 2024886 +- move cmake config files into libdir + +* Sat Dec 30 2023 wally 5.3.5-1.mga10 ++ Revision: 2024664 +- new version 5.3.5 +- enable tester lib and tool + +* Fri Jun 09 2023 wally 5.2.70-1.mga9 ++ Revision: 1961508 +- new version 5.2.70 + +* Sat Dec 24 2022 wally 5.2.4-1.mga9 ++ Revision: 1926256 +- new version 5.2.4 + +* Sun Dec 04 2022 wally 5.1.72-1.mga9 ++ Revision: 1917525 +- new version 5.1.72 +- build with ninja + +* Fri Aug 19 2022 wally 5.1.55-1.mga9 ++ Revision: 1878740 +- new version 5.1.55 + +* Tue May 03 2022 wally 5.1.17-1.mga9 ++ Revision: 1855646 +- new version 5.1.17 + +* Wed Mar 16 2022 luigiwalser 5.1.0-1.mga9 ++ Revision: 1795087 +- 5.1.0 + +* Tue Jan 11 2022 akien 5.0.53-2.mga9 ++ Revision: 1767997 +- Rebuild for mbedtls 2.28.0 + +* Sun Nov 21 2021 wally 5.0.53-1.mga9 ++ Revision: 1758335 +- new version 5.0.53 + +* Sat Jul 31 2021 wally 5.0.3-1.mga9 ++ Revision: 1738375 +- new version 5.0.3 + +* Sun May 30 2021 wally 4.5.15-1.mga9 ++ Revision: 1728842 +- new version 4.5.15 + +* Sat Apr 10 2021 wally 4.5.1-1.mga9 ++ Revision: 1714602 +- new version 4.5.1 + +* Sun Mar 21 2021 wally 4.4.34-1.mga9 ++ Revision: 1706436 +- new version 4.4.34 + +* Sun Dec 27 2020 wally 4.4.21-1.mga8 ++ Revision: 1664099 +- new version 4.4.21 + +* Sat Dec 19 2020 wally 4.4.19-1.mga8 ++ Revision: 1661340 +- new version 4.4.19 + +* Thu Dec 10 2020 wally 4.4.13-1.mga8 ++ Revision: 1655173 +- new version 4.4.13 + +* Mon Nov 23 2020 wally 4.4.9-1.mga8 ++ Revision: 1648756 +- new version 4.4.9 + +* Sun Oct 25 2020 wally 4.4.6-1.mga8 ++ Revision: 1639229 +- new version 4.4.6 + +* Sat Oct 03 2020 wally 4.4.0-1.mga8 ++ Revision: 1632012 +- new version 4.4.0 + +* Sat Mar 28 2020 wally 4.3.1-1.mga8 ++ Revision: 1561358 +- new version 4.3.1 + +* Sat Mar 28 2020 wally 0.6.0-6.mga8 ++ Revision: 1561319 +- build with new cmake macros ++ umeabot +- Mageia 8 Mass Rebuild + +* Wed Apr 03 2019 akien 0.6.0-5.mga7 ++ Revision: 1385572 +- Rebuild for mbedtls 2.16.1 + +* Fri Sep 21 2018 umeabot 0.6.0-4.mga7 ++ Revision: 1295354 +- Mageia 7 Mass Rebuild + +* Tue May 08 2018 kekepower 0.6.0-3.mga7 ++ Revision: 1227676 +- Rebuild for new mbedtls + +* Wed Mar 07 2018 kekepower 0.6.0-2.mga7 ++ Revision: 1207006 +- Rebuild for new mbedtls + +* Sat Nov 04 2017 zezinho 0.6.0-1.mga7 ++ Revision: 1175955 +- build against just packaged BCUnit 3 + +* Sun Jan 22 2017 akien 0.2.0-4.mga6 ++ Revision: 1083036 +- Rebuild for mbedtls 2.4.0 + +* Fri Dec 02 2016 daviddavid 0.2.0-3.mga6 ++ Revision: 1071679 +- fix devel subpackage name +- remove some useless hardcoded requires + +* Tue Nov 29 2016 zezinho 0.2.0-2.mga6 ++ Revision: 1071025 +- fix requires +- now it builds +- mageia way from suse +- imported package bctoolbox + + +* Sat Aug 27 2016 jengelh@inai.de +- Remove extraneous pkgconfig require +* Sat Aug 27 2016 mpluskal@suse.com +- Merge changes from home:X0F:HSF +- Fix generation of pkgconfig files + * bctoolbox-pkgconfig_1.patch + * bctoolbox-pkgconfig_2.patch +* Mon Aug 15 2016 jengelh@inai.de +- Update summary and rpm groups +* Fri Aug 12 2016 mpluskal@suse.com +- Initial package for version 0.2.0