%global forgeurl https://github.com/quickjs-ng/quickjs Version: 0.13.0 %forgemeta Name: quickjs-ng Release: %{autorelease} Summary: QuickJS, the Next Generation: a mighty JavaScript engine License: MIT URL: https://quickjs-ng.github.io/quickjs/ Source0: %{forgesource} BuildRequires: cmake BuildRequires: gcc-c++ %description QuickJS is a small and embeddable JavaScript engine. It aims to support the latest ECMAScript specification. This project is a fork of the original QuickJS project by Fabrice Bellard and Charlie Gordon, after it went dormant, with the intent of reigniting its development. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package examples Summary: Example programs for %{name} %description examples Package containing example programs that show how to use quickjs-ng in applications. %prep %forgesetup %build %cmake %cmake_build %install %cmake_install %check make test %files %license LICENSE %doc README.md %{_bindir}/qjs %{_bindir}/qjsc %{_libdir}/libqjs.so.0{,.*} %files devel %{_includedir}/quickjs.h %{_libdir}/libqjs.so %{_libdir}/cmake/quickjs/ %files examples %dir %{_docdir}/quickjs %license %{_docdir}/quickjs/LICENSE %{_docdir}/quickjs/examples/ %changelog %autochangelog