Name: msgpack Version: 6.1.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}/%{name}-c-c-%{version}.tar.gz BuildRequires: make BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: doxygen BuildRequires: cjson-devel BuildRequires: gtest-devel BuildRequires: zlib-devel %description MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages like JSON. But unlike JSON, it is very fast and small. %package devel Summary: Libraries and header files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Libraries and header files for %{name} %prep %autosetup -n %{name}-c-c-%{version} # Change CMAKE_MINIMUM_REQUIRED sed -i.backup "s|3.5|3.10|" CMakeLists.txt %build %cmake -DMSGPACK_BUILD_TESTS:BOOL=ON %cmake_build %check # https://github.com/msgpack/msgpack-c/issues/697 export GTEST_FILTER=-object_with_zone.ext_empty %ctest cat %_vpath_builddir/Testing/Temporary/LastTest.log %install %cmake_install %files %license LICENSE_1_0.txt COPYING %doc *.md NOTICE %{_libdir}/libmsgpack-c.so.2.0.0 %{_libdir}/libmsgpack-c.so.2 %files devel %dir %{_includedir}/msgpack %{_includedir}/msgpack/* %{_includedir}/msgpack.h %{_libdir}/libmsgpack-c.so %{_libdir}/pkgconfig/msgpack-c.pc %{_libdir}/cmake/msgpack-c/ %changelog %autochangelog