From 6b4245fd3237c5660f812b83eec134bf3711a4df Mon Sep 17 00:00:00 2001 From: Owen-sz Date: Wed, 18 Mar 2026 20:08:09 -0500 Subject: [PATCH] add: typescript Signed-off-by: Owen-sz --- anda/langs/typescript/anda.hcl | 6 ++++ anda/langs/typescript/typescript.spec | 46 +++++++++++++++++++++++++++ anda/langs/typescript/update.rhai | 0 3 files changed, 52 insertions(+) create mode 100644 anda/langs/typescript/anda.hcl create mode 100644 anda/langs/typescript/typescript.spec create mode 100644 anda/langs/typescript/update.rhai diff --git a/anda/langs/typescript/anda.hcl b/anda/langs/typescript/anda.hcl new file mode 100644 index 0000000000..fb4509b46c --- /dev/null +++ b/anda/langs/typescript/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "typescript.spec" + } +} diff --git a/anda/langs/typescript/typescript.spec b/anda/langs/typescript/typescript.spec new file mode 100644 index 0000000000..668e558073 --- /dev/null +++ b/anda/langs/typescript/typescript.spec @@ -0,0 +1,46 @@ +%if 0%{?rhel} +Name: typescript +Version: 5.7.3 +Release: %autorelease +Summary: A language for application scale JavaScript development +License: Apache-2.0 +URL: https://www.typescriptlang.org +Source: https://registry.npmjs.org/typescript/-/typescript-%{version}.tgz +BuildArch: noarch + +BuildRequires: nodejs +BuildRequires: nodejs-packaging + +Packager: Owen Zimmerman + +%description +TypeScript is a language for application-scale JavaScript. TypeScript adds +optional types to JavaScript that support tools for large-scale JavaScript +applications for any browser, for any host, on any OS. TypeScript compiles to +readable, standards-based JavaScript. + +%prep +%autosetup -n package + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/typescript +cp -pr package.json bin/ lib/ %{buildroot}%{nodejs_sitelib}/typescript + +mkdir -p %{buildroot}%{_bindir} +ln -s ../lib/node_modules/typescript/bin/tsc %{buildroot}%{_bindir}/tsc +ln -s ../lib/node_modules/typescript/bin/tsserver %{buildroot}%{_bindir}/tsserver + +%check +%{__nodejs} -e 'require("./")' + + +%files +%license LICENSE.txt +%{nodejs_sitelib}/typescript +%{_bindir}/tsc +%{_bindir}/tsserver + +%changelog +* Wed Mar 18 2026 Owen Zimmerman - 5.7.3-1 +- Port from Fedora EPEL9 spec +%endif diff --git a/anda/langs/typescript/update.rhai b/anda/langs/typescript/update.rhai new file mode 100644 index 0000000000..e69de29bb2