Sync from SUSE:ALP:Source:Standard:1.0 lua-luaposix revision aa43eb946ac446dd0ede473ec12d90ce

This commit is contained in:
Adrian Schröter 2023-06-07 08:11:42 +02:00
commit 4038937972
5 changed files with 228 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

5
_multibuild Normal file
View File

@ -0,0 +1,5 @@
<multibuild>
<package>lua51</package>
<package>lua53</package>
<package>lua54</package>
</multibuild>

120
lua-luaposix.changes Normal file
View File

@ -0,0 +1,120 @@
-------------------------------------------------------------------
Wed Jan 25 11:52:07 UTC 2023 - Michal Suchanek <msuchanek@suse.de>
- Fix missing dependency on lua-macros (boo#1205612)
-------------------------------------------------------------------
Sat Dec 18 14:54:13 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Update to version 35.1:
* Support AF_PACKET socket family, where available.
* Support SIGINFO, SIGWINCH and SA_RESTART, where available.
* Documentation cleanups
- avoid setting build USER tag
- Use %ifluadefault
- Clean spec file
-------------------------------------------------------------------
Wed Jan 27 15:56:08 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Use %lua_provides macro
-------------------------------------------------------------------
Sun Jul 12 13:40:45 UTC 2020 - Callum Farmer <callumjfarmer13@gmail.com>
- 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.
-------------------------------------------------------------------
Mon Jul 6 19:05:38 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Add lua54 as new build target
-------------------------------------------------------------------
Fri Aug 30 07:32:37 UTC 2019 - Ana Guerrero Lopez <aguerrero@suse.com>
- New version 34.1.1, please read NEWS.md for changes (jsc#SLE-8509)
- Remove patch, merged upstream:
* maint-sync-luke-with-upstream.patch
- Add %license
-------------------------------------------------------------------
Thu Apr 26 17:15:34 UTC 2018 - jberry@suse.com
- Only produce docs during one flavor to avoid duplicate binary.
-------------------------------------------------------------------
Mon Oct 30 14:45:32 UTC 2017 - jmatejek@suse.com
- do not build for Lua 5.2
-------------------------------------------------------------------
Thu Aug 10 16:00:15 UTC 2017 - eich@suse.com
- 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.
-------------------------------------------------------------------
Thu Aug 10 15:20:46 UTC 2017 - eich@suse.com
- Fix provides/obsoletes for the old package name.
-------------------------------------------------------------------
Thu Jul 13 18:40:56 UTC 2017 - tchvatal@suse.com
- Put documentation on %_docdir/%name not just %_docdir
-------------------------------------------------------------------
Thu Jul 13 17:38:22 UTC 2017 - tchvatal@suse.com
- Switch to multibuild build
- Update to 33.3.1:
* Various lua5.3 fixes
- Drop patch install_path.patch
-------------------------------------------------------------------
Wed Jan 4 15:48:47 UTC 2017 - eich@suse.com
- Replaced 'makeinstall' by 'make_install'.
- Removed %clean section.
- Replaced Documentation/http by Documentation/HTML.
-------------------------------------------------------------------
Mon Oct 17 13:31:09 UTC 2016 - eich@suse.com
- Setting 'download_files' service to mode='localonly'
and adding source tarball. (Required for Factory).
-------------------------------------------------------------------
Tue Oct 11 21:10:05 UTC 2016 - eich@suse.com
- Initial version of lua-luaposix: 33.2.1.

77
lua-luaposix.spec Normal file
View File

@ -0,0 +1,77 @@
#
# 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
This package contains the documentation for %{flavor}-luaposix.
%prep
%autosetup -n luaposix-%{version}
%build
# avoid setting USER tag
export USER=""
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.
%ifluadefault
%files -n %{mod_name}-doc
%doc doc/*
%endif
%changelog

BIN
luaposix-35.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.