commit 0a4989fda0548e99dd3319c33281e90a24a59cab4ff807c092d84dff71c536e8 Author: Matej Cepl Date: Thu Sep 15 07:45:16 2022 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..72d2b45 --- /dev/null +++ b/_multibuild @@ -0,0 +1,5 @@ + +lua51 +lua53 +lua54 + diff --git a/fluent-lua-0.2.0.tar.gz b/fluent-lua-0.2.0.tar.gz new file mode 100644 index 0000000..74dbaba --- /dev/null +++ b/fluent-lua-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633 +size 41994 diff --git a/lua-fluent.changes b/lua-fluent.changes new file mode 100644 index 0000000..4560aa4 --- /dev/null +++ b/lua-fluent.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Aug 25 03:57:57 UTC 2022 - Gordon Leung + +- initial commit diff --git a/lua-fluent.spec b/lua-fluent.spec new file mode 100644 index 0000000..90e15cd --- /dev/null +++ b/lua-fluent.spec @@ -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