10
0

Accepting request 894355 from home:gmbr3:Lua

will be required by prosody 0.12
https://prosody.im/doc/packagers

OBS-URL: https://build.opensuse.org/request/show/894355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaunbound?expand=0&rev=1
This commit is contained in:
2021-05-19 17:52:27 +00:00
committed by Git OBS Bridge
commit 6f0b0e997a
7 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

5
_multibuild Normal file
View File

@@ -0,0 +1,5 @@
<multibuild>
<package>lua51</package>
<package>lua53</package>
<package>lua54</package>
</multibuild>

5
lua-luaunbound.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed May 19 13:48:54 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Initial packaging version 0.5

56
lua-luaunbound.spec Normal file
View File

@@ -0,0 +1,56 @@
#
# spec file for package lua-luaunbound
#
# Copyright (c) 2021 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@%{nil}
%define mod_name luaunbound
%if "%{flavor}" == ""
Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
Version: 0.5
Release: 0
License: MIT
Group: Development/Languages/Other
Summary: This is a binding to libunbound for Lua
Url: https://code.zash.se/dl/luaunbound
Source0: %{mod_name}-%{version}.tar.gz
Patch0: makefile.patch
BuildRequires: %{flavor}-devel
BuildRequires: libunbound-devel
%lua_provides
%description
This is a binding to libunbound for Lua
%prep
%autosetup -n %{mod_name}-%{version} -p1
%build
sed 's|lua-$(LUA_VERSION)|lua$(LUA_VERSION)|g' -i GNUmakefile
%make_build CC=cc LUA_VERSION=%{lua_version} LDLIBS="-llua -lunbound" MYCFLAGS="%{optflags}"
%install
%make_install LUA_LIBDIR=%{lua_archdir}
%files
%license LICENSE
%doc README.markdown
%{lua_archdir}/*
%changelog

3
luaunbound-0.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6564ac1cca6bb350576eb2a5cfa03adb0aafd4f99d6cd491bd8028d046c62a7
size 5948

15
makefile.patch Normal file
View File

@@ -0,0 +1,15 @@
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -20,10 +20,8 @@
all: $(OUTPUT)
-lunbound.o: lunbound.c
-
-%.so: %.o
- $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+%.so: %.c
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
install:
install -d $(DESTDIR)$(LUA_LIBDIR)/