# Tests requires network access %bcond_with test # https://docs.fedoraproject.org/en-US/packaging-guidelines/#_do_not_use_noarch %global debug_package %{nil} %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif Name: toml11 Version: 4.4.0 Release: %mkrel 1 Summary: TOML for Modern C++ Summary(eo): TOML por moderna C++ Summary(tr): Modern C++ için TOML Group: Development/C++ License: MIT URL: https://github.com/ToruNiina/toml11 Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: (ninja or ninja-build) %if %{with test} BuildRequires: boost-devel BuildRequires: git-core %endif %global _description %{expand: toml11 is a C++11 (or later) header-only toml parser/encoder depending only on C++ standard library. * It is compatible to the latest version of TOML v1.0.0. * It is one of the most TOML standard compliant libraries, tested with the language agnostic test suite for TOML parsers by BurntSushi. * It shows highly informative error messages. You can see the error messages about invalid files at CircleCI. * It has configurable container. You can use any random-access containers and key-value maps as backend containers. * It optionally preserves comments without any overhead. * It has configurable serializer that supports comments, inline tables, literal strings and multiline strings. * It supports user-defined type conversion from/into toml values. * It correctly handles UTF-8 sequences, with or without BOM, both on posix and Windows.} %description %{_description} %description -l eo toml11 estas trajtoplena TOML-biblioteko de C++11/14/17/20. %description -l ja toml11ã¯ã€C++11,14,17,20ã®ãŸã‚ã®è±Šå¯Œãªæ©Ÿèƒ½ã‚’æŒã¤TOML言語ライブラリã§ã™ã€‚ * TOML言語ã®æœ€æ–°è¦æ ¼ã«æº–æ‹ ã—ã¦ã„ã¾ã™ã€‚ * TOML言語標準ã®ãƒ†ã‚¹ãƒˆã‚±ãƒ¼ã‚¹ã™ã¹ã¦ã«ãƒ‘スã—ã¦ã„ã¾ã™ã€‚ * TOML言語ã®æ¬¡æœŸãƒãƒ¼ã‚¸ãƒ§ãƒ³ (v1.1.0) ã«ãƒžãƒ¼ã‚¸ã•ã‚ŒãŸæ–°æ©Ÿèƒ½ã®ãã‚Œãžã‚Œã‚’試ã™ã“ã¨ãŒã§ãã¾ã™ã€‚ * エラーãŒèµ·ããŸä½ç½®ã‚’å«ã‚ãŸã‚ã‹ã‚Šã‚„ã™ã„エラーメッセージを出力ã—ã¾ã™ã€‚ * コメントもパースã—ã€å¯¾å¿œã™ã‚‹å€¤ã«ä¿å˜ã—ã¾ã™ã€‚ * 16進整数やクオートã®ç¨®é¡žãªã©ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆæƒ…å ±ã‚’ä¿æŒã—ã€ã‚·ãƒªã‚¢ãƒ©ã‚¤ã‚ºæ™‚ã«è€ƒæ…®ã—ã¾ã™ã€‚ * 例外を投ã’ãªã„ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’サãƒãƒ¼ãƒˆã—ã¾ã™ã€‚ * TOML値ã‹ã‚‰ã®è¤‡é›‘ãªåž‹å¤‰æ›ã‚’サãƒãƒ¼ãƒˆã—ã¾ã™ã€‚ * æ•´æ•°ã€æµ®å‹•å°æ•°ç‚¹æ•°ã€ã‚³ãƒ³ãƒ†ãƒŠç‰ã®åž‹ã‚’変更å¯èƒ½ã§ã™ã€‚ * TOML言語ã«ãªã„一部ã®æ‹¡å¼µæ©Ÿèƒ½ã‚’試ã™ã“ã¨ãŒã§ãã¾ã™ã€‚ %package devel Summary: Development files for %{name} Provides: %{name}-%{static} = %{version}-%{release} %description devel %{_description} Development files for %{name}. %description devel -l eo toml11 estas trajtoplena TOML-biblioteko de C++11/14/17/20. Äœi kongruas kun la plej freÅa specifo de TOML (kaj enhavas iujn trajtojn el la venonta specifo) kaj Äuste plenumas ties testaron. Äœi ankaÅ havas unikajn trajtojn kaj utilaĵojn por programistoj. Disvolvaj dosieroj por %{name}. %prep %autosetup -p1 %build %cmake \ -G Ninja \ %if %{with test} -DTOML11_BUILD_TEST=ON \ %endif -DCMAKE_CXX_STANDARD=11 \ -DTOML11_PRECOMPILE=ON \ %{nil} %cmake_build %install %cmake_install %files devel %license LICENSE %doc README.md %{_includedir}/*.hpp %{_includedir}/toml11/ %{_libdir}/*.so %{_libdir}/cmake/%{name}/