forked from pool/lua-fennel
- Opencode %make_build to prevent build failure when not defined. OBS-URL: https://build.opensuse.org/request/show/1060897 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-fennel?expand=0&rev=8
65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package lua-fennel
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
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
|
|
|
|
%description
|
|
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.
|
|
|
|
%prep
|
|
%autosetup -p1 -n fennel-%{version}
|
|
|
|
%build
|
|
make %{?_make_output_sync} %{?_smp_mflags} fennel
|
|
|
|
%check
|
|
make %{?_make_output_sync} %{?_smp_mflags} test
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
sed -i s:%{_bindir}/env\ lua:%{_bindir}/lua: fennel
|
|
install -m 755 fennel %{buildroot}%{_bindir}
|
|
|
|
%files
|
|
%doc README.md api.md changelog.md reference.md tutorial.md
|
|
%license LICENSE
|
|
%{_bindir}/fennel
|
|
|
|
%changelog
|