Name: bctoolbox Version: 5.2.45 Release: 1%{?dist} Summary: Utility library for software from Belledonne Communications and others License: GPL-2.0-or-later URL: https://gitlab.linphone.org/BC/public/bctoolbox/ Source: https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/%{version}/%{name}-%{version}.tar.gz # Patches. Patch00: 0001_bctoolbox_set_current_version.patch Patch01: 0002_bctoolbox_fix_pkgconfig.patch Patch02: 0003_bctoolbox_change_cmake_files_default_install_location.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: mbedtls-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(bcunit) BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(zlib) %description bctoolbox utilities library for software from Belledonne Communications and others. This package contains the bctoolbox shared library. %package devel Summary: Development files for bctoolbox utility library Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-tester%{?_isa} = %{version}-%{release} Requires: make Requires: mbedtls-devel %description devel bctoolbox utilities library for software from Belledonne Communications and others. This package contains the libraries, headers and other files required to develop software with bctoolbox. %package -n bctoolbox-tester Summary: Testing binary, library and files for bctoolbox utility library %description -n bctoolbox-tester bctoolbox utilities library for software from Belledonne Communications and others. This package contains the bctoolbox testing binary and shared library for the testing component. %prep %autosetup -p1 %build # Do not error/break compilation for -Werror=unused-parameter, just warn. %set_build_flags CFLAGS="$CFLAGS -Wno-error=unused-parameter -Wunused-parameter" CXXFLAGS="$CXXFLAGS -Wno-error=unused-parameter -Wunused-parameter" %cmake \ -DENABLE_DECAF=OFF \ -DENABLE_POLARSSL=OFF \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ -DENABLE_STATIC=OFF \ -DENABLE_TESTS_COMPONENT=ON \ -DENABLE_TESTS=ON %cmake_build %install %cmake_install %files %license LICENSE.txt %{_libdir}/libbctoolbox.so.1* %files -n bctoolbox-tester %license LICENSE.txt %{_bindir}/bctoolbox_tester %{_libdir}/libbctoolbox-tester.so.1* %files devel %doc CHANGELOG.md README.md %license LICENSE.txt %{_includedir}/bctoolbox/ # Note: cmake files location. We have moved location, see Patch03. %{_libdir}/cmake/bctoolbox/ %{_libdir}/pkgconfig/bctoolbox.pc %{_libdir}/libbctoolbox.so %{_libdir}/pkgconfig/bctoolbox-tester.pc %{_libdir}/libbctoolbox-tester.so %changelog * Fri Mar 31 2023 Phil Wyett - 5.2.45-1 - Initial package.