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
This commit is contained in:
commit
2e4ba050b7
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
|
3
assemblyscript-0.18.12.tar.gz
Normal file
3
assemblyscript-0.18.12.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ad9568d50713e479252093f925ebc78bae0e7ff6b84f82d2a1745f0c2d146ded
|
||||
size 2381186
|
5
assemblyscript-rpmlintrc
Normal file
5
assemblyscript-rpmlintrc
Normal file
@ -0,0 +1,5 @@
|
||||
addFilter("script-without-shebang")
|
||||
addFilter("non-executable-script")
|
||||
addFilter("hidden-file-or-dir")
|
||||
addFilter("env-script-interpreter")
|
||||
addFilter("zero-length")
|
4
assemblyscript.changes
Normal file
4
assemblyscript.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 3 16:33:17 UTC 2021 - Klaus Kämpf <kkaempf@suse.com>
|
||||
|
||||
- Initial version 0.18.12
|
67
assemblyscript.spec
Normal file
67
assemblyscript.spec
Normal file
@ -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
|
3
node_modules.tar.gz
Normal file
3
node_modules.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:adc352c0b542e3ac49079ac8946401106ff17f0d318cca3d474bce21d2738bee
|
||||
size 14560295
|
Loading…
x
Reference in New Issue
Block a user