forked from pool/lua-fluent
Accepting request 1002513 from home:Pi-Cla
Added tests OBS-URL: https://build.opensuse.org/request/show/1002513 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-fluent?expand=0&rev=1
This commit is contained in:
commit
0a4989fda0
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>
|
3
fluent-lua-0.2.0.tar.gz
Normal file
3
fluent-lua-0.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
|
||||
size 41994
|
4
lua-fluent.changes
Normal file
4
lua-fluent.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 25 03:57:57 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
|
||||
|
||||
- initial commit
|
81
lua-fluent.spec
Normal file
81
lua-fluent.spec
Normal file
@ -0,0 +1,81 @@
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%bcond_without test
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name fluent
|
||||
%define rock_version 0.2.0-0
|
||||
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
Summary: Lua implementation of Project Fluent
|
||||
License: MIT
|
||||
Group: Development/Languages/Other
|
||||
URL: https://github.com/alerque/fluent-lua
|
||||
Source: %{mod_name}-lua-%{version}.tar.gz
|
||||
BuildRequires: %{flavor}-luarocks
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: %{flavor}-cldr
|
||||
BuildRequires: %{flavor}-luaepnf
|
||||
BuildRequires: %{flavor}-penlight
|
||||
%if %{with test}
|
||||
BuildRequires: %{flavor}-busted
|
||||
%endif
|
||||
Requires: %{flavor}
|
||||
Requires: %{flavor}-cldr
|
||||
Requires: %{flavor}-luaepnf
|
||||
Requires: %{flavor}-penlight
|
||||
%lua_provides
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
A Lua implementation of Project Fluent, a localization paradigm designed
|
||||
to unleash the entire expressive power of natural language translations.
|
||||
Fluent is a family of localization specifications, implementations and
|
||||
good practices developed by Mozilla who extracted parts of their 'l20n'
|
||||
solution (used in Firefox and other apps) into a re-usable specification.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{mod_name}-lua-%{version}
|
||||
|
||||
%build
|
||||
%luarocks_build "rockspecs/%{mod_name}-%{rock_version}.rockspec"
|
||||
|
||||
%install
|
||||
%luarocks_install *.rock
|
||||
luarocks --lua-version="%{lua_version}" --tree="%{buildroot}/usr/" \
|
||||
make --deps-mode=none --no-manifest "rockspecs/%{mod_name}-%{rock_version}.rockspec"
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
busted
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc/LICENSE
|
||||
%doc %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc
|
||||
%{lua_noarchdir}/%{mod_name}
|
||||
%{luarocks_treedir}/%{mod_name}
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user