diff --git a/lpeg_patterns-0.5.tar.gz b/lpeg_patterns-0.5.tar.gz new file mode 100644 index 0000000..e4690a3 --- /dev/null +++ b/lpeg_patterns-0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1fabf897024822eb2544fd811fc80b85655972804511b9fd8cfea377fb16e0e +size 26183 diff --git a/lua-lpeg_patterns.changes b/lua-lpeg_patterns.changes new file mode 100644 index 0000000..f854120 --- /dev/null +++ b/lua-lpeg_patterns.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Aug 18 17:58:12 UTC 2020 - Matej Cepl + +- Initial packaging of lpeg_patterns 0.5 diff --git a/lua-lpeg_patterns.spec b/lua-lpeg_patterns.spec new file mode 100644 index 0000000..caa5924 --- /dev/null +++ b/lua-lpeg_patterns.spec @@ -0,0 +1,70 @@ +# +# spec file for package lua-lpeg_patterns +# +# Copyright (c) 2020 SUSE LLC +# +# 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 lpeg_patterns +%define upversion 0.5 +Version: 0.5 +Release: 0 +Summary: Collection of LPEG patterns +License: MIT +URL: https://github.com/daurnimator/lpeg_patterns +Source: https://github.com/daurnimator/lpeg_patterns/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz +BuildRequires: %{flavor}-lpeg +BuildRequires: %{flavor}-busted +BuildRequires: lua-macros +Requires: %{flavor}-lpeg +Requires: %{flavor} +BuildArch: noarch +%if "%{flavor}" == "lua53" +Provides: lua-lpeg_patterns = %{version} +Obsoletes: lua-lpeg_patterns < %{version} +%endif +%if "%{flavor}" == "" +Name: lua-lpeg_patterns +ExclusiveArch: do_not_build +%else +Name: %{flavor}-lpeg_patterns +%endif + +%description +A collection of LPEG patterns + +Use cases: + * Strict validation of user input + * Searching free-form input + + +%prep +%autosetup -p1 -n %{mod_name}-%{upversion} + +%build +/bin/true + +%install +mkdir -p %{buildroot}%{lua_noarchdir}/lpeg_patterns +cp -v -r -p lpeg_patterns/* %{buildroot}%{lua_noarchdir}/lpeg_patterns/ + +%check +busted -v + +%files +%license LICENSE.md +%doc README.md NEWS +%dir %{lua_noarchdir}/lpeg_patterns +%{lua_noarchdir}/lpeg_patterns* diff --git a/lua-luassert.changes b/lua-luassert.changes deleted file mode 100644 index 6d6df94..0000000 --- a/lua-luassert.changes +++ /dev/null @@ -1,9 +0,0 @@ -------------------------------------------------------------------- -Mon Jul 6 19:06:23 UTC 2020 - Matej Cepl - -- Add lua54 as new build target - -------------------------------------------------------------------- -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 deleted file mode 100644 index 2e089c4..0000000 --- a/lua-luassert.spec +++ /dev/null @@ -1,72 +0,0 @@ -# -# spec file for package lua-luassert -# -# Copyright (c) 2020 SUSE LLC -# -# 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 deleted file mode 100644 index 2d12961..0000000 --- a/luassert-1.7.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6a8ed5b6af976d144d02c98e0d0814993e76a147c3066769fa5eb224311f98ef -size 38556