typescript/typescript.spec

66 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package typescript
#
Accepting request 1156599 from home:amanzini:branches:devel:languages:nodejs - Update to version 5.4: * Preserved Narrowing in Closures Following Last Assignments * The NoInfer Utility Type * Object.groupBy and Map.groupBy * Support for require() calls in --moduleResolution bundler and --module preserve * Checked Import Attributes and Assertions * Quick Fix for Adding Missing Parameters * Auto-Import Support for Subpath Imports * Upcoming 5.5 Deprecations: + TypeScript 5.0 deprecated the following options and behaviors: charset target: ES3 importsNotUsedAsValues noImplicitUseStrict noStrictGenericChecks keyofStringsOnly suppressExcessPropertyErrors suppressImplicitAnyIndexErrors out preserveValueImports prepend in project references implicitly OS-specific newLine To continue using them, developers using TypeScript 5.0 and other more recent versions have had to specify a new option called ignoreDeprecations with the value "5.0". However, TypScript 5.4 will be the last version in which these will continue to function as normal. By TypeScript 5.5 (likely June 2024), these will become hard errors, and code using them will need to be migrated away. * Notable Behavioral Changes: see https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/#notable-behavioral-changes For the full changelog see https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/ OBS-URL: https://build.opensuse.org/request/show/1156599 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/typescript?expand=0&rev=41
2024-03-10 10:08:32 +01:00
# Copyright (c) 2024 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
Accepting request 1156599 from home:amanzini:branches:devel:languages:nodejs - Update to version 5.4: * Preserved Narrowing in Closures Following Last Assignments * The NoInfer Utility Type * Object.groupBy and Map.groupBy * Support for require() calls in --moduleResolution bundler and --module preserve * Checked Import Attributes and Assertions * Quick Fix for Adding Missing Parameters * Auto-Import Support for Subpath Imports * Upcoming 5.5 Deprecations: + TypeScript 5.0 deprecated the following options and behaviors: charset target: ES3 importsNotUsedAsValues noImplicitUseStrict noStrictGenericChecks keyofStringsOnly suppressExcessPropertyErrors suppressImplicitAnyIndexErrors out preserveValueImports prepend in project references implicitly OS-specific newLine To continue using them, developers using TypeScript 5.0 and other more recent versions have had to specify a new option called ignoreDeprecations with the value "5.0". However, TypScript 5.4 will be the last version in which these will continue to function as normal. By TypeScript 5.5 (likely June 2024), these will become hard errors, and code using them will need to be migrated away. * Notable Behavioral Changes: see https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/#notable-behavioral-changes For the full changelog see https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/ OBS-URL: https://build.opensuse.org/request/show/1156599 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/typescript?expand=0&rev=41
2024-03-10 10:08:32 +01:00
Version: 5.4.2
Release: 0
Summary: A language for application scale JavaScript development
License: Apache-2.0
Group: Development/Libraries/Other
URL: http://typescriptlang.org/
Source0: https://github.com/microsoft/TypeScript/releases/download/v%{version}/%{name}-%{version}.tgz
BuildRequires: fdupes
BuildRequires: nodejs-packaging
BuildArch: noarch
%{?nodejs_requires}
%description
TypeScript is a language for application-scale JavaScript. TypeScript adds
optional types, classes, and modules to JavaScript. TypeScript supports tools
for large-scale JavaScript applications for any browser, for any host, on any
OS. TypeScript compiles to readable, standards-based JavaScript.
%prep
%setup -q -n package
sed -i 's/\r$//' ThirdPartyNoticeText.txt
sed -i 's/\r$//' README.md
sed -i 's/\r$//' LICENSE.txt
%build
%install
%nodejs_install
# Fix shebang lines
for file in %{buildroot}%{_bindir}/ts* ; do
sed -i -e "s|#!%{_bindir}/env node|#!%{_bindir}/node|" $(readlink -f $file)
done
%fdupes %{buildroot}
%files
%license LICENSE.txt ThirdPartyNoticeText.txt
%doc README.md
%dir %{nodejs_sitelib}
%{nodejs_sitelib}/%{name}
%{_bindir}/tsc
%{_bindir}/tsserver
%changelog