bctoolbox/bctoolbox.spec

193 lines
6.7 KiB
RPMSpec
Raw Normal View History

Name: bctoolbox
Version: 5.3.15
Release: 1mamba
Summary: Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://linphone.org
Source: https://github.com/BelledonneCommunications/bctoolbox.git/%{version}/bctoolbox-%{version}.tar.bz2
Patch0: bctoolbox-0.6.0-ftbfs-arm.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libmbedtls-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: libmbedtls2-devel
BuildRequires: libbcunit-devel >= 3.0.2.20200229git-2mamba
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone.
%package -n lib%{name}
Group: System/Libraries
Summary: Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone
%description -n lib%{name}
Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#%ifarch arm
#% patch0 -p1
#%endif
sed -i '89i include_directories(%{_includedir}/mbedtls2)' CMakeLists.txt
sed -i -e "s|PRIVATE \${MBEDTLS_TARGETS}|PRIVATE \${MBEDTLS_TARGETS} -L%{_libdir}/mbedtls2|" src/CMakeLists.txt
%build
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
%cmake -d build \
-DDISABLE_MBEDTLS_SEARCH=ON \
-DENABLE_STRICT=OFF \
-DENABLE_STATIC=OFF \
-DCMAKE_C_FLAGS="${CFLAGS} -Wno-error=unused-parameter" \
-DENABLE_TESTS_COMPONENT=OFF
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libbctoolbox.so.*
%doc LICENSE.txt
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/bctoolbox
%{_includedir}/bctoolbox/*
%{_libdir}/libbctoolbox.so
%dir %{_datadir}/BCToolbox
%dir %{_datadir}/BCToolbox/cmake
%{_datadir}/BCToolbox/cmake/*
%{_libdir}/pkgconfig/bctoolbox.pc
%changelog
* Sat Feb 03 2024 Automatic Build System <autodist@openmamba.org> 5.3.15-1mamba
- automatic version update by autodist
* Tue Jan 09 2024 Automatic Build System <autodist@openmamba.org> 5.3.7-1mamba
- automatic version update by autodist
* Thu Jan 04 2024 Automatic Build System <autodist@mambasoft.it> 5.3.6-1mamba
- automatic version update by autodist
* Tue Jan 02 2024 Automatic Build System <autodist@mambasoft.it> 5.3.5-1mamba
- automatic version update by autodist
* Mon Dec 18 2023 Automatic Build System <autodist@mambasoft.it> 5.2.112-1mamba
- automatic version update by autodist
* Mon Nov 27 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.111-2mamba
- rebuilt with -DENABLE_TEST_COMPONENT=OFF to disable requirement for libmbedtls 3
* Thu Nov 23 2023 Automatic Build System <autodist@mambasoft.it> 5.2.111-1mamba
- automatic version update by autodist
* Tue Jan 04 2022 Automatic Build System <autodist@mambasoft.it> 5.0.63-1mamba
- automatic version update by autodist
* Wed Dec 29 2021 Automatic Build System <autodist@mambasoft.it> 5.0.61-1mamba
- automatic version update by autodist
* Thu Dec 16 2021 Automatic Build System <autodist@mambasoft.it> 5.0.58-1mamba
- automatic version update by autodist
* Tue Nov 30 2021 Automatic Build System <autodist@mambasoft.it> 5.0.55-1mamba
- automatic version update by autodist
* Sun Nov 28 2021 Automatic Build System <autodist@mambasoft.it> 5.0.53-1mamba
- automatic version update by autodist
* Thu Oct 21 2021 Automatic Build System <autodist@mambasoft.it> 5.0.37-1mamba
- automatic version update by autodist
* Fri Oct 15 2021 Automatic Build System <autodist@mambasoft.it> 5.0.35-1mamba
- automatic version update by autodist
* Fri Oct 08 2021 Automatic Build System <autodist@mambasoft.it> 5.0.32-1mamba
- automatic version update by autodist
* Thu Sep 30 2021 Automatic Build System <autodist@mambasoft.it> 5.0.28-1mamba
- automatic version update by autodist
* Sat Sep 25 2021 Automatic Build System <autodist@mambasoft.it> 5.0.26-1mamba
- automatic version update by autodist
* Thu Sep 23 2021 Automatic Build System <autodist@mambasoft.it> 5.0.24-1mamba
- automatic version update by autodist
* Fri Sep 17 2021 Automatic Build System <autodist@mambasoft.it> 5.0.23-1mamba
- automatic version update by autodist
* Thu Sep 16 2021 Automatic Build System <autodist@mambasoft.it> 5.0.22-1mamba
- automatic version update by autodist
* Mon Sep 06 2021 Automatic Build System <autodist@mambasoft.it> 5.0.18-1mamba
- automatic version update by autodist
* Thu Sep 02 2021 Automatic Build System <autodist@mambasoft.it> 5.0.15-1mamba
- automatic version update by autodist
* Tue Aug 31 2021 Automatic Build System <autodist@mambasoft.it> 5.0.13-1mamba
- automatic version update by autodist
* Tue Aug 10 2021 Automatic Build System <autodist@mambasoft.it> 5.0.5-1mamba
- automatic version update by autodist
* Fri Jul 30 2021 Automatic Build System <autodist@mambasoft.it> 5.0.3-1mamba
- automatic version update by autodist
* Fri Jul 09 2021 Automatic Build System <autodist@mambasoft.it> 5.0.0-1mamba
- automatic version update by autodist
* Fri Jun 25 2021 Automatic Build System <autodist@mambasoft.it> 4.5.22-1mamba
- automatic version update by autodist
* Tue Jun 15 2021 Automatic Build System <autodist@mambasoft.it> 4.5.20-1mamba
- automatic version update by autodist
* Fri May 14 2021 Automatic Build System <autodist@mambasoft.it> 4.5.15-1mamba
- automatic version update by autodist
* Fri May 07 2021 Automatic Build System <autodist@mambasoft.it> 4.5.13-1mamba
- automatic version update by autodist
* Sat Feb 29 2020 Automatic Build System <autodist@mambasoft.it> 4.3.1-1mamba
- automatic version update by autodist
* Mon Oct 02 2017 Automatic Build System <autodist@mambasoft.it> 0.6.0-1mamba
- automatic version update by autodist
* Sat Mar 18 2017 Automatic Build System <autodist@mambasoft.it> 0.5.1-1mamba
- automatic version update by autodist
* Sat Dec 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-1mamba
- package created using the webbuild interface