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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
bitlib-5.3.0.tar.gz
Normal file
3
bitlib-5.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dc1197b9e996b7bd2c6a679b86ed75106d5722424b3e731b8084f56626ec5552
|
||||
size 21884
|
4
lua51-bit32.changes
Normal file
4
lua51-bit32.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 23 18:43:37 UTC 2018 - mcepl@suse.com
|
||||
|
||||
- Initial packaging effort
|
57
lua51-bit32.spec
Normal file
57
lua51-bit32.spec
Normal file
@@ -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
|
Reference in New Issue
Block a user