Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
7832fb85eb
|
|||
|
401feff8a5
|
|||
|
ec7c73b99c
|
|||
|
87d912a334
|
|||
|
630616354a
|
|||
|
baeb47c2ce
|
|||
|
49264d8bae
|
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -21,3 +21,4 @@
|
|||||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.changes merge=merge-changes
|
||||||
|
|||||||
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1 +1,8 @@
|
|||||||
.osc
|
*.osc
|
||||||
|
_scmsync.obsinfo
|
||||||
|
_buildconfig-*
|
||||||
|
_buildinfo-*.xml
|
||||||
|
*.obscpio
|
||||||
|
_build.*
|
||||||
|
.pbuild
|
||||||
|
lua*luautf8-*-build/
|
||||||
|
|||||||
BIN
0.2.0.tar.gz
LFS
Normal file
BIN
0.2.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,5 +1,6 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>lua51</package>
|
<package>luajit</package>
|
||||||
<package>lua53</package>
|
<package>lua53</package>
|
||||||
<package>lua54</package>
|
<package>lua54</package>
|
||||||
|
<package>lua55</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
|||||||
@@ -1,3 +1,46 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 3 01:37:49 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Upgrade to 0.2.0, Modernized API & New Truncation Features:
|
||||||
|
- BREAKING: utf8.width() and utf8.widthindex() parameter order
|
||||||
|
changed
|
||||||
|
- BREAKING: ambi_is_double (boolean) replaced with ambiwidth
|
||||||
|
(integer)
|
||||||
|
- NEW: utf8.widthlimit() for intelligent width-based truncation
|
||||||
|
- NEW: Byte range parameters i, j for width functions
|
||||||
|
- NEW: utf8.version constant
|
||||||
|
- IMPROVED: Complete documentation rewrite with examples
|
||||||
|
- IMPROVED: Comprehensive test coverage for all new features
|
||||||
|
- FIXED: Various grammar and formatting issues in documentation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 23 21:39:41 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Enable lua55 build.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 24 14:50:10 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Switch off building lua51 build of the package.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 12 07:52:14 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Make the package buildable with LuaJIT.
|
||||||
|
- Add warnings-away.patch to remove compilation warnings.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 25 20:57:36 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Update to 0.1.6:
|
||||||
|
- Add 'normalize_nfc' and 'isnfc' functions
|
||||||
|
- Update to Unicode 15.1
|
||||||
|
- Add new 'grapheme_indices' function
|
||||||
|
- Improve grammar, spelling, and formatting of README.md
|
||||||
|
- Fix bugs in NFC normalization code
|
||||||
|
- Explicitly include limits.h instead of transitively assuming
|
||||||
|
it
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 1 02:00:36 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>
|
Mon Apr 1 02:00:36 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -28,13 +28,14 @@
|
|||||||
%define luarock_arch %{_arch}
|
%define luarock_arch %{_arch}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
Version: 0.1.5+git6
|
Version: 0.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A utf-8 support module for Lua and LuaJIT
|
Summary: A utf-8 support module for Lua and LuaJIT
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
URL: https://github.com/starwing/luautf8
|
URL: https://github.com/starwing/luautf8
|
||||||
Source: %{mod_name}-%{version}.tar.zst
|
# Source: %%{mod_name}-%%{version}.tar.zst
|
||||||
|
Source: https://github.com/starwing/luautf8/archive/refs/tags/%{version}.tar.gz
|
||||||
BuildRequires: %{flavor}-devel
|
BuildRequires: %{flavor}-devel
|
||||||
BuildRequires: %{flavor}-luarocks
|
BuildRequires: %{flavor}-luarocks
|
||||||
BuildRequires: lua-macros
|
BuildRequires: lua-macros
|
||||||
@@ -60,17 +61,21 @@ test in lua test suite2.
|
|||||||
%autosetup -n %{mod_name}-%{version}
|
%autosetup -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%luarocks_build "rockspecs/%{mod_name}-%{rock_version}.rockspec"
|
%__cc %{optflags} -fPIC %(pkgconf --cflags lua) -c lutf8lib.c -o lutf8lib.o
|
||||||
|
%__cc -shared %{?build_ldflags} %(pkgconf --libs lua) -o lua-utf8.so lutf8lib.o
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%luarocks_install "%{mod_name}-%{rock_version}.linux-%{luarock_arch}.rock"
|
install -dD %{buildroot}%{lua_archdir}
|
||||||
|
install -p -m 755 lua-utf8.so %{buildroot}%{lua_archdir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
for testf in test*.lua
|
||||||
|
do
|
||||||
|
lua $testf
|
||||||
|
done
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{lua_archdir}
|
%{lua_archdir}
|
||||||
%{luarocks_treedir}/%{mod_name}
|
%license LICENSE
|
||||||
%docdir %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc
|
|
||||||
%license %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc/LICENSE
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6c20ea6902d71b5ec0136877868648a827b01b5c5fe13cf28bca32c2151afef3
|
|
||||||
size 430351
|
|
||||||
Reference in New Issue
Block a user