commit 1f8f2ecce165b61cb2d79c3b99c905719783e687 Author: CentOS Sources Date: Tue May 7 06:12:22 2019 -0400 import lua-lunit-0.5-13.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..060ee00 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lunit-0.5.tar.gz diff --git a/.lua-lunit.metadata b/.lua-lunit.metadata new file mode 100644 index 0000000..e0a70e2 --- /dev/null +++ b/.lua-lunit.metadata @@ -0,0 +1 @@ +7a7cfddab10836f9ed16574be6a450a63a5d4be7 SOURCES/lunit-0.5.tar.gz diff --git a/SPECS/lua-lunit.spec b/SPECS/lua-lunit.spec new file mode 100644 index 0000000..f72cac7 --- /dev/null +++ b/SPECS/lua-lunit.spec @@ -0,0 +1,107 @@ +%define luaver 5.2 +%define luapkgdir %{_datadir}/lua/%{luaver} + +Name: lua-lunit +Version: 0.5 +Release: 13%{?dist} +Summary: Unit testing framework for Lua + +Group: Development/Libraries +License: MIT +URL: http://nessie.de/mroth/lunit/index.html +Source0: http://nessie.de/mroth/lunit/lunit-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +# for running tests +BuildRequires: lua >= %{luaver} +Requires: lua >= %{luaver} + +BuildArch: noarch + +%description +Lunit is a unit testing framework for lua, written in lua. + +Lunit provides 26 assert functions, and a few misc functions for usage +in an easy unit testing framework. + +Lunit comes with a test suite to test itself. The testsuite consists +of approximately 710 assertions. + + +%prep +%setup -q -n lunit-%{version} + + +%build + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_bindir} +cp -p lunit $RPM_BUILD_ROOT%{_bindir} + +mkdir -p $RPM_BUILD_ROOT%{luapkgdir} +cp -pr lunit{,-console}.lua $RPM_BUILD_ROOT%{luapkgdir} + + +%check +./lunit lunit-tests.lua | tee testlog.txt +grep -q "0 failed, 0 errors" testlog.txt + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENSE ANNOUNCE CHANGES DOCUMENTATION README* example.lua +%{_bindir}/lunit +%{luapkgdir}/* + + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 0.5-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.5-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.5-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri May 10 2013 Tom Callaway - 0.5-6 +- rebuild for lua 5.2 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Nov 5 2009 Michel Salim - 0.5-1 +- Update to 0.5 + +* Mon Oct 19 2009 Michel Salim - 0.4-2 +- Patch out the use of non-existent myerror fn + +* Thu Sep 10 2009 Michel Salim - 0.4-1 +- Initial package