%global debug_package %{nil} Name: carp Version: 0.5.5 Release: 3%{?dist} Summary: A statically typed lisp, without a GC, for real-time applications. License: Apache-2.0 license URL: https://github.com/carp-lang/Carp Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc BuildRequires: ncurses-devel BuildRequires: stack BuildRequires: ghc9.0 Recommends: clang Recommends: glibc-langpack-en %description Carp is a programming language designed to work well for interactive and performance sensitive use cases like games, sound synthesis and visualizations. %prep %autosetup -n Carp-%{version} %install stack build --system-ghc mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir}/carp mkdir -p %{buildroot}%{_datadir}/carp stack install --local-bin-path %{buildroot}%{_libexecdir} --system-ghc mv ./core %{buildroot}%{_libdir}/carp cat >> %{buildroot}%{_bindir}/carp <> %{buildroot}%{_bindir}/carp-header-parse <