# Header-only package, but not noarch per guidelines %global debug_package %{nil} Name: tinytoml Version: 0.4 Release: 1%{?dist} Summary: A header only C++11 library for parsing TOML License: BSD URL: https://github.com/mayah/%{name} Source0: https://github.com/mayah/%{name}/archive/%{version}/%{name}-%{version}.tar.gz %description tinytoml is a tiny TOML parser for C++11 with following properties: * header file only * C++11 library friendly (array is std::vector, table is std::map, time is std::chrono::system_clock::time_point). * no external dependencies (note: we're using cmake for testing, but it's not required to use this library). We'd like to keep this library as handy as possible. %package devel Summary: %{summary} BuildRequires: cmake BuildRequires: gcc-c++ Provides: %{name}-static = %{version}-%{release} %description devel tinytoml is a tiny TOML parser for C++11 with following properties: * header file only * C++11 library friendly (array is std::vector, table is std::map, time is std::chrono::system_clock::time_point). * no external dependencies (note: we're using cmake for testing, but it's not required to use this library). We'd like to keep this library as handy as possible. %prep %autosetup -p1 %build %install install -m0644 -p -D include/toml/toml.h %{buildroot}%{_includedir}/%{name}/toml/toml.h %check %cmake src %make_build %make_build test %files devel %license LICENSE %doc README.md %{_includedir}/%{name}/toml/toml.h %changelog * Tue Mar 19 2019 Scott K Logan - 0.4-1 - Initial package