## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec Name: fennel Version: 1.2.0 Release: %autorelease Summary: A Lisp that compiles to Lua License: MIT URL: https://fennel-lang.org/ Source0: https://git.sr.ht/~technomancy/fennel/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: lua-devel >= 5.1 BuildRequires: make Provides: lua-fennel = %{version}-%{release} %if 0%{?rhel} && 0%{?rhel} < 9 %lua_requires %endif Recommends: lua-readline %description Fennel is a Lisp that compiles to Lua. It aims to be easy to use, expressive, and has almost zero overhead compared to handwritten Lua. * *Full Lua compatibility* - You can use any function or library from Lua. * *Zero overhead* - Compiled code should be just as or more efficient than hand-written Lua. * *Compile-time macros* - Ship compiled code with no runtime dependency on Fennel. * *Embeddable* - Fennel is a one-file library as well as an executable. Embed it in other programs to support runtime extensibility and interactive development. At https://fennel-lang.org there's a live in-browser repl you can use without installing anything. %prep %autosetup -p1 %build %make_build %install %make_install \ LUA_VERSION=%{lua_version} \ MAN_DIR=%{_mandir}/man1 \ PREFIX=%{_prefix} MAN1=%{buildroot}%{_mandir}/man1/ mkdir -p ${MAN1} cp -p fennel.1 ${MAN1}/ %check make test %files %license LICENSE %doc README.md CODE-OF-CONDUCT.md CONTRIBUTING.md %doc api.md changelog.md lua-primer.md reference.md tutorial.md %{_bindir}/fennel %{lua_pkgdir}/fennel.lua %{_mandir}/man1/fennel.1* %changelog * Tue Sep 27 2022 Michel Alexandre Salim 1.2.0-1 - Update to 1.2.0 * Thu Jul 21 2022 Fedora Release Engineering 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Apr 12 2022 Michel Alexandre Salim 1.1.0-1 - Update to 1.1.0 * Thu Jan 20 2022 Fedora Release Engineering 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 09 2021 Michel Alexandre Salim - 1.0.0-1 - Update to 1.0.0 - Opt in to rpmautospec * Wed Jul 21 2021 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Apr 16 2021 Michel Alexandre Salim - 0.9.1-1 - Update to 0.9.1 * Tue Feb 9 2021 Michel Alexandre Salim - 0.8.1-1 - Update to 0.8.1 * Wed Jan 27 2021 Michel Alexandre Salim - 0.8.0-1 - Update to 0.8.0 - Add Requires on lua(abi) for older releases * Tue Jan 26 2021 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Dec 1 14:47:54 PST 2020 Michel Alexandre Salim - 0.7.0-2 - Recommend installing lua-readline * Mon Nov 23 2020 Michel Alexandre Salim - 0.7.0-1 - Update to 0.7.0 * Wed Sep 23 2020 Michel Alexandre Salim - 0.6.0-1 - Update to 0.6.0 * Fri Aug 28 2020 Michel Alexandre Salim - 0.5.0-1 - Initial Fedora package