From 98ccb4794a178926cd4cdcf61a512efcd1b6b92930c1c75decf3c7107b6e9435 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Sat, 15 Mar 2025 23:05:10 +0000 Subject: [PATCH] rev 8cf4a33989a0dc18f47adb7aa63d2db2099578e4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/typescript-go?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + _service | 18 ++++++++++++++ typescript-go-0.1.tar.xz | 3 +++ typescript-go.changes | 4 +++ typescript-go.spec | 53 ++++++++++++++++++++++++++++++++++++++++ vendor.tar.zst | 3 +++ 7 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 typescript-go-0.1.tar.xz create mode 100644 typescript-go.changes create mode 100644 typescript-go.spec create mode 100644 vendor.tar.zst 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/_service b/_service new file mode 100644 index 0000000..2a5a1fd --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + https://github.com/microsoft/typescript-go + git + + 8cf4a33989a0dc18f47adb7aa63d2db2099578e4 + 0.1 + .git + .github + .gitignore + + + + *.tar + xz + + + diff --git a/typescript-go-0.1.tar.xz b/typescript-go-0.1.tar.xz new file mode 100644 index 0000000..4895ea6 --- /dev/null +++ b/typescript-go-0.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:593eae1952163d3ffce37720ed85020d9adf7d9a4cc4a9ee92596a00cdeec48c +size 23783076 diff --git a/typescript-go.changes b/typescript-go.changes new file mode 100644 index 0000000..5f5c0e6 --- /dev/null +++ b/typescript-go.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Mar 15 23:01:25 UTC 2025 - Avindra Goolcharan + +- initial rev @ 8cf4a33989a0dc18f47adb7aa63d2db2099578e4 diff --git a/typescript-go.spec b/typescript-go.spec new file mode 100644 index 0000000..7929f1c --- /dev/null +++ b/typescript-go.spec @@ -0,0 +1,53 @@ +# +# spec file for package typescript-go +# +# Copyright (c) 2025 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: typescript-go +Version: 0.1 +Release: 0 +Summary: port of TypeScript to go +License: Apache-2.0 +URL: https://github.com/microsoft/typescript-go +Source0: typescript-go-%{version}.tar.xz +Source1: vendor.tar.zst +BuildRequires: golang(API) >= 1.24 +BuildRequires: golang-packaging +BuildRequires: zstd + +%description +typescript-go is an experimental port of the TypeScript compiler to Go. + +%prep +%autosetup -a1 + +%build +go build -mod vendor \ +%ifnarch riscv64 ppc64 + -buildmode=pie \ +%endif + -ldflags "-s -w" ./cmd/tsgo + +%install +mkdir -p %{buildroot}/%{_bindir} +install -Dm755 tsgo %{buildroot}/%{_bindir}/tsgo + +%files +%license LICENSE +%doc README.md +%{_bindir}/tsgo + +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..18d4592 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:078d070291993bf285ed4b805bda9a0d50df2e72b233dbecf87a3db6dbdb263a +size 744123