diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-08-27 12:01:47 -0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-08-27 12:01:47 -0700 |
commit | 7977ff45e2b075fa5148fbfdf8ed8d1c0a9a252e (patch) | |
tree | 16117d7ba42f72dfa76af7f5bf8536dbe0d9207c /lua | |
parent | 0d9d7ec83993824955960d111471bc1d17b95e98 (diff) | |
download | specs-7977ff45e2b075fa5148fbfdf8ed8d1c0a9a252e.tar.gz specs-7977ff45e2b075fa5148fbfdf8ed8d1c0a9a252e.tar.xz specs-7977ff45e2b075fa5148fbfdf8ed8d1c0a9a252e.zip |
lua-lunitx: Use stnadard Lua macros
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lua-lunitx.spec | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lua/lua-lunitx.spec b/lua/lua-lunitx.spec index c6caf25..e6b72ce 100644 --- a/lua/lua-lunitx.spec +++ b/lua/lua-lunitx.spec @@ -1,9 +1,6 @@ -%define luaver 5.4 -%define luapkgdir %{_datadir}/lua/%{luaver} - Name: lua-lunitx Version: 0.8.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unit testing framework for Lua License: MIT @@ -11,9 +8,10 @@ URL: https://github.com/dcurrie/lunit/ Source0: https://github.com/dcurrie/lunit/archive/%{version}.tar.gz#/lunitx-%{version}.tar.gz # for running tests -BuildRequires: lua >= %{luaver} +# also, macros are in lua-devel +BuildRequires: lua-devel >= 5.2 -Requires: lua(abi) = %{luaver} +Requires: lua(abi) = %{lua_version} BuildArch: noarch @@ -38,8 +36,8 @@ Lunit is a unit testing framework for lua. mkdir -p %{buildroot}%{_bindir} cp -p extra/lunit.sh %{buildroot}%{_bindir}/lunit -mkdir -p %{buildroot}%{luapkgdir} -cp -pr lua/* %{buildroot}%{luapkgdir} +mkdir -p %{buildroot}%{lua_pkgdir} +cp -pr lua/* %{buildroot}%{lua_pkgdir} %check @@ -51,9 +49,12 @@ LUA_PATH='%{buildroot}%{luapkgdir}/?.lua;;' %{buildroot}%{_bindir}/lunit --dontf %license LICENSE %doc ANNOUNCE CHANGES DOCUMENTATION examples README* %{_bindir}/lunit -%{luapkgdir}/* +%{lua_pkgdir}/* %changelog +* Thu Aug 27 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.8.1-2 +- Use standard Lua macros + * Tue Aug 25 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.8.1-1 - Initial Fedora package (replacing lua-lunit) |