10
0
forked from pool/lua-cassowary

Accepting request 998533 from home:Pi-Cla:branches:devel:languages:lua

I want to submit lua-cassowary

OBS-URL: https://build.opensuse.org/request/show/998533
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-cassowary?expand=0&rev=1
This commit is contained in:
2022-08-22 11:06:46 +00:00
committed by Git OBS Bridge
commit 8bc46e5f56
7 changed files with 127 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

5
_multibuild Normal file
View File

@@ -0,0 +1,5 @@
<multibuild>
<package>lua51</package>
<package>lua53</package>
<package>lua54</package>
</multibuild>

16
_service Normal file
View File

@@ -0,0 +1,16 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/sile-typesetter/cassowary.lua</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="revision">e33195f08438c15d725d283979165fda7c6c3321</param>
<param name="versionrewrite-pattern">v(\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>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5671c248c6fc3b4d729b7510930bd210780cdd9d3ac06104309dd6233b7bacb
size 19468

4
lua-cassowary.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun Aug 21 03:32:01 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Initial commit

75
lua-cassowary.spec Normal file
View File

@@ -0,0 +1,75 @@
#
# 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 cassowary
%define rock_version 2.3.2-1
Version: 2.3.2
Release: 0
Summary: A Lua port of the cassowary constraint solver engine
License: Apache-2.0
Group: Development/Languages/Other
URL: https://github.com/sile-typesetter/cassowary.lua
Source: cassowary.lua-%{version}.tar.xz
BuildRequires: %{flavor}-penlight
BuildRequires: %{flavor}-luarocks
BuildRequires: %{flavor}-devel
%if %{with test}
BuildRequires: %{flavor}-busted
%endif
Requires: %{flavor}
Requires: %{flavor}-penlight
%lua_provides
%if "%{flavor}" == ""
Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
BuildArch: noarch
%description
This is a Lua port of the cassowary constraint solving toolkit.
It allows you to use Lua to solve algebraic equations and inequalities
and find the values of unknown variables which satisfy those inequalities.
%prep
%autosetup -n %{mod_name}.lua-%{version}
%build
%install
luarocks --lua-version="%{lua_version}" --tree="%{buildroot}/usr/" \
make --deps-mode=none --no-manifest "rockspecs/%{mod_name}-%{rock_version}.rockspec"
mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc/LICENSE .
mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc/README.md .
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}
%if %{with test}
%check
busted
%endif
%files
%license LICENSE
%doc README.md
%{lua_noarchdir}
%changelog