Import rpm: c8s
This commit is contained in:
commit
331a435519
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
SOURCES/lunit-0.5.tar.gz
|
||||
/lunit-0.5.tar.gz
|
107
lua-lunit.spec
Normal file
107
lua-lunit.spec
Normal file
@ -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 <releng@fedoraproject.org> - 0.5-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri May 10 2013 Tom Callaway <spot@fedoraproject.org> - 0.5-6
|
||||
- rebuild for lua 5.2
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Nov 5 2009 Michel Salim <salimma@fedoraproject.org> - 0.5-1
|
||||
- Update to 0.5
|
||||
|
||||
* Mon Oct 19 2009 Michel Salim <salimma@fedoraproject.org> - 0.4-2
|
||||
- Patch out the use of non-existent myerror fn
|
||||
|
||||
* Thu Sep 10 2009 Michel Salim <salimma@fedoraproject.org> - 0.4-1
|
||||
- Initial package
|
Loading…
Reference in New Issue
Block a user