2019-10-28 16:49:38 +00:00
|
|
|
#
|
2020-04-01 20:21:48 +00:00
|
|
|
# spec file for package lua-luasystem
|
2019-10-28 16:49:38 +00:00
|
|
|
#
|
2022-11-23 13:14:31 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-10-28 16:49:38 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2019-11-03 19:01:54 +00:00
|
|
|
%define flavor @BUILD_FLAVOR@
|
2025-10-29 18:49:20 +01:00
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
|
%define flavor lua54
|
|
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with test
|
|
|
|
|
%endif
|
2019-10-28 16:49:38 +00:00
|
|
|
%define mod_name luasystem
|
Change of the upstream project.
Update to 0.6.3:
- Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to
reduce slugginess feel on some key presses. See #69.
- Fix: readansi now only reports printable chars as characters
See #70.
- Fix: readkey now ignores Windows scancodes if received. See
#74.
- Fix: readkey now passes errors on. See #74.
Update to 0.6.2:
- Fix: autotermrestore didn't work because its metatable was
overwritten.
Update to 0.6.1:
- Docs: document readansi internal buffer for incomplete
sequences.
- Fix: ensure to properly parse <alt>+key key presses
Update to 0.6.0:
- Fix: when sleep returns an error, pass that on in readkey.
- Feat: added detachfds which will create separate file
descriptions for stdout and stderr to ensure that related
settings (eg. non-blocking flag) will not be shared amongst
those streams and stdin.
Update to 0.5.1:
- Fix: on older unixes with glibc < 2.25, fall back to
/dev/urandom
Update to 0.5.0:
- Feat: when detecting character display width, also accept
unicode codepoints (integers), since the Lua utf8 library
returns codepoints, not strings
- Feat: allow passing in a sleep function to readkey and
readansi
- Fix: NetBSD fix compilation, undeclared directives
- Refactor: random bytes; remove deprecated API usage on
Windows, move to binary api instead of /dev/urandom file on
linux and bsd
Update to 0.4.5:
- Fix: suppress a warning when building with clang
- Fix: do not rely on luaconf.h to include limits.h, fixes
builds with latest LuaJIT (#38).
Update to 0.4.4:
- Fix: include all objects in Makefile
Update to 0.4.3:
- Chore: add compiler error on Windows if Virtual Terminal
Processing is unavailable.
- Fix: fix the freebsd build
Update to 0.4.2:
- Fix: include additional headers for some MinGW installations
Update to 0.4.1:
- Fix: when compiling with msys2 the conio.h header is required
Update to 0.4.0:
- Feat: getconsoleflags and setconsoleflags for getting/setting
the current console configuration flags on Windows
- Feat: getconsolecp and setconsolecp for getting/setting the
console codepage on Windows
- Feat: getconsoleoutputcp and setconsoleoutputcp for
getting/setting the console output codepage on Windows
- Feat: tcgetattr and tcsetattr for getting/setting the current
console configuration flags on Posix
- Feat: getnonblock and setnonblock for getting/setting the
non-blocking flag on Posix
- Feat: bitflags: a support feature for the above flag type
controls to facilitate bit manipulation without resorting to
binary operations (to also support PuC Lua 5.1)
- Feat: readkey reads a keyboard input from stdin in a
non-blocking way (utf8, also on Windows)
- Feat: readansi reads a keyboard input from stdin in a
non-blocking way, parses ansi and utf8 sequences
- Feat: termsize gets the current terminal size in rows and
columns
- Feat: utf8cwidth and utf8swidth for getting the display width
(in columns) of respectively a single utf8 character, or a
utf8 string
- Feat: helpers; termbackup, termrestore, autotermrestore,
and termwrap for managing the many terminal settings on all
platforms.
Update to 0.3.0:
- Feat: on Windows sleep now has a precision parameter
- Feat: setenv added to set environment variables.
- Feat: getenvs added to list environment variables.
- Feat: getenv added to get environment variable previously set
(Windows).
- Feat: random added to return high-quality random bytes
- Feat: isatty added to check if a file-handle is a tty
Remove upstreamed patches:
- build-independent.patch
2025-10-21 01:34:30 +02:00
|
|
|
Version: 0.6.3
|
2019-10-28 16:49:38 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Platform independent system calls for Lua
|
|
|
|
|
License: MIT
|
Change of the upstream project.
Update to 0.6.3:
- Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to
reduce slugginess feel on some key presses. See #69.
- Fix: readansi now only reports printable chars as characters
See #70.
- Fix: readkey now ignores Windows scancodes if received. See
#74.
- Fix: readkey now passes errors on. See #74.
Update to 0.6.2:
- Fix: autotermrestore didn't work because its metatable was
overwritten.
Update to 0.6.1:
- Docs: document readansi internal buffer for incomplete
sequences.
- Fix: ensure to properly parse <alt>+key key presses
Update to 0.6.0:
- Fix: when sleep returns an error, pass that on in readkey.
- Feat: added detachfds which will create separate file
descriptions for stdout and stderr to ensure that related
settings (eg. non-blocking flag) will not be shared amongst
those streams and stdin.
Update to 0.5.1:
- Fix: on older unixes with glibc < 2.25, fall back to
/dev/urandom
Update to 0.5.0:
- Feat: when detecting character display width, also accept
unicode codepoints (integers), since the Lua utf8 library
returns codepoints, not strings
- Feat: allow passing in a sleep function to readkey and
readansi
- Fix: NetBSD fix compilation, undeclared directives
- Refactor: random bytes; remove deprecated API usage on
Windows, move to binary api instead of /dev/urandom file on
linux and bsd
Update to 0.4.5:
- Fix: suppress a warning when building with clang
- Fix: do not rely on luaconf.h to include limits.h, fixes
builds with latest LuaJIT (#38).
Update to 0.4.4:
- Fix: include all objects in Makefile
Update to 0.4.3:
- Chore: add compiler error on Windows if Virtual Terminal
Processing is unavailable.
- Fix: fix the freebsd build
Update to 0.4.2:
- Fix: include additional headers for some MinGW installations
Update to 0.4.1:
- Fix: when compiling with msys2 the conio.h header is required
Update to 0.4.0:
- Feat: getconsoleflags and setconsoleflags for getting/setting
the current console configuration flags on Windows
- Feat: getconsolecp and setconsolecp for getting/setting the
console codepage on Windows
- Feat: getconsoleoutputcp and setconsoleoutputcp for
getting/setting the console output codepage on Windows
- Feat: tcgetattr and tcsetattr for getting/setting the current
console configuration flags on Posix
- Feat: getnonblock and setnonblock for getting/setting the
non-blocking flag on Posix
- Feat: bitflags: a support feature for the above flag type
controls to facilitate bit manipulation without resorting to
binary operations (to also support PuC Lua 5.1)
- Feat: readkey reads a keyboard input from stdin in a
non-blocking way (utf8, also on Windows)
- Feat: readansi reads a keyboard input from stdin in a
non-blocking way, parses ansi and utf8 sequences
- Feat: termsize gets the current terminal size in rows and
columns
- Feat: utf8cwidth and utf8swidth for getting the display width
(in columns) of respectively a single utf8 character, or a
utf8 string
- Feat: helpers; termbackup, termrestore, autotermrestore,
and termwrap for managing the many terminal settings on all
platforms.
Update to 0.3.0:
- Feat: on Windows sleep now has a precision parameter
- Feat: setenv added to set environment variables.
- Feat: getenvs added to list environment variables.
- Feat: getenv added to get environment variable previously set
(Windows).
- Feat: random added to return high-quality random bytes
- Feat: isatty added to check if a file-handle is a tty
Remove upstreamed patches:
- build-independent.patch
2025-10-21 01:34:30 +02:00
|
|
|
URL: https://github.com/lunarmodules/luasystem
|
|
|
|
|
Source: https://github.com/lunarmodules/luasystem/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
2025-10-28 15:19:18 +01:00
|
|
|
# PATCH-FIX-UPSTREAM unused_variable.patch gh#lunarmodules/luasystem!78 mcepl@suse.com
|
|
|
|
|
# remove two unused-variable warnings
|
|
|
|
|
Patch0: unused_variable.patch
|
2019-10-28 16:49:38 +00:00
|
|
|
BuildRequires: %{flavor}-devel
|
Change of the upstream project.
Update to 0.6.3:
- Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to
reduce slugginess feel on some key presses. See #69.
- Fix: readansi now only reports printable chars as characters
See #70.
- Fix: readkey now ignores Windows scancodes if received. See
#74.
- Fix: readkey now passes errors on. See #74.
Update to 0.6.2:
- Fix: autotermrestore didn't work because its metatable was
overwritten.
Update to 0.6.1:
- Docs: document readansi internal buffer for incomplete
sequences.
- Fix: ensure to properly parse <alt>+key key presses
Update to 0.6.0:
- Fix: when sleep returns an error, pass that on in readkey.
- Feat: added detachfds which will create separate file
descriptions for stdout and stderr to ensure that related
settings (eg. non-blocking flag) will not be shared amongst
those streams and stdin.
Update to 0.5.1:
- Fix: on older unixes with glibc < 2.25, fall back to
/dev/urandom
Update to 0.5.0:
- Feat: when detecting character display width, also accept
unicode codepoints (integers), since the Lua utf8 library
returns codepoints, not strings
- Feat: allow passing in a sleep function to readkey and
readansi
- Fix: NetBSD fix compilation, undeclared directives
- Refactor: random bytes; remove deprecated API usage on
Windows, move to binary api instead of /dev/urandom file on
linux and bsd
Update to 0.4.5:
- Fix: suppress a warning when building with clang
- Fix: do not rely on luaconf.h to include limits.h, fixes
builds with latest LuaJIT (#38).
Update to 0.4.4:
- Fix: include all objects in Makefile
Update to 0.4.3:
- Chore: add compiler error on Windows if Virtual Terminal
Processing is unavailable.
- Fix: fix the freebsd build
Update to 0.4.2:
- Fix: include additional headers for some MinGW installations
Update to 0.4.1:
- Fix: when compiling with msys2 the conio.h header is required
Update to 0.4.0:
- Feat: getconsoleflags and setconsoleflags for getting/setting
the current console configuration flags on Windows
- Feat: getconsolecp and setconsolecp for getting/setting the
console codepage on Windows
- Feat: getconsoleoutputcp and setconsoleoutputcp for
getting/setting the console output codepage on Windows
- Feat: tcgetattr and tcsetattr for getting/setting the current
console configuration flags on Posix
- Feat: getnonblock and setnonblock for getting/setting the
non-blocking flag on Posix
- Feat: bitflags: a support feature for the above flag type
controls to facilitate bit manipulation without resorting to
binary operations (to also support PuC Lua 5.1)
- Feat: readkey reads a keyboard input from stdin in a
non-blocking way (utf8, also on Windows)
- Feat: readansi reads a keyboard input from stdin in a
non-blocking way, parses ansi and utf8 sequences
- Feat: termsize gets the current terminal size in rows and
columns
- Feat: utf8cwidth and utf8swidth for getting the display width
(in columns) of respectively a single utf8 character, or a
utf8 string
- Feat: helpers; termbackup, termrestore, autotermrestore,
and termwrap for managing the many terminal settings on all
platforms.
Update to 0.3.0:
- Feat: on Windows sleep now has a precision parameter
- Feat: setenv added to set environment variables.
- Feat: getenvs added to list environment variables.
- Feat: getenv added to get environment variable previously set
(Windows).
- Feat: random added to return high-quality random bytes
- Feat: isatty added to check if a file-handle is a tty
Remove upstreamed patches:
- build-independent.patch
2025-10-21 01:34:30 +02:00
|
|
|
BuildRequires: %{flavor}-luarocks
|
2022-11-23 13:14:31 +00:00
|
|
|
BuildRequires: lua-macros
|
2025-10-10 16:42:40 +02:00
|
|
|
BuildRequires: pkgconf
|
2019-10-28 16:49:38 +00:00
|
|
|
Requires: %{flavor}
|
2021-02-11 10:56:24 +00:00
|
|
|
%lua_provides
|
2019-10-28 16:49:38 +00:00
|
|
|
%if "%{flavor}" == ""
|
|
|
|
|
Name: lua-luasystem
|
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
|
%else
|
2025-10-29 18:49:20 +01:00
|
|
|
%if %{with test}
|
|
|
|
|
Name: %{flavor}-luasystem-test
|
|
|
|
|
%else
|
2019-10-28 16:49:38 +00:00
|
|
|
Name: %{flavor}-luasystem
|
|
|
|
|
%endif
|
2025-10-29 18:49:20 +01:00
|
|
|
%endif
|
|
|
|
|
%if %{with test}
|
|
|
|
|
BuildRequires: %{flavor}-luasystem
|
|
|
|
|
BuildRequires: %{flavor}-busted
|
|
|
|
|
%endif
|
2019-10-28 16:49:38 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Adds a Lua API for making platform independent system calls.
|
|
|
|
|
|
|
|
|
|
%prep
|
Change of the upstream project.
Update to 0.6.3:
- Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to
reduce slugginess feel on some key presses. See #69.
- Fix: readansi now only reports printable chars as characters
See #70.
- Fix: readkey now ignores Windows scancodes if received. See
#74.
- Fix: readkey now passes errors on. See #74.
Update to 0.6.2:
- Fix: autotermrestore didn't work because its metatable was
overwritten.
Update to 0.6.1:
- Docs: document readansi internal buffer for incomplete
sequences.
- Fix: ensure to properly parse <alt>+key key presses
Update to 0.6.0:
- Fix: when sleep returns an error, pass that on in readkey.
- Feat: added detachfds which will create separate file
descriptions for stdout and stderr to ensure that related
settings (eg. non-blocking flag) will not be shared amongst
those streams and stdin.
Update to 0.5.1:
- Fix: on older unixes with glibc < 2.25, fall back to
/dev/urandom
Update to 0.5.0:
- Feat: when detecting character display width, also accept
unicode codepoints (integers), since the Lua utf8 library
returns codepoints, not strings
- Feat: allow passing in a sleep function to readkey and
readansi
- Fix: NetBSD fix compilation, undeclared directives
- Refactor: random bytes; remove deprecated API usage on
Windows, move to binary api instead of /dev/urandom file on
linux and bsd
Update to 0.4.5:
- Fix: suppress a warning when building with clang
- Fix: do not rely on luaconf.h to include limits.h, fixes
builds with latest LuaJIT (#38).
Update to 0.4.4:
- Fix: include all objects in Makefile
Update to 0.4.3:
- Chore: add compiler error on Windows if Virtual Terminal
Processing is unavailable.
- Fix: fix the freebsd build
Update to 0.4.2:
- Fix: include additional headers for some MinGW installations
Update to 0.4.1:
- Fix: when compiling with msys2 the conio.h header is required
Update to 0.4.0:
- Feat: getconsoleflags and setconsoleflags for getting/setting
the current console configuration flags on Windows
- Feat: getconsolecp and setconsolecp for getting/setting the
console codepage on Windows
- Feat: getconsoleoutputcp and setconsoleoutputcp for
getting/setting the console output codepage on Windows
- Feat: tcgetattr and tcsetattr for getting/setting the current
console configuration flags on Posix
- Feat: getnonblock and setnonblock for getting/setting the
non-blocking flag on Posix
- Feat: bitflags: a support feature for the above flag type
controls to facilitate bit manipulation without resorting to
binary operations (to also support PuC Lua 5.1)
- Feat: readkey reads a keyboard input from stdin in a
non-blocking way (utf8, also on Windows)
- Feat: readansi reads a keyboard input from stdin in a
non-blocking way, parses ansi and utf8 sequences
- Feat: termsize gets the current terminal size in rows and
columns
- Feat: utf8cwidth and utf8swidth for getting the display width
(in columns) of respectively a single utf8 character, or a
utf8 string
- Feat: helpers; termbackup, termrestore, autotermrestore,
and termwrap for managing the many terminal settings on all
platforms.
Update to 0.3.0:
- Feat: on Windows sleep now has a precision parameter
- Feat: setenv added to set environment variables.
- Feat: getenvs added to list environment variables.
- Feat: getenv added to get environment variable previously set
(Windows).
- Feat: random added to return high-quality random bytes
- Feat: isatty added to check if a file-handle is a tty
Remove upstreamed patches:
- build-independent.patch
2025-10-21 01:34:30 +02:00
|
|
|
%autosetup -p1 -n %{mod_name}-%{version}
|
2019-10-28 16:49:38 +00:00
|
|
|
|
|
|
|
|
%build
|
Change of the upstream project.
Update to 0.6.3:
- Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to
reduce slugginess feel on some key presses. See #69.
- Fix: readansi now only reports printable chars as characters
See #70.
- Fix: readkey now ignores Windows scancodes if received. See
#74.
- Fix: readkey now passes errors on. See #74.
Update to 0.6.2:
- Fix: autotermrestore didn't work because its metatable was
overwritten.
Update to 0.6.1:
- Docs: document readansi internal buffer for incomplete
sequences.
- Fix: ensure to properly parse <alt>+key key presses
Update to 0.6.0:
- Fix: when sleep returns an error, pass that on in readkey.
- Feat: added detachfds which will create separate file
descriptions for stdout and stderr to ensure that related
settings (eg. non-blocking flag) will not be shared amongst
those streams and stdin.
Update to 0.5.1:
- Fix: on older unixes with glibc < 2.25, fall back to
/dev/urandom
Update to 0.5.0:
- Feat: when detecting character display width, also accept
unicode codepoints (integers), since the Lua utf8 library
returns codepoints, not strings
- Feat: allow passing in a sleep function to readkey and
readansi
- Fix: NetBSD fix compilation, undeclared directives
- Refactor: random bytes; remove deprecated API usage on
Windows, move to binary api instead of /dev/urandom file on
linux and bsd
Update to 0.4.5:
- Fix: suppress a warning when building with clang
- Fix: do not rely on luaconf.h to include limits.h, fixes
builds with latest LuaJIT (#38).
Update to 0.4.4:
- Fix: include all objects in Makefile
Update to 0.4.3:
- Chore: add compiler error on Windows if Virtual Terminal
Processing is unavailable.
- Fix: fix the freebsd build
Update to 0.4.2:
- Fix: include additional headers for some MinGW installations
Update to 0.4.1:
- Fix: when compiling with msys2 the conio.h header is required
Update to 0.4.0:
- Feat: getconsoleflags and setconsoleflags for getting/setting
the current console configuration flags on Windows
- Feat: getconsolecp and setconsolecp for getting/setting the
console codepage on Windows
- Feat: getconsoleoutputcp and setconsoleoutputcp for
getting/setting the console output codepage on Windows
- Feat: tcgetattr and tcsetattr for getting/setting the current
console configuration flags on Posix
- Feat: getnonblock and setnonblock for getting/setting the
non-blocking flag on Posix
- Feat: bitflags: a support feature for the above flag type
controls to facilitate bit manipulation without resorting to
binary operations (to also support PuC Lua 5.1)
- Feat: readkey reads a keyboard input from stdin in a
non-blocking way (utf8, also on Windows)
- Feat: readansi reads a keyboard input from stdin in a
non-blocking way, parses ansi and utf8 sequences
- Feat: termsize gets the current terminal size in rows and
columns
- Feat: utf8cwidth and utf8swidth for getting the display width
(in columns) of respectively a single utf8 character, or a
utf8 string
- Feat: helpers; termbackup, termrestore, autotermrestore,
and termwrap for managing the many terminal settings on all
platforms.
Update to 0.3.0:
- Feat: on Windows sleep now has a precision parameter
- Feat: setenv added to set environment variables.
- Feat: getenvs added to list environment variables.
- Feat: getenv added to get environment variable previously set
(Windows).
- Feat: random added to return high-quality random bytes
- Feat: isatty added to check if a file-handle is a tty
Remove upstreamed patches:
- build-independent.patch
2025-10-21 01:34:30 +02:00
|
|
|
export CFLAGS="%{optflags} $(pkgconf --cflags lua)" \
|
|
|
|
|
MYLDFLAGS="$(pkgconf --libs lua)"
|
|
|
|
|
%luarocks_build
|
2019-10-28 16:49:38 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-10-29 18:49:20 +01:00
|
|
|
%if %{without test}
|
Change of the upstream project.
Update to 0.6.3:
- Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to
reduce slugginess feel on some key presses. See #69.
- Fix: readansi now only reports printable chars as characters
See #70.
- Fix: readkey now ignores Windows scancodes if received. See
#74.
- Fix: readkey now passes errors on. See #74.
Update to 0.6.2:
- Fix: autotermrestore didn't work because its metatable was
overwritten.
Update to 0.6.1:
- Docs: document readansi internal buffer for incomplete
sequences.
- Fix: ensure to properly parse <alt>+key key presses
Update to 0.6.0:
- Fix: when sleep returns an error, pass that on in readkey.
- Feat: added detachfds which will create separate file
descriptions for stdout and stderr to ensure that related
settings (eg. non-blocking flag) will not be shared amongst
those streams and stdin.
Update to 0.5.1:
- Fix: on older unixes with glibc < 2.25, fall back to
/dev/urandom
Update to 0.5.0:
- Feat: when detecting character display width, also accept
unicode codepoints (integers), since the Lua utf8 library
returns codepoints, not strings
- Feat: allow passing in a sleep function to readkey and
readansi
- Fix: NetBSD fix compilation, undeclared directives
- Refactor: random bytes; remove deprecated API usage on
Windows, move to binary api instead of /dev/urandom file on
linux and bsd
Update to 0.4.5:
- Fix: suppress a warning when building with clang
- Fix: do not rely on luaconf.h to include limits.h, fixes
builds with latest LuaJIT (#38).
Update to 0.4.4:
- Fix: include all objects in Makefile
Update to 0.4.3:
- Chore: add compiler error on Windows if Virtual Terminal
Processing is unavailable.
- Fix: fix the freebsd build
Update to 0.4.2:
- Fix: include additional headers for some MinGW installations
Update to 0.4.1:
- Fix: when compiling with msys2 the conio.h header is required
Update to 0.4.0:
- Feat: getconsoleflags and setconsoleflags for getting/setting
the current console configuration flags on Windows
- Feat: getconsolecp and setconsolecp for getting/setting the
console codepage on Windows
- Feat: getconsoleoutputcp and setconsoleoutputcp for
getting/setting the console output codepage on Windows
- Feat: tcgetattr and tcsetattr for getting/setting the current
console configuration flags on Posix
- Feat: getnonblock and setnonblock for getting/setting the
non-blocking flag on Posix
- Feat: bitflags: a support feature for the above flag type
controls to facilitate bit manipulation without resorting to
binary operations (to also support PuC Lua 5.1)
- Feat: readkey reads a keyboard input from stdin in a
non-blocking way (utf8, also on Windows)
- Feat: readansi reads a keyboard input from stdin in a
non-blocking way, parses ansi and utf8 sequences
- Feat: termsize gets the current terminal size in rows and
columns
- Feat: utf8cwidth and utf8swidth for getting the display width
(in columns) of respectively a single utf8 character, or a
utf8 string
- Feat: helpers; termbackup, termrestore, autotermrestore,
and termwrap for managing the many terminal settings on all
platforms.
Update to 0.3.0:
- Feat: on Windows sleep now has a precision parameter
- Feat: setenv added to set environment variables.
- Feat: getenvs added to list environment variables.
- Feat: getenv added to get environment variable previously set
(Windows).
- Feat: random added to return high-quality random bytes
- Feat: isatty added to check if a file-handle is a tty
Remove upstreamed patches:
- build-independent.patch
2025-10-21 01:34:30 +02:00
|
|
|
export CWARNS="%{optflags}" \
|
|
|
|
|
LUAINC_linux=%{lua_incdir} \
|
|
|
|
|
LUAPREFIX_linux=%{_prefix} \
|
|
|
|
|
CDIR_linux="%{_lib}/lua/%{lua_version}"
|
|
|
|
|
%luarocks_install ./*.rock
|
2025-10-29 18:49:20 +01:00
|
|
|
%endif
|
Change of the upstream project.
Update to 0.6.3:
- Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to
reduce slugginess feel on some key presses. See #69.
- Fix: readansi now only reports printable chars as characters
See #70.
- Fix: readkey now ignores Windows scancodes if received. See
#74.
- Fix: readkey now passes errors on. See #74.
Update to 0.6.2:
- Fix: autotermrestore didn't work because its metatable was
overwritten.
Update to 0.6.1:
- Docs: document readansi internal buffer for incomplete
sequences.
- Fix: ensure to properly parse <alt>+key key presses
Update to 0.6.0:
- Fix: when sleep returns an error, pass that on in readkey.
- Feat: added detachfds which will create separate file
descriptions for stdout and stderr to ensure that related
settings (eg. non-blocking flag) will not be shared amongst
those streams and stdin.
Update to 0.5.1:
- Fix: on older unixes with glibc < 2.25, fall back to
/dev/urandom
Update to 0.5.0:
- Feat: when detecting character display width, also accept
unicode codepoints (integers), since the Lua utf8 library
returns codepoints, not strings
- Feat: allow passing in a sleep function to readkey and
readansi
- Fix: NetBSD fix compilation, undeclared directives
- Refactor: random bytes; remove deprecated API usage on
Windows, move to binary api instead of /dev/urandom file on
linux and bsd
Update to 0.4.5:
- Fix: suppress a warning when building with clang
- Fix: do not rely on luaconf.h to include limits.h, fixes
builds with latest LuaJIT (#38).
Update to 0.4.4:
- Fix: include all objects in Makefile
Update to 0.4.3:
- Chore: add compiler error on Windows if Virtual Terminal
Processing is unavailable.
- Fix: fix the freebsd build
Update to 0.4.2:
- Fix: include additional headers for some MinGW installations
Update to 0.4.1:
- Fix: when compiling with msys2 the conio.h header is required
Update to 0.4.0:
- Feat: getconsoleflags and setconsoleflags for getting/setting
the current console configuration flags on Windows
- Feat: getconsolecp and setconsolecp for getting/setting the
console codepage on Windows
- Feat: getconsoleoutputcp and setconsoleoutputcp for
getting/setting the console output codepage on Windows
- Feat: tcgetattr and tcsetattr for getting/setting the current
console configuration flags on Posix
- Feat: getnonblock and setnonblock for getting/setting the
non-blocking flag on Posix
- Feat: bitflags: a support feature for the above flag type
controls to facilitate bit manipulation without resorting to
binary operations (to also support PuC Lua 5.1)
- Feat: readkey reads a keyboard input from stdin in a
non-blocking way (utf8, also on Windows)
- Feat: readansi reads a keyboard input from stdin in a
non-blocking way, parses ansi and utf8 sequences
- Feat: termsize gets the current terminal size in rows and
columns
- Feat: utf8cwidth and utf8swidth for getting the display width
(in columns) of respectively a single utf8 character, or a
utf8 string
- Feat: helpers; termbackup, termrestore, autotermrestore,
and termwrap for managing the many terminal settings on all
platforms.
Update to 0.3.0:
- Feat: on Windows sleep now has a precision parameter
- Feat: setenv added to set environment variables.
- Feat: getenvs added to list environment variables.
- Feat: getenv added to get environment variable previously set
(Windows).
- Feat: random added to return high-quality random bytes
- Feat: isatty added to check if a file-handle is a tty
Remove upstreamed patches:
- build-independent.patch
2025-10-21 01:34:30 +02:00
|
|
|
|
|
|
|
|
%check
|
2025-10-29 18:49:20 +01:00
|
|
|
%if %{with test}
|
2025-10-28 15:19:18 +01:00
|
|
|
busted || true
|
2025-10-29 18:49:20 +01:00
|
|
|
%endif
|
2019-10-28 16:49:38 +00:00
|
|
|
|
2025-10-29 18:49:20 +01:00
|
|
|
%if %{without test}
|
2019-10-28 16:49:38 +00:00
|
|
|
%files
|
|
|
|
|
%dir %{lua_archdir}/system
|
|
|
|
|
%{lua_archdir}/system/*
|
2020-04-01 20:21:48 +00:00
|
|
|
%dir %{lua_noarchdir}/system
|
|
|
|
|
%{lua_noarchdir}/system/*
|
2025-10-29 18:49:20 +01:00
|
|
|
%endif
|
2019-10-28 16:49:38 +00:00
|
|
|
|
|
|
|
|
%changelog
|