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
%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