forked from pool/lua-lpeg_patterns
- Initial packaging of lpeg_patterns 0.5
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lpeg_patterns?expand=0&rev=3
This commit is contained in:
3
lpeg_patterns-0.5.tar.gz
Normal file
3
lpeg_patterns-0.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d1fabf897024822eb2544fd811fc80b85655972804511b9fd8cfea377fb16e0e
|
||||
size 26183
|
4
lua-lpeg_patterns.changes
Normal file
4
lua-lpeg_patterns.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 18 17:58:12 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial packaging of lpeg_patterns 0.5
|
70
lua-lpeg_patterns.spec
Normal file
70
lua-lpeg_patterns.spec
Normal file
@@ -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*
|
@@ -1,9 +0,0 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 6 19:06:23 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add lua54 as new build target
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 28 17:11:55 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial packaging effort for luassert 1.7.11
|
@@ -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
|
BIN
luassert-1.7.11.tar.gz
(Stored with Git LFS)
BIN
luassert-1.7.11.tar.gz
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user