%define debug_package %{nil} Name: shen-scheme Version: v0.40 Release: 1%{?dist} Summary: Shen programming language on Chez scheme License: BSD URL: http://tizoc.github.io/%{name} Source0: https://github.com/tizoc/%{name}/%{name}-%{version}-src.tar.gz Source1: https://github.com/cisco/ChezScheme/releases/download/v10.2.0/csv10.2.0.tar.gz Patch0: %{name}-%{version}-src-disable-download.patch Patch1: %{name}-%{version}-src-version.patch Patch2: %{name}-%{version}-src-ncurses.patch BuildRequires: make, gcc, libuuid-devel, ncurses-devel, ncurses-libs %description Shen is a portable functional programming language by Mark Tarver that offers pattern matching, λ calculus consistency, macros, optional lazy evaluation, static type checking, an integrated fully functional Prolog, and an inbuilt compiler-compiler. shen-scheme is a port of the Shen language that runs on top of Sheme implementations. %prep %setup -q -n %{name}-%{version}-src -a 1 %patch -P0 -p1 %patch -P1 -p1 %patch -P2 -p1 mkdir -p _build/chez mv csv10.2.0 _build/chez/ pushd _build pushd chez pushd csv10.2.0 ./configure --threads --64 --installlib=/usr/lib64 --disable-x11 --temproot=$RPM_BUILD_ROOT popd popd popd %build # very annoyingly on RPI3 Rocky 9.4 I got an error : # /usr/bin/ld: cannot find -luuid # fixed by creating a symbolic link : # ln -s libuuid.so.1 /usr/lib64/libuuid.so make %install rm -rf $RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT make install prefix=/usr %files %defattr(-,root,root,-) %{_bindir}/* %{_prefix}/lib/* %changelog * Sat Jul 26 2025 Builder - Fix version and using Chez Scheme 10.2.0 * Sun Jun 15 2025 Builder - Update to 0.40 * Fri Jun 21 2024 Builder - Update to 0.38 * Wed May 29 2024 Builder - Update to 0.37 * Tue May 28 2024 Builder - Initial RPM build of Shen 38.3 using Chez Scheme 10.0.0