# disable for now as it need locales, and the golang-github-burntsushi-toml-test # package is too outdated to use. # https://github.com/marzer/tomlplusplus/blob/master/CONTRIBUTING.md # https://github.com/marzer/tomlplusplus/blob/master/toml-test/README.md %bcond_with check Name: tomlplusplus Version: 3.3.0 Release: %autorelease Summary: Header-only TOML config file parser and serializer for C++17 License: MIT URL: https://github.com/marzer/tomlplusplus Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: meson BuildRequires: cmake %if %{?fedora} <= 38 BuildRequires: catch-devel %else BuildRequires: catch2-devel %endif %description toml++ is a TOML config parser and serializer for c++. - Header-only (optional!) - Supports the latest [TOML] release ([v1.0.0]), plus optional support for some unreleased TOML features - Passes all tests in the [toml-test](https://github.com/BurntSushi/toml-test) suite - Supports serializing to JSON and YAML - Proper UTF-8 handling (incl. BOM) - C++17 (plus some C++20 features where available, e.g. experimental support for [char8_t] strings) - Doesn't require RTTI - Works with or without exceptions - Tested on Clang (6+), GCC (7+) and MSVC (VS2019) - Tested on x64, x86 and ARM %package devel Summary: Development libraries and header files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup %build %global _vpath_builddir build-release %meson %meson_build %if %{with check} %global _vpath_builddir build-test %meson --buildtype=debug \ -Ddevel=true \ -Duse_vendored_libs=false %meson_build %endif %install %global _vpath_builddir build-release %meson_install %if %{with check} %check %global _vpath_builddir build-test %meson_test %endif %files %license LICENSE %doc README.md %{_libdir}/libtomlplusplus.so.3* %files devel %{_includedir}/toml++/ %{_libdir}/cmake/tomlplusplus/ %{_libdir}/libtomlplusplus.so %{_libdir}/pkgconfig/tomlplusplus.pc %changelog %autochangelog