%global forgeurl https://github.com/ThePhD/sol2 Version: 3.3.0 Release: %{autorelease} %global tag v%{version} %forgemeta Name: sol2 Summary: a C++ <-> Lua API wrapper with advanced features and top notch performance License: MIT URL: %{forgeurl} Source: %{forgesource} BuildArch: noarch BuildRequires: cmake BuildRequires: ninja-build BuildRequires: pkgconfig(lua) %description %{summary}. %package devel Summary: Development libraries and header files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel %{summary}. %prep %{forgesetup} %build %cmake -G Ninja \ -DSOL2_CI=ON \ -DSOL2_BUILD_LUA=OFF \ -DSOL2_LUA_VERSION=5.4 %cmake_build %install %cmake_install #diabling tests as package tests require internet connection %files devel %{_includedir}/sol/ %{_libdir}/cmake/sol2/ %{_datadir}/pkgconfig/sol2.pc %doc README.md %license LICENSE.txt %changelog %autochangelog