Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37518136
en ru br
ALT Linux repositórios
S:0.8.1-alt1

Group :: Desenvolvimento/Outros
RPM: lua-lunit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define modname lunit
%define luaver 5.3
%define luapkgdir %_datadir/lua/%luaver

%def_enable check

Name: lua-lunit
Version: 0.8.1
Release: alt1

Summary: Unit testing framework for Lua
Group: Development/Other
License: MIT
Url: https://nessie.de/mroth/%modname/index.html

Packager: Artyom Bystrov <arbars at altlinux.org>

Source: %url/%modname-%version.tar.gz
Source44: import.info

BuildArch: noarch

Requires: lua >= %luaver

%{?_enable_check:BuildRequires: lua >= %luaver}

%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 -n %modname-%version

%build
%install
mkdir -p %buildroot%_bindir
cp -p extra/lunit.sh %buildroot%_bindir/lunit

mkdir -p %buildroot%luapkgdir
cp -pr lua/* %buildroot%luapkgdir

%check
# for self test, without --dontforce lunit will try to load its launcher which is a shell script
LUA_PATH='%buildroot%luapkgdir/?.lua;;' %buildroot%_bindir/lunit --dontforce test/selftest.lua

%files
%doc LICENSE ANNOUNCE CHANGES DOCUMENTATION README* examples
%_bindir/lunit
%luapkgdir/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009