Blame lua-testmore.spec

e901a2
#
e901a2
# spec file
e901a2
#
e901a2
# Copyright (c) 2022 SUSE LLC
e901a2
#
e901a2
# All modifications and additions to the file contributed by third parties
e901a2
# remain the property of their copyright owners, unless otherwise agreed
e901a2
# upon. The license for this file, and modifications and additions to the
e901a2
# file, is the same license as for the pristine package itself (unless the
e901a2
# license for the pristine package is not an Open Source License, in which
e901a2
# case the license is the MIT License). An "Open Source License" is a
e901a2
# license that conforms to the Open Source Definition (Version 1.9)
e901a2
# published by the Open Source Initiative.
e901a2
e901a2
# Please submit bugfixes or comments via https://bugs.opensuse.org/
e901a2
#
e901a2
e901a2
e901a2
%define flavor @BUILD_FLAVOR@
e901a2
%define mod_name testmore
e901a2
Version:        0.3.6+git2
e901a2
Release:        0
e901a2
Summary:        A Lua port of the Perl Test::More unit testing framework
e901a2
License:        MIT
e901a2
Group:          Development/Languages/Other
e901a2
URL:            https://framagit.org/fperrad/lua-TestMore
e901a2
Source:         lua-TestMore-%{version}.tar.xz
e901a2
BuildRequires:  %{flavor}-devel
e901a2
Requires:       %{flavor}
e901a2
%lua_provides
e901a2
%if "%{flavor}" == ""
e901a2
Name:           lua-%{mod_name}
e901a2
ExclusiveArch:  do_not_build
e901a2
%else
e901a2
Name:           %{flavor}-%{mod_name}
e901a2
%endif
e901a2
BuildArch:      noarch
e901a2
e901a2
%description
e901a2
lua-TestMore is a port of the Perl5 module Test::More. It uses the
e901a2
Test Anything Protocol as output, that allows a compatibility with
e901a2
the Perl QA ecosystem. It's an extensible framework.
e901a2
See lua-TestAssertion an extension which provides many Lua friendly
e901a2
assertions. It allows a simple and efficient way to write tests
e901a2
(without OO style). Some tests could be marked as TODO or skipped.
e901a2
Errors could be fully checked with error_like().
e901a2
e901a2
%prep
e901a2
%autosetup -n lua-TestMore-%{version}
e901a2
e901a2
%build
e901a2
e901a2
%install
e901a2
%make_install LUAVER="%{lua_version}" PREFIX=/usr
e901a2
e901a2
%check
e901a2
make check
e901a2
e901a2
%files
e901a2
%license COPYRIGHT
e901a2
%doc README.md CHANGES
e901a2
%{lua_noarchdir}
e901a2
e901a2
%changelog