SHA256
10
0
forked from pool/lua-luassert

Accepting request 743618 from home:mcepl:branches:devel:languages:lua

Initial packaging effort for luassert 1.7.11

OBS-URL: https://build.opensuse.org/request/show/743618
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luassert?expand=0&rev=1
This commit is contained in:
2019-10-28 22:35:13 +00:00
committed by Git OBS Bridge
commit fb7b512a97
6 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

4
_multibuild Normal file
View File

@@ -0,0 +1,4 @@
<multibuild>
<package>lua51</package>
<package>lua53</package>
</multibuild>

4
lua_luassert.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Oct 28 17:11:55 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Initial packaging effort for luassert 1.7.11

73
lua_luassert.spec Normal file
View File

@@ -0,0 +1,73 @@
#
# spec file for package lua_luassert
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@
%define mod_name luassert
%define upversion 1.7.11
Version: 1.7.11
Release: 0
Summary: Lua Assertions Extension
License: MIT
URL: https://github.com/Olivine-Labs/luassert
Source: https://github.com/Olivine-Labs/luassert/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-say
Requires: %{flavor}
BuildArch: noarch
%if "%{flavor}" == "lua53"
Provides: lua-luassert = %{version}
Obsoletes: lua-luassert < %{version}
%endif
%if "%{flavor}" == ""
Name: lua-luassert
ExclusiveArch: do_not_build
%else
Name: %{flavor}-luassert
%endif
%description
Adds a framework that allows registering new assertions without
compromising builtin assertion functionality.
%prep
%setup -q -n %{mod_name}-%{upversion}
sed -i -e 's/\r$//' README.md
%build
/bin/true
%install
mkdir -p %{buildroot}%{lua_noarchdir}/luassert
cp -v -r -p src/* %{buildroot}%{lua_noarchdir}/luassert
%check
# requires busted
/bin/true
# spec:
# assertions_spec.lua helper.lua mocks_spec.lua spies_spec.lua
# stub_spec.lua
# formatters_spec.lua matchers_spec.lua output_spec.lua state_spec.lua
%files
%license LICENSE
%doc CONTRIBUTING.md README.md
%dir %{lua_noarchdir}/luassert
%{lua_noarchdir}/luassert*
%changelog

BIN
luassert-1.7.11.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.