commit 01be8ec4325bc615520a76c67af5fc7ded171607997a420cd9a343b87921024f Author: Petr Gajdos Date: Tue Mar 3 11:27:49 2015 +0000 Accepting request 288544 from home:scarabeus_iv OBS-URL: https://build.opensuse.org/request/show/288544 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lpeg?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/lpeg-0.12.1.tar.gz b/lpeg-0.12.1.tar.gz new file mode 100644 index 0000000..37a15ee --- /dev/null +++ b/lpeg-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60c6752dd043034c01929b04dab377d139f53bc098710cf735be53dd603fa22a +size 67519 diff --git a/lua-lpeg.changes b/lua-lpeg.changes new file mode 100644 index 0000000..b482784 --- /dev/null +++ b/lua-lpeg.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +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..cc05eb6 --- /dev/null +++ b/lua-lpeg.spec @@ -0,0 +1,71 @@ +# +# spec file for package lua-lpeg +# +# Copyright (c) 2015 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 http://bugs.opensuse.org/ +# + + +%define mod_name lpeg +Name: lua-%{mod_name} +Version: 0.12.1 +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: lua-devel +Requires: lua +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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} + +%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: -O2: %{optflags}:g' \ + makefile + +%build +make -j1 + +%install + +mkdir -p %{buildroot}%{_docdir}/%{name} +mkdir -p %{buildroot}%{lua_archdir} + +install lpeg.so %{buildroot}%{lua_archdir} + +%files +%defattr(-,root,root,-) +%dir %{lua_archdir} +%{lua_archdir}/* + +%files doc +%defattr(-,root,root,-) +%doc re.html lpeg.html HISTORY + +%changelog