From e72d326a359fef2dc83eb7d87908350a59cbd056 Mon Sep 17 00:00:00 2001 From: Carl George Date: Aug 26 2020 03:21:33 +0000 Subject: Latest upstream 4.0.2 https://bugzilla.redhat.com/show_bug.cgi?id=1825686 --- diff --git a/.gitignore b/.gitignore index 3cb67af..b6dbd6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1 @@ -/typescript-1.4.1.tgz -/typescript-2.8.3.tgz -/docs-2.8.3.tar.bz2 -/scripts-2.8.3.tar.bz2 -/src-2.8.3.tar.bz2 -/tests-2.8.3.tar.bz2 -/dl-tests.sh -/Jakefile.js +typescript-*.tgz diff --git a/nodejs-typescript.spec b/nodejs-typescript.spec index ca41be2..ada9177 100644 --- a/nodejs-typescript.spec +++ b/nodejs-typescript.spec @@ -1,37 +1,16 @@ %global shortname typescript -# The tests depend on npm packages not yet packaged for Fedora -%global enable_tests 0 - Name: nodejs-typescript -Version: 2.8.3 -Release: 7%{?dist} +Version: 4.0.2 +Release: 1%{?dist} Summary: A language for application scale JavaScript development - License: ASL 2.0 -URL: https://github.com/Microsoft/TypeScript/ +URL: https://www.typescriptlang.org Source0: http://registry.npmjs.org/%{shortname}/-/%{shortname}-%{version}.tgz -# The test files are not included in the npm tarball. -# Source{1-9} are generated by running Source10, which pulls from the upstream -# version control repository. -Source1: tests-%{version}.tar.bz2 -Source2: src-%{version}.tar.bz2 -Source3: docs-%{version}.tar.bz2 -Source4: scripts-%{version}.tar.bz2 -Source10: dl-tests.sh -# Jakefile for tests -Source11: https://raw.githubusercontent.com/Microsoft/TypeScript/v%{version}/Jakefile.js - BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs -BuildRequires: nodejs-packaging - -%if 0%{enable_tests} -BuildRequires: jake -BuildRequires: npm(del) -BuildRequires: npm(travis-fold) # not yet packaged for Fedora -%endif %description TypeScript is a language for application-scale JavaScript. TypeScript @@ -40,40 +19,23 @@ 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 -qn package -# setup the tests, src, docs, scripts -%autosetup -T -D -a 1 -n package -%autosetup -T -D -a 2 -n package -%autosetup -T -D -a 3 -n package -%autosetup -T -D -a 4 -n package -# Jakefile -cp -p %{SOURCE11} . -%build -# Nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{shortname}/ cp -pr package.json bin/ lib/ %{buildroot}%{nodejs_sitelib}/%{shortname} -# Make tsc executable -chmod +x %{buildroot}%{nodejs_sitelib}/%{shortname}/bin/tsc - # Symlink tsc executable file to _bindir mkdir -p %{buildroot}%{_bindir} -pushd %{buildroot}%{_bindir} - ln -s %{nodejs_sitelib}/%{shortname}/bin/tsc -popd +ln -s %{nodejs_sitelib}/%{shortname}/bin/tsc %{buildroot}%{_bindir} + %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' -%if 0%{?enable_tests} -%{_bindir}/jake -%else -%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" -%endif %files @@ -82,7 +44,11 @@ popd %doc ThirdPartyNoticeText.txt README.md CopyrightNotice.txt %license LICENSE.txt + %changelog +* Tue Aug 25 2020 Carl George - 4.0.2-1 +- Latest upstream rhbz#1825686 + * Sat Aug 01 2020 Fedora Release Engineering - 2.8.3-7 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 849a327..217c62d 100644 --- a/sources +++ b/sources @@ -1,7 +1 @@ -SHA512 (typescript-2.8.3.tgz) = 2bb835e416fa45ae2529fec8ab697f239fc49fe84b2079b15991aadc3e03211345c4c355ea3d921d2bc33aab36b4677852f0ff7c9bebc28a734178cbad3ec8b7 -SHA512 (docs-2.8.3.tar.bz2) = fcdcbad8ba7b35a20e2fcef6cf0600727dac5b0109196e4b140aa7aafdafa91c08bd74f87faed728c7ffde53b90aeed2d74347babafb7571886c406a07d8a742 -SHA512 (scripts-2.8.3.tar.bz2) = d43e2b2a7544deb3086c5034ba64968c6c9c56ed167da43288add444f0c052be82603ec775287d8f0363de66f0980caff10759e4e648b4489707c9fb59e85829 -SHA512 (src-2.8.3.tar.bz2) = 146d421b53051eb73dace4a31f9aa98006f0a13e3d0a4ab78cfb8ef8ed6bab0c4385b88852c6cdaa2f7cf417300dd130be531fb939a3da3df3ebff535d443d3e -SHA512 (tests-2.8.3.tar.bz2) = 30904c27cf094ae31a67d07a5258dd36b1e80d7c3bd859384cf68c6eca4950bcd1f5325d709473aabd63b64ba297a12e59872d7d792ae62e900a590d87e374e2 -SHA512 (dl-tests.sh) = cea2348b51213375d7607ff1d666cabc4d89434170a7ea9d270bea405f4a894604f646a2a3c1fc0b1b4f33b83c4fa1192c0cc9e135194b17d1a4edc6f935d225 -SHA512 (Jakefile.js) = 76a4814418be8894ba04f77b50c5c5c20c5d2fd19ce26dc5193529d5ff787061accc4ce4435b2aacbc5b4b71297ef0bacbbd8f81b9ce83db04db60df091570c8 +SHA512 (typescript-4.0.2.tgz) = 7b8111bd1576c1bfab459fc841e6f78e6d95c41b22ad02e9421771a65676304cc6bc39243263e095e7273437d25018af3233fddef45b9e06180d0a90ffbf1b71