commit 398daab85181ce4ccceef69a09a7f8d9a0d32fe536c2124bd94eeacf8dffaca7 Author: Matej Cepl Date: Tue Oct 2 12:42:16 2018 +0000 osc copypac from project:home:mcepl:neovim package:lua51-bit32 revision:2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua51-bit32?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/bitlib-5.3.0.tar.gz b/bitlib-5.3.0.tar.gz new file mode 100644 index 0000000..f7504b1 --- /dev/null +++ b/bitlib-5.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc1197b9e996b7bd2c6a679b86ed75106d5722424b3e731b8084f56626ec5552 +size 21884 diff --git a/lua51-bit32.changes b/lua51-bit32.changes new file mode 100644 index 0000000..4369a43 --- /dev/null +++ b/lua51-bit32.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed May 23 18:43:37 UTC 2018 - mcepl@suse.com + +- Initial packaging effort diff --git a/lua51-bit32.spec b/lua51-bit32.spec new file mode 100644 index 0000000..6e59c56 --- /dev/null +++ b/lua51-bit32.spec @@ -0,0 +1,57 @@ +# +# spec file for package lua51-bit32 +# +# Copyright (c) 2018 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 flavor lua51 +%define flavor_dec $(c=%{flavor}; echo ${c:0:-1}.${c: -1}) +%define mod_name bit32 +Name: %{flavor}-%{mod_name} +Version: 5.3.0 +Release: 0 +Summary: Backport of Lua bit manipulation library introduced in 5.2 +License: MIT +Group: Development/Languages/Other +URL: https://luarocks.org/modules/siffiejoe/bit32 +Source0: https://github.com/keplerproject/lua-compat-5.2/archive/bitlib-%{version}.tar.gz +BuildRequires: %{flavor}-devel +BuildRequires: libtool +Requires: %{flavor} + +%description +bit32 is the native Lua 5.2 bit manipulation library, in the version +from Lua 5.3; it is compatible with Lua 5.1, 5.2 and 5.3. + +%prep +%setup -q -n lua-compat-5.2-bitlib-%{version} + +%build +gcc %{optflags} -I/usr/include -I./c-api \ + $(pkg-config --cflags --libs %{flavor_dec}) \ + lbitlib.c -shared -fPIC -o bit32.so + + +%install +install -d %{buildroot}%{lua_archdir} +install -p bit32.so %{buildroot}%{lua_archdir}/ + + +%files +%license LICENSE +%doc README.md +%{lua_archdir}/bit32.so + +%changelog