# Built in COPR (playplisp/plisp) from a source tarball with the crates vendored, so the build runs offline. # CI fills in the version from the release tag: packaging/srpm.sh. Name: plisp Version: 0.1.1 Release: 1%{?dist} Summary: Clojure for a pocket calculator: REPL, scripts and the simulator License: MIT OR Apache-2.0 URL: https://playplisp.com Source0: plisp-%{version}.tar.gz ExclusiveArch: x86_64 aarch64 BuildRequires: cargo >= 1.85 BuildRequires: rust >= 1.85 BuildRequires: gcc BuildRequires: pkgconf-pkg-config BuildRequires: libX11-devel %global debug_package %{nil} %description plisp runs Clojure programs the way python or node run theirs: a REPL, files, -e forms and stdin. plisp sim opens the p'lisp calculator simulator. %prep %autosetup -n plisp-%{version} %build cargo build --release --offline --locked -p plisp-cli --features sim \ --config 'source.crates-io.replace-with="vendored-sources"' \ --config 'source.vendored-sources.directory="vendor"' %check test "$(target/release/plisp -e '(+ 1 2)')" = 3 %install install -Dm0755 target/release/plisp %{buildroot}%{_bindir}/plisp ln -s plisp %{buildroot}%{_bindir}/plojure %files %license LICENSE-MIT LICENSE-APACHE %doc README.md %{_bindir}/plisp %{_bindir}/plojure