SHA256
10
0
forked from pool/lua-lpeg

Accepting request 1000499 from home:Pi-Cla

lua-lpeg was not packaging re.lua which is a module used by many other lua modules. Also, the doc package should be noarch and there was a missing test that I have now included.

OBS-URL: https://build.opensuse.org/request/show/1000499
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lpeg?expand=0&rev=17
This commit is contained in:
2022-09-06 18:57:16 +00:00
committed by Git OBS Bridge
parent e2c241bd4c
commit 5d23769252
2 changed files with 25 additions and 4 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Wed Aug 31 17:08:45 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Add %check section and test.lua
-------------------------------------------------------------------
Sun Aug 28 14:26:14 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- noarch the doc package
-------------------------------------------------------------------
Fri Aug 26 02:54:52 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Add previously unpackaged re.lua module
-------------------------------------------------------------------
Tue Feb 9 14:56:17 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-lpeg
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -45,6 +45,7 @@ LPeg is a new pattern-matching library for Lua, based on Parsing Expression Gram
Summary: Lua Documentation for %{mod_name}
Group: Development/Languages/Other
Requires: %{name} = %{version}
BuildArch: noarch
%description doc
Documentation and examples included with the library, sometimes
@@ -66,12 +67,17 @@ sed -i \
mkdir -p %{buildroot}%{_docdir}/%{name}
mkdir -p %{buildroot}%{lua_archdir}
mkdir -p %{buildroot}%{lua_noarchdir}
install lpeg.so %{buildroot}%{lua_archdir}
install -Dm 644 re.lua %{buildroot}%{lua_noarchdir}
%check
lua test.lua
%files
%dir %{lua_archdir}
%{lua_archdir}/*
%{lua_archdir}
%{lua_noarchdir}
%files doc
%doc re.html lpeg.html HISTORY