Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37565628
en ru br
ALT Linux repos
S:1.0-alt2

Group :: Development/Other
RPM: lua5.1-module-unbound

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname luaunbound

Name: lua5.1-module-unbound
Version: 1.0
Release: alt2

Summary: binding to libunbound

License: MIT
Group: Development/Other
Url: https://www.zash.se/luaunbound.html

# repacked https://code.zash.se/dl/luaunbound/luaunbound-%version.tar.gz

Source: %oname-%version.tar

BuildRequires(pre): liblua5.1-devel rpm-build-lua
BuildRequires: lua5.1 libunbound-devel

Provides: lua-module-unbound = %EVR

%description
Lua bindings for the Unbound APIs.

%prep
%setup -n %oname-%version

%build
%make_build \
LUA_VERSION=5.1 \
MYCFLAGS="%optflags" \
MYLDFLAGS="%optflags" \
CC=gcc \
LD=gcc \
#

%install
%makeinstall_std LUA_LIBDIR=%lua_modulesdir

%check
# based on Fedora lua-unbound package check
%lua -e \
'package.cpath="%buildroot%lua_modulesdir/?.so;"..package.cpath;
local lunbound = require("lunbound");
print("Hello from "..lunbound._LIBVER.."!");'

%files
%doc LICENSE README.markdown
%lua_modulesdir/lunbound.so*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin