%global debug_package %{nil} Name: cereal Version: 1.3.2 Release: 1 Summary: A header-only C++11 serialization library License: BSD Url: http://uscilab.github.io/cereal/ Source0: https://github.com/USCiLab/cereal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: cmake >= 3.0 %description cereal is a header-only C++11 serialization library. cereal takes arbitrary data types and reversibly turns them into different representations, such as compact binary encodings, XML, or JSON. cereal was designed to be fast, light-weight, and easy to extend - it has no external dependencies and can be easily bundled with other code or used standalone. %package devel Summary: Development headers and libraries for %{name} Provides: %{name}-static = %{version}-%{release} %description devel cereal is a header-only C++11 serialization library. cereal takes arbitrary data types and reversibly turns them into different representations, such as compact binary encodings, XML, or JSON. cereal was designed to be fast, light-weight, and easy to extend - it has no external dependencies and can be easily bundled with other code or used standalone. This package contains development headers and libraries for the cereal library %prep %autosetup -n %{name}-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake} .. -DSKIP_PORTABILITY_TEST=ON -DWITH_WERROR=OFF %make_build %install %make_install -C %{_target_platform} %check make -C %{_target_platform} test %files devel %doc README.md %license LICENSE %{_includedir}/%{name} %{_libdir}/cmake/%{name} %changelog * Fri Apr 22 2022 yaoxin - 1.3.2-1 - Package init