2022-10-24 21:46:13 +00:00
|
|
|
#
|
2020-07-01 08:53:32 +00:00
|
|
|
# spec file for package lua-fennel
|
|
|
|
#
|
2022-10-24 21:46:13 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-07-01 08:53:32 +00:00
|
|
|
# Copyright (c) 2020 Fabio Pesari
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2022-10-24 21:46:13 +00:00
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-07-01 08:53:32 +00:00
|
|
|
#
|
2022-10-24 21:46:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: lua-fennel
|
|
|
|
Version: 1.2.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Lisp dialect that compiles to Lua
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Lua
|
|
|
|
URL: https://fennel-lang.org/
|
|
|
|
Source0: https://git.sr.ht/~technomancy/fennel/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: lua
|
|
|
|
BuildArch: noarch
|
2020-07-01 08:53:32 +00:00
|
|
|
|
|
|
|
%description
|
2022-10-24 21:46:13 +00:00
|
|
|
Fennel is a lisp that compiles to Lua. Features include:
|
|
|
|
|
|
|
|
• 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.
|
2020-07-01 08:53:32 +00:00
|
|
|
|
|
|
|
%prep
|
2021-08-28 17:02:44 +00:00
|
|
|
%autosetup -p1 -n fennel-%{version}
|
2020-07-01 08:53:32 +00:00
|
|
|
|
|
|
|
%build
|
2023-01-25 21:11:37 +00:00
|
|
|
make %{?_make_output_sync} %{?_smp_mflags} fennel
|
2020-07-01 08:53:32 +00:00
|
|
|
|
2020-07-02 12:42:55 +00:00
|
|
|
%check
|
2023-01-25 21:11:37 +00:00
|
|
|
make %{?_make_output_sync} %{?_smp_mflags} test
|
2020-07-02 12:42:55 +00:00
|
|
|
|
2020-07-01 08:53:32 +00:00
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2022-10-24 21:46:13 +00:00
|
|
|
sed -i s:%{_bindir}/env\ lua:%{_bindir}/lua: fennel
|
2020-07-01 08:53:32 +00:00
|
|
|
install -m 755 fennel %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md api.md changelog.md reference.md tutorial.md
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/fennel
|
|
|
|
|
|
|
|
%changelog
|