From 1a9a27c89653b2e55ec9cd700be4ec06cf215ba162c45526941ce67301afcde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 25 Feb 2025 17:57:14 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main lua-lpeg revision f0ba21f7d52399d3def8f736d4cad815 --- .gitattributes | 23 ++++++++++++ _multibuild | 5 +++ lpeg-1.1.0.tar.gz | 3 ++ lua-lpeg.changes | 74 +++++++++++++++++++++++++++++++++++++++ lua-lpeg.spec | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 194 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 lpeg-1.1.0.tar.gz create mode 100644 lua-lpeg.changes create mode 100644 lua-lpeg.spec 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/_multibuild b/_multibuild new file mode 100644 index 0000000..72d2b45 --- /dev/null +++ b/_multibuild @@ -0,0 +1,5 @@ + +lua51 +lua53 +lua54 + diff --git a/lpeg-1.1.0.tar.gz b/lpeg-1.1.0.tar.gz new file mode 100644 index 0000000..e7cf81c --- /dev/null +++ b/lpeg-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a +size 78042 diff --git a/lua-lpeg.changes b/lua-lpeg.changes new file mode 100644 index 0000000..577936b --- /dev/null +++ b/lua-lpeg.changes @@ -0,0 +1,74 @@ +------------------------------------------------------------------- +Tue Jul 11 11:23:08 UTC 2023 - Gordon Leung + +- Update to 1.1.0 + * No change log from upstream and no usage of a git forge so that's it... + +------------------------------------------------------------------- +Wed Jan 25 10:52:05 UTC 2023 - Michal Suchanek + +- Opencode %make_build to prevent build failure when not defined. + +------------------------------------------------------------------- +Wed Nov 23 10:23:38 UTC 2022 - Michal Suchanek + +- Fix missing dependency on lua-macros (boo#1205612) +- Run test with correct lua version + +------------------------------------------------------------------- +Wed Aug 31 17:08:45 UTC 2022 - Gordon Leung + +- Add %check section and test.lua + +------------------------------------------------------------------- +Sun Aug 28 14:26:14 UTC 2022 - Gordon Leung + +- noarch the doc package + +------------------------------------------------------------------- +Fri Aug 26 02:54:52 UTC 2022 - Gordon Leung + +- Add previously unpackaged re.lua module + +------------------------------------------------------------------- +Tue Feb 9 14:56:17 UTC 2021 - Dominique Leuenberger + +- Use %lua_provides: add the lua-mod_name provides/obsoletes to + the lua version matching the distro default. + +------------------------------------------------------------------- +Mon Jul 6 19:04:19 UTC 2020 - Matej Cepl + +- Add lua54 as new build target + +------------------------------------------------------------------- +Tue Mar 12 11:59:22 UTC 2019 - Matej Cepl + +- Update to 1.0.2, which is just a bugfix release. + +------------------------------------------------------------------- +Mon Oct 30 14:45:32 UTC 2017 - jmatejek@suse.com + +- do not build for Lua 5.2 + +------------------------------------------------------------------- +Thu Jul 13 16:12:32 UTC 2017 - tchvatal@suse.com + +- Switch to multibuild spec for all lua versions + +------------------------------------------------------------------- +Fri Feb 17 07:34:12 UTC 2017 - callumjfarmer13@gmail.com + +- Version to 1.0.1 + +------------------------------------------------------------------- +Mon Mar 2 18:05:58 UTC 2015 - tchvatal@suse.com + +- Version bump to 0.12.1: + * no upstream changelog provided + +------------------------------------------------------------------- +Mon Mar 2 17:55:14 UTC 2015 - tchvatal@suse.com + +- Initial commit. Required for neovim. + diff --git a/lua-lpeg.spec b/lua-lpeg.spec new file mode 100644 index 0000000..eb11306 --- /dev/null +++ b/lua-lpeg.spec @@ -0,0 +1,89 @@ +# +# spec file +# +# Copyright (c) 2023 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 _name lgi +%define mod_name lpeg +Version: 1.1.0 +Release: 0 +Summary: Parsing Expression Grammars For Lua +License: MIT +Group: Development/Libraries/Other +URL: http://www.inf.puc-rio.br/~roberto/lpeg +Source: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz +BuildRequires: %{flavor}-devel +BuildRequires: lua-macros +Requires: %{flavor} +%lua_provides +%if "%{flavor}" == "" +Name: lua-%{mod_name} +ExclusiveArch: do_not_build +%else +Name: %{flavor}-%{mod_name} +Provides: %{flavor}-LPeg = %{version} +Obsoletes: %{flavor}-LPeg < %{version} +%endif + +%description +LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs). + +%package doc +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 +generated by luadoc or ldoc. + +%prep +%setup -q -n lpeg-%{version} + +# Set our cflags +sed -i \ + -e 's:../lua/:%{lua_incdir}:' \ + -e 's: -O2: %{optflags}:g' \ + makefile + +%build +make %{?_make_output_sync} + +%install + +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_PATH='%{_datadir}/lua/%{lua_version}/?.lua' +LUA_PATH="%{buildroot}%{lua_noarchdir}/?/init.lua;${LUA_PATH}" +export LUA_PATH="%{buildroot}%{lua_noarchdir}/?.lua;${LUA_PATH}" +%{_bindir}/lua%{lua_version} test.lua + +%files +%{lua_archdir} +%{lua_noarchdir} + +%files doc +%doc re.html lpeg.html HISTORY + +%changelog