rpms/lua-lunit/F-10 lua-lunit.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Michel Alexandre Salim
salimma at fedoraproject.org
Fri Sep 25 02:20:16 UTC 2009
- Previous message (by thread): rpms/lua-lunit/EL-5 lua-lunit.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/lua-lunit/F-11 lua-lunit.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: salimma
Update of /cvs/pkgs/rpms/lua-lunit/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5038/F-10
Modified Files:
.cvsignore sources
Added Files:
lua-lunit.spec
Log Message:
lua-lunit: initial import
--- NEW FILE lua-lunit.spec ---
%define luaver 5.1
%define luapkgdir %{_datadir}/lua/%{luaver}
Name: lua-lunit
Version: 0.4
Release: 1%{?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 Sep 10 2009 Michel Salim <salimma at fedoraproject.org> - 0.4-1
- Initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/lua-lunit/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 24 Sep 2009 04:36:53 -0000 1.1
+++ .cvsignore 25 Sep 2009 02:20:16 -0000 1.2
@@ -0,0 +1 @@
+lunit-0.4.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/lua-lunit/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 24 Sep 2009 04:36:54 -0000 1.1
+++ sources 25 Sep 2009 02:20:16 -0000 1.2
@@ -0,0 +1 @@
+808a743c5594f6491588b42c56262cf9 lunit-0.4.tar.gz
- Previous message (by thread): rpms/lua-lunit/EL-5 lua-lunit.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/lua-lunit/F-11 lua-lunit.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list