SHA256
11
0
forked from pool/lua-luaposix
lua-luaposix/lua-luaposix.spec

78 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# 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@%{nil}
%define mod_name luaposix
%if "%{flavor}" == ""
Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
Version: 35.1
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}/%{mod_name}-%{version}.tar.gz
BuildRequires: lua-macros
BuildRequires: %{flavor}-devel
BuildRequires: ncurses-devel
BuildRequires: perl
Requires: %{flavor}
%lua_provides
%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
Accepting request 515964 from home:eeich:branches:devel:languages:lua - Updating to version 3.4: * Incompatible Changes Incompatible Changes posix.syslog constants LOG_AUTHPRIV, LOG_FTP and LOG_SYSLOG are no longer documented, and only defined when supported by the host C library. They are not part of the POSIX API, and prevented compilation of luaposix on AIX and Solaris. getopt.getopt was a binding to the GNU getopt_long extension, which is not a POSIX API, and prevents luaposix from compiling on hosts that do not provide the extended API. Instead we now correctly bind POSIX getopt(3) in posix.unistd. * New Features Replaced all Autotools and supporting Slingshot code with new Lua- based build-aux/luke and lukefile describing how to compile and install everything. Building with LuaRocks now leverages this too. New posix.sys.socket.getsockopt and posix.sys.socket.getpeername bindings. New posix.sys.msg.msgctl binding, and posix.sys.msg.IPC_RMID, posix.sys.msg.IPC_SET and posix.sys.msg.IPC_STAT constants to use with it. New posix.unistd.ftruncate and posix.unistd.truncate bindings. posix.fcntl.fcntl now accepts undocumented posix.fcntl.O_TMPFILE value where supported by the host C library. * Bugs Fixed posix.unistd.ttyname now returns an error message in addition to nil when it fails. * maint-sync-luke-with-upstream.patch: Backported from upstream to make this build and install with the 'luke' version included. - Fix provides/obsoletes for the old package name. OBS-URL: https://build.opensuse.org/request/show/515964 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaposix?expand=0&rev=16
2017-08-10 16:18:22 +00:00
This package contains the documentation for %{flavor}-luaposix.
%prep
%autosetup -n luaposix-%{version}
%build
# avoid setting USER tag
export USER=""
Accepting request 515964 from home:eeich:branches:devel:languages:lua - Updating to version 3.4: * Incompatible Changes Incompatible Changes posix.syslog constants LOG_AUTHPRIV, LOG_FTP and LOG_SYSLOG are no longer documented, and only defined when supported by the host C library. They are not part of the POSIX API, and prevented compilation of luaposix on AIX and Solaris. getopt.getopt was a binding to the GNU getopt_long extension, which is not a POSIX API, and prevents luaposix from compiling on hosts that do not provide the extended API. Instead we now correctly bind POSIX getopt(3) in posix.unistd. * New Features Replaced all Autotools and supporting Slingshot code with new Lua- based build-aux/luke and lukefile describing how to compile and install everything. Building with LuaRocks now leverages this too. New posix.sys.socket.getsockopt and posix.sys.socket.getpeername bindings. New posix.sys.msg.msgctl binding, and posix.sys.msg.IPC_RMID, posix.sys.msg.IPC_SET and posix.sys.msg.IPC_STAT constants to use with it. New posix.unistd.ftruncate and posix.unistd.truncate bindings. posix.fcntl.fcntl now accepts undocumented posix.fcntl.O_TMPFILE value where supported by the host C library. * Bugs Fixed posix.unistd.ttyname now returns an error message in addition to nil when it fails. * maint-sync-luke-with-upstream.patch: Backported from upstream to make this build and install with the 'luke' version included. - Fix provides/obsoletes for the old package name. OBS-URL: https://build.opensuse.org/request/show/515964 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaposix?expand=0&rev=16
2017-08-10 16:18:22 +00:00
build-aux/luke PREFIX=%{_prefix} all
%install
Accepting request 515964 from home:eeich:branches:devel:languages:lua - Updating to version 3.4: * Incompatible Changes Incompatible Changes posix.syslog constants LOG_AUTHPRIV, LOG_FTP and LOG_SYSLOG are no longer documented, and only defined when supported by the host C library. They are not part of the POSIX API, and prevented compilation of luaposix on AIX and Solaris. getopt.getopt was a binding to the GNU getopt_long extension, which is not a POSIX API, and prevents luaposix from compiling on hosts that do not provide the extended API. Instead we now correctly bind POSIX getopt(3) in posix.unistd. * New Features Replaced all Autotools and supporting Slingshot code with new Lua- based build-aux/luke and lukefile describing how to compile and install everything. Building with LuaRocks now leverages this too. New posix.sys.socket.getsockopt and posix.sys.socket.getpeername bindings. New posix.sys.msg.msgctl binding, and posix.sys.msg.IPC_RMID, posix.sys.msg.IPC_SET and posix.sys.msg.IPC_STAT constants to use with it. New posix.unistd.ftruncate and posix.unistd.truncate bindings. posix.fcntl.fcntl now accepts undocumented posix.fcntl.O_TMPFILE value where supported by the host C library. * Bugs Fixed posix.unistd.ttyname now returns an error message in addition to nil when it fails. * maint-sync-luke-with-upstream.patch: Backported from upstream to make this build and install with the 'luke' version included. - Fix provides/obsoletes for the old package name. OBS-URL: https://build.opensuse.org/request/show/515964 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaposix?expand=0&rev=16
2017-08-10 16:18:22 +00:00
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
Accepting request 515964 from home:eeich:branches:devel:languages:lua - Updating to version 3.4: * Incompatible Changes Incompatible Changes posix.syslog constants LOG_AUTHPRIV, LOG_FTP and LOG_SYSLOG are no longer documented, and only defined when supported by the host C library. They are not part of the POSIX API, and prevented compilation of luaposix on AIX and Solaris. getopt.getopt was a binding to the GNU getopt_long extension, which is not a POSIX API, and prevents luaposix from compiling on hosts that do not provide the extended API. Instead we now correctly bind POSIX getopt(3) in posix.unistd. * New Features Replaced all Autotools and supporting Slingshot code with new Lua- based build-aux/luke and lukefile describing how to compile and install everything. Building with LuaRocks now leverages this too. New posix.sys.socket.getsockopt and posix.sys.socket.getpeername bindings. New posix.sys.msg.msgctl binding, and posix.sys.msg.IPC_RMID, posix.sys.msg.IPC_SET and posix.sys.msg.IPC_STAT constants to use with it. New posix.unistd.ftruncate and posix.unistd.truncate bindings. posix.fcntl.fcntl now accepts undocumented posix.fcntl.O_TMPFILE value where supported by the host C library. * Bugs Fixed posix.unistd.ttyname now returns an error message in addition to nil when it fails. * maint-sync-luke-with-upstream.patch: Backported from upstream to make this build and install with the 'luke' version included. - Fix provides/obsoletes for the old package name. OBS-URL: https://build.opensuse.org/request/show/515964 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaposix?expand=0&rev=16
2017-08-10 16:18:22 +00:00
%{lua_archdir}/posix
%{lua_noarchdir}/posix
# Only produce docs during one flavor to avoid duplicate binary.
%ifluadefault
%files -n %{mod_name}-doc
Accepting request 515964 from home:eeich:branches:devel:languages:lua - Updating to version 3.4: * Incompatible Changes Incompatible Changes posix.syslog constants LOG_AUTHPRIV, LOG_FTP and LOG_SYSLOG are no longer documented, and only defined when supported by the host C library. They are not part of the POSIX API, and prevented compilation of luaposix on AIX and Solaris. getopt.getopt was a binding to the GNU getopt_long extension, which is not a POSIX API, and prevents luaposix from compiling on hosts that do not provide the extended API. Instead we now correctly bind POSIX getopt(3) in posix.unistd. * New Features Replaced all Autotools and supporting Slingshot code with new Lua- based build-aux/luke and lukefile describing how to compile and install everything. Building with LuaRocks now leverages this too. New posix.sys.socket.getsockopt and posix.sys.socket.getpeername bindings. New posix.sys.msg.msgctl binding, and posix.sys.msg.IPC_RMID, posix.sys.msg.IPC_SET and posix.sys.msg.IPC_STAT constants to use with it. New posix.unistd.ftruncate and posix.unistd.truncate bindings. posix.fcntl.fcntl now accepts undocumented posix.fcntl.O_TMPFILE value where supported by the host C library. * Bugs Fixed posix.unistd.ttyname now returns an error message in addition to nil when it fails. * maint-sync-luke-with-upstream.patch: Backported from upstream to make this build and install with the 'luke' version included. - Fix provides/obsoletes for the old package name. OBS-URL: https://build.opensuse.org/request/show/515964 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaposix?expand=0&rev=16
2017-08-10 16:18:22 +00:00
%doc doc/*
%endif
%changelog