lua-posix/lua-posix.spec

52 lines
1.1 KiB
RPMSpec
Raw Normal View History

# Tests require specl which is not yet packaged
%bcond_with check
2008-04-08 21:33:01 +00:00
Name: lua-posix
Version: 35.1
Release: %autorelease
2008-04-08 21:33:01 +00:00
Summary: A POSIX library for Lua
License: MIT
2008-04-08 21:33:01 +00:00
URL: http://luaforge.net/projects/luaposix/
2020-07-10 04:20:27 +00:00
Source0: https://github.com/luaposix/luaposix/archive/v%{version}/lua-posix-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: lua-devel
%{?lua_requires}
2008-04-08 21:33:01 +00:00
%description
This is a POSIX library for Lua which provides access to many POSIX features
to Lua programs.
2008-04-08 21:33:01 +00:00
%prep
%autosetup -p1 -n luaposix-%{version}
2015-02-26 22:01:01 +00:00
2008-04-08 21:33:01 +00:00
%build
build-aux/luke CFLAGS="%build_cflags" LDFLAGS="%build_ldflags"
2008-04-08 21:33:01 +00:00
%install
build-aux/luke install PREFIX=%{buildroot}%{_prefix} INST_LIBDIR=%{buildroot}%{lua_libdir}
2020-07-03 18:32:49 +00:00
2011-10-06 16:02:26 +00:00
%check
lua -e \
'package.cpath="%{buildroot}%{lua_libdir}/?.so;"..package.cpath;
package.path="%{buildroot}%{lua_pkgdir}/?.lua;"..package.path;
local posix = require("posix.errno"); print("Hello from "..posix.version.."!");'
%if %{with check}
lua ./spec/spec_helper.lua
%endif
2008-04-08 21:33:01 +00:00
%files
2020-07-03 18:32:49 +00:00
%license LICENSE
%doc AUTHORS NEWS.md README.md
%{lua_libdir}/*
%{lua_pkgdir}/posix/
2008-04-08 21:33:01 +00:00
%changelog
%autochangelog