SHA256
10
0
forked from pool/lua-luaposix
Files
lua-luaposix/lua-luaposix.spec
Matej Cepl 1b8c5bf1ab Accepting request 820551 from home:gmbr3:Active
- Update to version 35.0
  * Initial support for Lua 5.4
  * Internally, we use our own bitwise operation wrapper functions
    rather than bit32 where possible. This means bitwise operations
    when running under Lua 5.3+ work on 64bit integers.

OBS-URL: https://build.opensuse.org/request/show/820551
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaposix?expand=0&rev=28
2020-07-13 06:37:03 +00:00

78 lines
2.2 KiB
RPMSpec

#
# spec file for package lua-luaposix
#
# Copyright (c) 2020 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@
%define mod_name luaposix
Version: 35.0
Release: 0
Summary: POSIX library for Lua
License: MIT
Group: Development/Libraries/Other
URL: https://github.com/luaposix/luaposix
Source0: https://github.com/luaposix/luaposix/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: ncurses-devel
BuildRequires: perl
Requires: %{flavor}
%if "%{flavor}" == "lua53"
Provides: lua-%{mod_name} = %{version}
Obsoletes: lua-%{mod_name} < %{version}
%endif
%if "%{flavor}" == ""
Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
%description
This is a POSIX library for Lua which provides access to many POSIX features
to Lua programs.
%package -n %{mod_name}-doc
Summary: Documentation on luaposix
Group: Documentation/HTML
BuildArch: noarch
%description -n %{mod_name}-doc
This package contains the documentation for %{flavor}-luaposix.
%prep
%setup -q -n luaposix-%{version}
%build
build-aux/luke PREFIX=%{_prefix} all
%install
build-aux/luke PREFIX=%{buildroot}%{_prefix} INST_LIBDIR=%{buildroot}%{lua_archdir} \
INST_LUADIR=%{buildroot}%{lua_noarchdir} install
%files
%doc README.md NEWS.md AUTHORS
%license LICENSE
%{lua_archdir}/posix
%{lua_noarchdir}/posix
# Only produce docs during one flavor to avoid duplicate binary.
%if "%{flavor}" == "lua53"
%files -n %{mod_name}-doc
%doc doc/*
%endif
%changelog