Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37751032
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: lua5.1-module-unbound

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin