forked from pool/lua-luautf8
Accepting request 999684 from home:Pi-Cla
Submit new package. OBS-URL: https://build.opensuse.org/request/show/999684 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luautf8?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua53</package>
|
||||
<package>lua54</package>
|
||||
</multibuild>
|
17
_service
Normal file
17
_service
Normal file
@@ -0,0 +1,17 @@
|
||||
<services>
|
||||
<service mode="manual" name="obs_scm">
|
||||
<param name="url">https://github.com/starwing/luautf8</param>
|
||||
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">4e15359829f8c911de3a78ea8d4c5b945260256a</param>
|
||||
<param name="versionrewrite-pattern">(\d+.\d+.\d+)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
</service>
|
||||
<service mode="manual" name="tar" />
|
||||
<service mode="manual" name="recompress">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service mode="manual" name="set_version"/>
|
||||
</services>
|
||||
|
4
lua-luautf8.changes
Normal file
4
lua-luautf8.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 24 01:38:15 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
|
||||
|
||||
- initial commit
|
97
lua-luautf8.spec
Normal file
97
lua-luautf8.spec
Normal file
@@ -0,0 +1,97 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2022 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 luautf8
|
||||
%define rock_version 0.1.3-1
|
||||
%ifarch %{ix86}
|
||||
%define luarock_arch x86
|
||||
%else
|
||||
%ifarch s390x
|
||||
%define luarock_arch s390
|
||||
%else
|
||||
%define luarock_arch %{_arch}
|
||||
%endif
|
||||
%endif
|
||||
%ifarch armv7hl %{ix86}
|
||||
%bcond_with is64Bit
|
||||
%else
|
||||
%bcond_without is64Bit
|
||||
%endif
|
||||
Version: 0.1.3+git3
|
||||
Release: 0
|
||||
Summary: A utf-8 support module for Lua and LuaJIT
|
||||
License: MIT
|
||||
Group: Development/Languages/Other
|
||||
URL: https://github.com/starwing/luautf8
|
||||
Source: %{mod_name}-%{version}.tar.xz
|
||||
BuildRequires: %{flavor}-luarocks
|
||||
BuildRequires: %{flavor}-devel
|
||||
Requires: %{flavor}
|
||||
%lua_provides
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
%endif
|
||||
|
||||
%description
|
||||
This module adds UTF-8 support to Lua. It use data extracted from
|
||||
Unicode Character Database, and tested on Lua 5.2.3, Lua 5.3.0 and LuaJIT.
|
||||
parseucd.lua is a pure Lua script generate unidata.h, to support convert
|
||||
characters and check characters' category. It mainly used to compatible
|
||||
with Lua's own string module, it passed all string and pattern matching
|
||||
test in lua test suite2.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
luarocks --lua-version "%{lua_version}" \
|
||||
make --pack-binary-rock --deps-mode none "rockspecs/%{mod_name}-%{rock_version}.rockspec"
|
||||
install -Dm 644 -t "lua-%{lua_version}/" "%{mod_name}-%{rock_version}.linux-%{luarock_arch}.rock"
|
||||
luarocks --lua-version="%{lua_version}" --tree="%{buildroot}/usr/" \
|
||||
install --deps-mode=none --no-manifest "lua-%{lua_version}/%{mod_name}-%{rock_version}.linux-%{luarock_arch}.rock"
|
||||
|
||||
# Seperate out documentation and licence
|
||||
mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc/LICENSE .
|
||||
mkdir -p docs
|
||||
mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc/* docs/
|
||||
rmdir %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc
|
||||
|
||||
# Move pure lua modules to lua_noarchdir
|
||||
mkdir -p %{buildroot}%{lua_noarchdir}/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}
|
||||
mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/* \
|
||||
%{buildroot}%{lua_noarchdir}/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}
|
||||
|
||||
# Move compiled modules to lua_archdir for 64bit archs, 32bit archs already in position
|
||||
%if %{with is64Bit}
|
||||
mkdir -p %{buildroot}%{lua_archdir}
|
||||
mv %{buildroot}/usr/lib/lua/%{lua_version}/* %{buildroot}%{lua_archdir}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc docs/*
|
||||
%{lua_archdir}
|
||||
%{lua_noarchdir}
|
||||
|
||||
%changelog
|
3
luautf8-0.1.3+git3.tar.xz
Normal file
3
luautf8-0.1.3+git3.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8c0ba6005efeae954678f3691509c425d212f191e10c978b3562c53b187bfd5e
|
||||
size 32256
|
Reference in New Issue
Block a user