%global debug_package %{nil} Name: msgpack-cpp Version: 7.0.0 Release: %autorelease Summary: Binary-based efficient object serialization library License: BSL-1.0 URL: http://msgpack.org Source0: https://github.com/msgpack/msgpack-c/archive/refs/tags/c-%{version}/msgpack-c-cpp-%{version}.tar.gz BuildRequires: make BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: doxygen BuildRequires: cjson-devel BuildRequires: msgpack-devel >= 6.1.0 BuildRequires: boost-devel BuildRequires: gtest-devel BuildRequires: zlib-devel %description MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller. Small integers are encoded into a single byte and short strings require only one extra byte in addition to the strings themselves. %package devel Summary: Libraries and header files for %{name} Requires: msgpack%{?_isa} >= 6.1.0 %description devel Libraries and header files for %{name} %prep %autosetup -n msgpack-c-cpp-%{version} # Change CMAKE_MINIMUM_REQUIRED sed -i.backup "s|3.5|3.10|" CMakeLists.txt %build # NOTE: `-DMSGPACK_BUILD_TESTS=ON` doesn't work with `-DMSGPACK_USE_BOOST=OFF`. %cmake -DMSGPACK_BUILD_TESTS:BOOL=ON -DMSGPACK_USE_BOOST=ON \ -DMSGPACK_CXX11:BOOL=OFF \ -DMSGPACK_CXX14:BOOL=OFF \ -DMSGPACK_CXX17:BOOL=OFF \ -DMSGPACK_CXX20:BOOL=ON %cmake_build %check export GTEST_FILTER=-object_with_zone.ext_empty %ctest cat %_vpath_builddir/Testing/Temporary/LastTest.log %install %cmake_install %files devel %license LICENSE_1_0.txt COPYING %doc *.md NOTICE %dir %{_includedir}/msgpack %{_includedir}/msgpack/* %{_includedir}/msgpack.hpp %{_libdir}/cmake/msgpack-cxx/ %changelog %autochangelog