commit 2e4ba050b77f59a875ff7cbd1f4eb9d61323d168d5e7403788be3f35a41a5c86 Author: Avindra Goolcharan Date: Sun Oct 16 18:27:40 2022 +0000 Accepting request 1011265 from home:kwk TypeScript to WebAssembly compiler OBS-URL: https://build.opensuse.org/request/show/1011265 OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/assemblyscript?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/assemblyscript-0.18.12.tar.gz b/assemblyscript-0.18.12.tar.gz new file mode 100644 index 0000000..e1146d2 --- /dev/null +++ b/assemblyscript-0.18.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad9568d50713e479252093f925ebc78bae0e7ff6b84f82d2a1745f0c2d146ded +size 2381186 diff --git a/assemblyscript-rpmlintrc b/assemblyscript-rpmlintrc new file mode 100644 index 0000000..ccf49d1 --- /dev/null +++ b/assemblyscript-rpmlintrc @@ -0,0 +1,5 @@ +addFilter("script-without-shebang") +addFilter("non-executable-script") +addFilter("hidden-file-or-dir") +addFilter("env-script-interpreter") +addFilter("zero-length") diff --git a/assemblyscript.changes b/assemblyscript.changes new file mode 100644 index 0000000..28f33a8 --- /dev/null +++ b/assemblyscript.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Mar 3 16:33:17 UTC 2021 - Klaus Kämpf + +- Initial version 0.18.12 diff --git a/assemblyscript.spec b/assemblyscript.spec new file mode 100644 index 0000000..a484c9a --- /dev/null +++ b/assemblyscript.spec @@ -0,0 +1,67 @@ +# +# spec file for package assemblyscript +# +# Copyright (c) 2020 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/ +# + +Name: assemblyscript +Version: 0.18.12 +Release: 0 +Summary: Definitely not a TypeScript to WebAssembly compiler +License: Apache-2.0 +Group: Development +URL: https://assemblyscript.org + +Source: %{name}-%{version}.tar.gz +Source1: node_modules.tar.gz +Source2: %{name}-rpmlintrc + +BuildRequires: fdupes +BuildRequires: nodejs +BuildRequires: npm +BuildRequires: yarn + +Requires: npm + +ExclusiveArch: x86_64 + +%description +AssemblyScript compiles a strict variant of TypeScript (basically +JavaScript with types) to WebAssembly using Binaryen. It generates lean +and mean WebAssembly modules while being just an npm install away. + +%prep +%setup -q +tar xf %{S:1} + +%build +npm install + +%install +mkdir -p %{buildroot}%{_libdir}/node_modules +cp -a . %{buildroot}%{_libdir}/node_modules/%{name} +%fdupes %{buildroot}%{_libdir}/node_modules/%{name} +mkdir -p %{buildroot}%{_bindir} +(cd %{buildroot}%{_bindir}; ln -sf ../%{_lib}/node_modules/%{name}/bin/asc .) +(cd %{buildroot}%{_bindir}; ln -sf ../%{_lib}/node_modules/%{name}/bin/asinit .) + +%files +%doc README.md +%doc NOTICE +%license LICENSE +%dir %{_libdir}/node_modules/assemblyscript +%{_libdir}/node_modules/assemblyscript +%{_bindir}/* + +%changelog diff --git a/node_modules.tar.gz b/node_modules.tar.gz new file mode 100644 index 0000000..9977bb2 --- /dev/null +++ b/node_modules.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:adc352c0b542e3ac49079ac8946401106ff17f0d318cca3d474bce21d2738bee +size 14560295