Name: icl Version: 0.1.0 Release: 1%{?dist} Summary: Interactive Common Lisp REPL License: MIT URL: https://github.com/atgreen/icl Source0: icl-%{version}.tar.gz # Disable debug packages and stripping since this is a Lisp binary with dumped image %global debug_package %{nil} %global _build_id_links none %global __strip /bin/true %global __brp_strip %{nil} %global __brp_strip_comment_note %{nil} %global __brp_strip_static_archive %{nil} BuildRequires: sbcl BuildRequires: libfixposix-devel BuildRequires: gcc BuildRequires: make %description icl is an enhanced Common Lisp REPL. It provides a modern command-line experience with line editing, inline documentation, and helper commands to explore and evaluate Common Lisp code quickly. %prep %autosetup %build # Dependencies are vendored in the source tarball # Build the executable make %install # Use pre-generated third-party licenses (included in source tarball) # Install the binary install -D -m 0755 icl %{buildroot}%{_bindir}/icl # Install shared libraries (libosicat.so) - find in ASDF cache mkdir -p %{buildroot}%{_libdir}/icl find ~/.cache/common-lisp -name "libosicat.so" -exec install -m 0755 {} %{buildroot}%{_libdir}/icl/ \; 2>/dev/null || true # Install ldconfig configuration mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d echo "%{_libdir}/icl" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/icl.conf # Install sly from ocicl sly package mkdir -p %{buildroot}%{_datadir}/icl/sly cp -r ocicl/sly-*/* %{buildroot}%{_datadir}/icl/sly/ # Install collected vendored licenses install -D -m 0644 THIRD-PARTY-LICENSES.txt %{buildroot}%{_datadir}/licenses/%{name}/THIRD-PARTY-LICENSES.txt %post /sbin/ldconfig %postun /sbin/ldconfig %files %license LICENSE %doc README.md %{_sysconfdir}/ld.so.conf.d/icl.conf %{_datadir}/licenses/%{name}/THIRD-PARTY-LICENSES.txt %{_datadir}/icl/sly %{_libdir}/icl %{_bindir}/icl %changelog * Sat Dec 13 2025 Anthony Green - 0.1.0-2 - Collect vendored licenses during build and install them under /usr/share/licenses * Sat Dec 13 2025 Anthony Green - 0.1.0-1 - Initial RPM package for icl