update package
(cherry picked from commit a115b9b4346951806a77e21a5f79b37df1aa5c84)
This commit is contained in:
parent
0d77b1c3c9
commit
1f6cf66ab5
@ -1,11 +1,11 @@
|
|||||||
Name: lua-lunit
|
Name: lua-lunit
|
||||||
Version: 0.5
|
Version: 0.8.1
|
||||||
Release: 16
|
Release: 1
|
||||||
Summary: Unit testing framework for Lua
|
Summary: Unit testing framework for Lua
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://mroth.net/lunit
|
URL: https://github.com/dcurrie/lunit/
|
||||||
Source0: https://mroth.net/lunit/lunit-%{version}.tar.gz
|
Source0: https://github.com/dcurrie/lunit/archive/%{version}.tar.gz#/lunitx-%{version}.tar.gz
|
||||||
BuildRequires: lua >= 5.2
|
BuildRequires: lua >= 5.2 lua-devel >= 5.2
|
||||||
Requires: lua >= 5.2
|
Requires: lua >= 5.2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -22,22 +22,26 @@ of approximately 710 assertions.
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d $RPM_BUILD_ROOT%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
cp -p lunit $RPM_BUILD_ROOT%{_bindir}
|
cp -p extra/lunit.sh %{buildroot}%{_bindir}/lunit
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT%{_datadir}/lua/5.2
|
mkdir -p %{buildroot}%{lua_pkgdir}
|
||||||
cp -pr lunit{,-console}.lua $RPM_BUILD_ROOT%{_datadir}/lua/5.2
|
cp -pr lua/* %{buildroot}%{lua_pkgdir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./lunit lunit-tests.lua | tee testlog.txt
|
# for self test, without --dontforce lunit will try to load its launcher which is a shell script
|
||||||
grep -q "0 failed, 0 errors" testlog.txt
|
LUA_PATH='%{buildroot}%{lua_pkgdir}/?.lua;;' %{buildroot}%{_bindir}/lunit --dontforce test/selftest.lua
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc LICENSE ANNOUNCE CHANGES DOCUMENTATION README* example.lua
|
%license LICENSE
|
||||||
|
%doc ANNOUNCE CHANGES DOCUMENTATION examples README*
|
||||||
%{_bindir}/lunit
|
%{_bindir}/lunit
|
||||||
%{_datadir}/lua/5.2/*
|
%{lua_pkgdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 10 2022 wulei <wulei80@huawei.com> 0.8.1-1
|
||||||
|
- Update package
|
||||||
|
|
||||||
* Thu Sep 09 2020 liuweibo <liuweibo10@huawei.com> - 0.5-16
|
* Thu Sep 09 2020 liuweibo <liuweibo10@huawei.com> - 0.5-16
|
||||||
- Fix Source0 and URL
|
- Fix Source0 and URL
|
||||||
|
|
||||||
|
|||||||
BIN
lunit-0.5.tar.gz
BIN
lunit-0.5.tar.gz
Binary file not shown.
BIN
lunitx-0.8.1.tar.gz
Normal file
BIN
lunitx-0.8.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user