commit fb7b512a97df04cad7dae019a1c98ceff6aebef5df147006ad7c04f2a91b810a Author: Matej Cepl Date: Mon Oct 28 22:35:13 2019 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..a01285a --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + +lua51 +lua53 + diff --git a/lua_luassert.changes b/lua_luassert.changes new file mode 100644 index 0000000..400e968 --- /dev/null +++ b/lua_luassert.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Oct 28 17:11:55 UTC 2019 - Matej Cepl + +- Initial packaging effort for luassert 1.7.11 diff --git a/lua_luassert.spec b/lua_luassert.spec new file mode 100644 index 0000000..573987e --- /dev/null +++ b/lua_luassert.spec @@ -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 + diff --git a/luassert-1.7.11.tar.gz b/luassert-1.7.11.tar.gz new file mode 100644 index 0000000..2d12961 --- /dev/null +++ b/luassert-1.7.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a8ed5b6af976d144d02c98e0d0814993e76a147c3066769fa5eb224311f98ef +size 38556